-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile.win
30 lines (23 loc) · 799 Bytes
/
Makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#CXX := x86_64-w64-mingw32.static-g++
CXX := i686-w64-mingw32.static-g++
CFLAGS := -std=c++11 -O2 -Wall -fPIC
NAME=libimbe_vocoder.a
INSTALL_PATH=/usr/local/lib
INCLUDE_PATH=/usr/local/include
OBJECTS = aux_sub.o ch_encode.o dsp_sub.o imbe_vocoder_impl.o pitch_est.o rand_gen.o sa_enh.o v_synt.o \
basicop2.o dc_rmv.o encode.o math_sub.o pitch_ref.o sa_decode.o tbls.o v_uv_det.o ch_decode.o \
decode.o imbe_vocoder.o pe_lpf.o qnt_sub.o sa_encode.o uv_synt.o
.PHONY: all
all: $(NAME)
$(NAME): $(OBJECTS)
$(AR) rcs $(NAME) $(OBJECTS)
-include $(OBJECTS:.o=.d)
%.o: %.cc
$(CXX) $(CFLAGS) -c -o $@ $<
$(CXX) -MM $(CFLAGS) $< > $*.d
.PHONY: clean
clean:
$(RM) $(NAME) *.o *.d *.bak *~
install:
cp $(NAME) $(INSTALL_PATH)
cp imbe_vocoder_api.h $(INCLUDE_PATH)