]> 4ch.mooo.com Git - 16.git/blob - src/lib/dl/ext/libmad/common.mak
cleaned up the repo from debugging watcom2 ^^
[16.git] / src / lib / dl / ext / libmad / 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_LIBMAD_LIB
4 CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS).. -dHAVE_CONFIG_H
5
6 OBJS = $(SUBDIR)$(HPS)bit.obj $(SUBDIR)$(HPS)decoder.obj $(SUBDIR)$(HPS)fixed.obj $(SUBDIR)$(HPS)frame.obj $(SUBDIR)$(HPS)huffman.obj $(SUBDIR)$(HPS)layer12.obj $(SUBDIR)$(HPS)layer3.obj $(SUBDIR)$(HPS)stream.obj $(SUBDIR)$(HPS)synth.obj $(SUBDIR)$(HPS)timer.obj $(SUBDIR)$(HPS)version.obj
7
8 !ifdef EXT_LIBMAD_LIB
9 $(EXT_LIBMAD_LIB): $(OBJS)
10         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)bit.obj -+$(SUBDIR)$(HPS)decoder.obj
11         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)fixed.obj -+$(SUBDIR)$(HPS)frame.obj 
12         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)huffman.obj -+$(SUBDIR)$(HPS)layer12.obj 
13         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)layer3.obj -+$(SUBDIR)$(HPS)stream.obj 
14         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)synth.obj -+$(SUBDIR)$(HPS)timer.obj 
15         wlib -q -b -c $(EXT_LIBMAD_LIB) -+$(SUBDIR)$(HPS)version.obj
16 !endif
17
18 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
19 # systems all arguments would exceed the pitiful 128 char command line limit
20 .C.OBJ:
21         %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
22         @$(CC) @tmp.cmd
23
24 all: lib exe .symbolic
25        
26 lib: $(EXT_LIBMAD_LIB) .symbolic
27
28 exe: .symbolic
29
30 clean: .SYMBOLIC
31           del $(SUBDIR)$(HPS)*.obj
32           del tmp.cmd
33           @echo Cleaning done
34