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
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
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
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
21 %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
24 all: lib exe .symbolic
26 lib: $(EXT_LIBMAD_LIB) .symbolic
31 del $(SUBDIR)$(HPS)*.obj