]> 4ch.mooo.com Git - 16.git/blob - src/lib/dl/ext/libogg/common.mak
refresh wwww
[16.git] / src / lib / dl / ext / libogg / 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_LIBOGG_LIB
4 CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS).. -dHAVE_CONFIG_H
5
6 OBJS = $(SUBDIR)$(HPS)bitwise.obj $(SUBDIR)$(HPS)framing.obj
7
8 !ifdef EXT_LIBOGG_LIB
9 $(EXT_LIBOGG_LIB): $(OBJS)
10         wlib -q -b -c $(EXT_LIBOGG_LIB) -+$(SUBDIR)$(HPS)bitwise.obj -+$(SUBDIR)$(HPS)framing.obj
11 !endif
12
13 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
14 # systems all arguments would exceed the pitiful 128 char command line limit
15 .C.OBJ:
16         %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
17         @$(CC) @tmp.cmd
18
19 all: lib exe .symbolic
20        
21 lib: $(EXT_LIBOGG_LIB) .symbolic
22
23 exe: .symbolic
24
25 clean: .SYMBOLIC
26           del $(SUBDIR)$(HPS)*.obj
27           del tmp.cmd
28           @echo Cleaning done
29