]> 4ch.mooo.com Git - 16.git/blob - src/lib/dl/ext/speex/common.mak
meh did some cleanings and i will work on mapread to mm thingy sometime soon! oops...
[16.git] / src / lib / dl / ext / speex / common.mak
1 # this makefile is included from all the dos*.mak files, do not use directly
2 # NTS: HPS is either \ (DOS) or / (Linux)
3 NOW_BUILDING = EXT_SPEEX_LIB
4 CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS).. -dHAVE_CONFIG_H
5
6 OBJS = $(SUBDIR)$(HPS)bits.obj $(SUBDIR)$(HPS)buffer.obj $(SUBDIR)$(HPS)cb_search.obj $(SUBDIR)$(HPS)exc_10_16_table.obj $(SUBDIR)$(HPS)exc_10_32_table.obj $(SUBDIR)$(HPS)exc_20_32_table.obj $(SUBDIR)$(HPS)exc_5_256_table.obj $(SUBDIR)$(HPS)exc_5_64_table.obj $(SUBDIR)$(HPS)exc_8_128_table.obj $(SUBDIR)$(HPS)fftwrap.obj $(SUBDIR)$(HPS)filterbank.obj $(SUBDIR)$(HPS)filters.obj $(SUBDIR)$(HPS)gain_table.obj $(SUBDIR)$(HPS)gain_table_lbr.obj $(SUBDIR)$(HPS)hexc_10_32_table.obj $(SUBDIR)$(HPS)hexc_table.obj $(SUBDIR)$(HPS)high_lsp_tables.obj $(SUBDIR)$(HPS)jitter.obj $(SUBDIR)$(HPS)kiss_fft.obj $(SUBDIR)$(HPS)kiss_fftr.obj $(SUBDIR)$(HPS)lpc.obj $(SUBDIR)$(HPS)lsp.obj $(SUBDIR)$(HPS)lsp_tables_nb.obj $(SUBDIR)$(HPS)ltp.obj $(SUBDIR)$(HPS)mdf.obj $(SUBDIR)$(HPS)modes.obj $(SUBDIR)$(HPS)modes_wb.obj $(SUBDIR)$(HPS)nb_celp.obj $(SUBDIR)$(HPS)preprocess.obj $(SUBDIR)$(HPS)quant_lsp.obj $(SUBDIR)$(HPS)resample.obj $(SUBDIR)$(HPS)sb_celp.obj $(SUBDIR)$(HPS)scal.obj $(SUBDIR)$(HPS)smallft.obj $(SUBDIR)$(HPS)speex.obj $(SUBDIR)$(HPS)speex_callbacks.obj $(SUBDIR)$(HPS)speex_header.obj $(SUBDIR)$(HPS)stereo.obj $(SUBDIR)$(HPS)testdenoise.obj $(SUBDIR)$(HPS)testecho.obj $(SUBDIR)$(HPS)testenc.obj $(SUBDIR)$(HPS)testenc_uwb.obj $(SUBDIR)$(HPS)testenc_wb.obj $(SUBDIR)$(HPS)testjitter.obj $(SUBDIR)$(HPS)vbr.obj $(SUBDIR)$(HPS)vq.obj $(SUBDIR)$(HPS)window.obj
7
8 !ifdef EXT_SPEEX_SPEEXDEC_EXE
9 $(EXT_SPEEX_SPEEXDEC_EXE): $(EXT_LIBOGG_LIB) $(EXT_SPEEX_LIB) $(SUBDIR)$(HPS)speexdec.obj $(SUBDIR)$(HPS)getopt.obj $(SUBDIR)$(HPS)getopt1.obj $(SUBDIR)$(HPS)wav_io.obj
10         %write tmp.cmd option quiet system $(WLINK_SYSTEM) file $(SUBDIR)$(HPS)speexdec.obj file $(SUBDIR)$(HPS)getopt.obj file $(SUBDIR)$(HPS)getopt1.obj file $(SUBDIR)$(HPS)wav_io.obj $(EXT_LIBOGG_LIB_WLINK_LIBRARIES) library $(EXT_SPEEX_LIB) name $(EXT_SPEEX_SPEEXDEC_EXE)
11         @wlink @tmp.cmd
12         @$(COPY) ..$(HPS)..$(HPS)dos32a.dat $(SUBDIR)$(HPS)dos4gw.exe
13 !endif
14
15 !ifdef EXT_SPEEX_SPEEXENC_EXE
16 $(EXT_SPEEX_SPEEXENC_EXE): $(EXT_LIBOGG_LIB) $(EXT_SPEEX_LIB) $(SUBDIR)$(HPS)speexenc.obj $(SUBDIR)$(HPS)getopt.obj $(SUBDIR)$(HPS)getopt1.obj $(SUBDIR)$(HPS)wav_io.obj $(SUBDIR)$(HPS)wave_out.obj $(SUBDIR)$(HPS)skeleton.obj
17         %write tmp.cmd option quiet system $(WLINK_SYSTEM) file $(SUBDIR)$(HPS)speexenc.obj file $(SUBDIR)$(HPS)getopt.obj file $(SUBDIR)$(HPS)getopt1.obj file $(SUBDIR)$(HPS)wav_io.obj file $(SUBDIR)$(HPS)wave_out.obj file $(SUBDIR)$(HPS)skeleton.obj $(EXT_LIBOGG_LIB_WLINK_LIBRARIES) library $(EXT_SPEEX_LIB) name $(EXT_SPEEX_SPEEXENC_EXE)
18         @wlink @tmp.cmd
19         @$(COPY) ..$(HPS)..$(HPS)dos32a.dat $(SUBDIR)$(HPS)dos4gw.exe
20 !endif
21
22 !ifdef EXT_SPEEX_LIB
23 $(EXT_SPEEX_LIB): $(OBJS)
24         wlib -q -b -c $(EXT_SPEEX_LIB) -+$(SUBDIR)$(HPS)bits.obj -+$(SUBDIR)$(HPS)buffer.obj -+$(SUBDIR)$(HPS)cb_search.obj -+$(SUBDIR)$(HPS)exc_10_16_table.obj -+$(SUBDIR)$(HPS)exc_10_32_table.obj -+$(SUBDIR)$(HPS)exc_20_32_table.obj -+$(SUBDIR)$(HPS)exc_5_256_table.obj -+$(SUBDIR)$(HPS)exc_5_64_table.obj -+$(SUBDIR)$(HPS)exc_8_128_table.obj -+$(SUBDIR)$(HPS)fftwrap.obj -+$(SUBDIR)$(HPS)filterbank.obj -+$(SUBDIR)$(HPS)filters.obj -+$(SUBDIR)$(HPS)gain_table.obj -+$(SUBDIR)$(HPS)gain_table_lbr.obj -+$(SUBDIR)$(HPS)hexc_10_32_table.obj -+$(SUBDIR)$(HPS)hexc_table.obj -+$(SUBDIR)$(HPS)high_lsp_tables.obj -+$(SUBDIR)$(HPS)jitter.obj -+$(SUBDIR)$(HPS)kiss_fft.obj -+$(SUBDIR)$(HPS)kiss_fftr.obj -+$(SUBDIR)$(HPS)lpc.obj -+$(SUBDIR)$(HPS)lsp.obj -+$(SUBDIR)$(HPS)lsp_tables_nb.obj -+$(SUBDIR)$(HPS)ltp.obj -+$(SUBDIR)$(HPS)mdf.obj -+$(SUBDIR)$(HPS)modes.obj -+$(SUBDIR)$(HPS)modes_wb.obj -+$(SUBDIR)$(HPS)nb_celp.obj -+$(SUBDIR)$(HPS)preprocess.obj -+$(SUBDIR)$(HPS)quant_lsp.obj -+$(SUBDIR)$(HPS)resample.obj -+$(SUBDIR)$(HPS)sb_celp.obj -+$(SUBDIR)$(HPS)scal.obj -+$(SUBDIR)$(HPS)smallft.obj -+$(SUBDIR)$(HPS)speex.obj -+$(SUBDIR)$(HPS)speex_callbacks.obj -+$(SUBDIR)$(HPS)speex_header.obj -+$(SUBDIR)$(HPS)stereo.obj -+$(SUBDIR)$(HPS)testdenoise.obj -+$(SUBDIR)$(HPS)testecho.obj -+$(SUBDIR)$(HPS)testenc.obj -+$(SUBDIR)$(HPS)testenc_uwb.obj -+$(SUBDIR)$(HPS)testenc_wb.obj -+$(SUBDIR)$(HPS)testjitter.obj -+$(SUBDIR)$(HPS)vbr.obj -+$(SUBDIR)$(HPS)vq.obj -+$(SUBDIR)$(HPS)window.obj
25 !endif
26
27 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
28 # systems all arguments would exceed the pitiful 128 char command line limit
29 .C.OBJ:
30         %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
31         @$(CC) @tmp.cmd
32
33 all: lib exe .symbolic
34        
35 lib: $(EXT_SPEEX_LIB) .symbolic
36
37 exe: $(EXT_SPEEX_SPEEXDEC_EXE) $(EXT_SPEEX_SPEEXENC_EXE) .symbolic
38
39 clean: .SYMBOLIC
40           del $(SUBDIR)$(HPS)*.obj
41           del tmp.cmd
42           @echo Cleaning done
43