]> 4ch.mooo.com Git - 16.git/blob - src/lib/doslib/ext/jpeg/common.mak
added a bunch of things~ and midi stuff~
[16.git] / src / lib / doslib / ext / jpeg / 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_JPEG_LIB
4 CFLAGS_THIS = -fr=nul -fo=$(SUBDIR)$(HPS).obj -i=.. -i..$(HPS).. -dHAVE_CONFIG_H
5
6 OBJS = $(SUBDIR)$(HPS)jaricom.obj $(SUBDIR)$(HPS)jcapimin.obj $(SUBDIR)$(HPS)jcapistd.obj $(SUBDIR)$(HPS)jcarith.obj $(SUBDIR)$(HPS)jccoefct.obj $(SUBDIR)$(HPS)jccolor.obj $(SUBDIR)$(HPS)jcdctmgr.obj $(SUBDIR)$(HPS)jchuff.obj $(SUBDIR)$(HPS)jcinit.obj $(SUBDIR)$(HPS)jcmainct.obj $(SUBDIR)$(HPS)jcmarker.obj $(SUBDIR)$(HPS)jcmaster.obj $(SUBDIR)$(HPS)jcomapi.obj $(SUBDIR)$(HPS)jcparam.obj $(SUBDIR)$(HPS)jcprepct.obj $(SUBDIR)$(HPS)jcsample.obj $(SUBDIR)$(HPS)jctrans.obj $(SUBDIR)$(HPS)jdapimin.obj $(SUBDIR)$(HPS)jdapistd.obj $(SUBDIR)$(HPS)jdarith.obj $(SUBDIR)$(HPS)jdatadst.obj $(SUBDIR)$(HPS)jdatasrc.obj $(SUBDIR)$(HPS)jdcoefct.obj $(SUBDIR)$(HPS)jdcolor.obj $(SUBDIR)$(HPS)jddctmgr.obj $(SUBDIR)$(HPS)jdhuff.obj $(SUBDIR)$(HPS)jdinput.obj $(SUBDIR)$(HPS)jdmainct.obj $(SUBDIR)$(HPS)jdmarker.obj $(SUBDIR)$(HPS)jdmaster.obj $(SUBDIR)$(HPS)jdmerge.obj $(SUBDIR)$(HPS)jdpostct.obj $(SUBDIR)$(HPS)jdsample.obj $(SUBDIR)$(HPS)jdtrans.obj $(SUBDIR)$(HPS)jerror.obj $(SUBDIR)$(HPS)jfdctflt.obj $(SUBDIR)$(HPS)jfdctfst.obj $(SUBDIR)$(HPS)jfdctint.obj $(SUBDIR)$(HPS)jidctflt.obj $(SUBDIR)$(HPS)jidctfst.obj $(SUBDIR)$(HPS)jidctint.obj $(SUBDIR)$(HPS)jmemansi.obj $(SUBDIR)$(HPS)jquant1.obj $(SUBDIR)$(HPS)jquant2.obj $(SUBDIR)$(HPS)jutils.obj $(SUBDIR)$(HPS)rdbmp.obj $(SUBDIR)$(HPS)rdcolmap.obj $(SUBDIR)$(HPS)rdgif.obj $(SUBDIR)$(HPS)rdjpgcom.obj $(SUBDIR)$(HPS)rdppm.obj $(SUBDIR)$(HPS)rdrle.obj $(SUBDIR)$(HPS)rdswitch.obj $(SUBDIR)$(HPS)rdtarga.obj $(SUBDIR)$(HPS)wrbmp.obj $(SUBDIR)$(HPS)wrgif.obj $(SUBDIR)$(HPS)wrjpgcom.obj $(SUBDIR)$(HPS)wrppm.obj $(SUBDIR)$(HPS)wrrle.obj $(SUBDIR)$(HPS)wrtarga.obj $(SUBDIR)$(HPS)jmemmgr.obj $(SUBDIR)$(HPS)cdjpeg.obj
7
8 !ifdef EXT_JPEG_CJPEG_EXE
9 $(EXT_JPEG_CJPEG_EXE): $(EXT_JPEG_LIB) $(SUBDIR)$(HPS)cjpeg.obj
10         %write tmp.cmd option quiet system $(WLINK_SYSTEM) file $(SUBDIR)$(HPS)cjpeg.obj library $(EXT_JPEG_LIB) name $(EXT_JPEG_CJPEG_EXE)
11         @wlink @tmp.cmd
12         @$(COPY) ..$(HPS)..$(HPS)dos32a.dat $(SUBDIR)$(HPS)dos4gw.exe
13 !endif
14 !ifdef EXT_JPEG_DJPEG_EXE
15 $(EXT_JPEG_DJPEG_EXE): $(EXT_JPEG_LIB) $(SUBDIR)$(HPS)djpeg.obj
16         %write tmp.cmd option quiet system $(WLINK_SYSTEM) file $(SUBDIR)$(HPS)djpeg.obj library $(EXT_JPEG_LIB) name $(EXT_JPEG_DJPEG_EXE)
17         @wlink @tmp.cmd
18         @$(COPY) ..$(HPS)..$(HPS)dos32a.dat $(SUBDIR)$(HPS)dos4gw.exe
19 !endif
20 !ifdef EXT_JPEG_LIB
21 $(EXT_JPEG_LIB): $(OBJS)
22         wlib -q -b -c $(EXT_JPEG_LIB) -+$(SUBDIR)$(HPS)jaricom.obj -+$(SUBDIR)$(HPS)jcapimin.obj -+$(SUBDIR)$(HPS)jcapistd.obj -+$(SUBDIR)$(HPS)jcarith.obj -+$(SUBDIR)$(HPS)jccoefct.obj -+$(SUBDIR)$(HPS)jccolor.obj -+$(SUBDIR)$(HPS)jcdctmgr.obj -+$(SUBDIR)$(HPS)jchuff.obj -+$(SUBDIR)$(HPS)jcinit.obj -+$(SUBDIR)$(HPS)jcmainct.obj -+$(SUBDIR)$(HPS)jcmarker.obj -+$(SUBDIR)$(HPS)jcmaster.obj -+$(SUBDIR)$(HPS)jcomapi.obj -+$(SUBDIR)$(HPS)jcparam.obj -+$(SUBDIR)$(HPS)jcprepct.obj -+$(SUBDIR)$(HPS)jcsample.obj -+$(SUBDIR)$(HPS)jctrans.obj -+$(SUBDIR)$(HPS)jdapimin.obj -+$(SUBDIR)$(HPS)jdapistd.obj -+$(SUBDIR)$(HPS)jdarith.obj -+$(SUBDIR)$(HPS)jdatadst.obj -+$(SUBDIR)$(HPS)jdatasrc.obj -+$(SUBDIR)$(HPS)jdcoefct.obj -+$(SUBDIR)$(HPS)jdcolor.obj -+$(SUBDIR)$(HPS)jddctmgr.obj -+$(SUBDIR)$(HPS)jdhuff.obj -+$(SUBDIR)$(HPS)jdinput.obj -+$(SUBDIR)$(HPS)jdmainct.obj -+$(SUBDIR)$(HPS)jdmarker.obj -+$(SUBDIR)$(HPS)jdmaster.obj -+$(SUBDIR)$(HPS)jdmerge.obj -+$(SUBDIR)$(HPS)jdpostct.obj -+$(SUBDIR)$(HPS)jdsample.obj -+$(SUBDIR)$(HPS)jdtrans.obj -+$(SUBDIR)$(HPS)jerror.obj -+$(SUBDIR)$(HPS)jfdctflt.obj -+$(SUBDIR)$(HPS)jfdctfst.obj -+$(SUBDIR)$(HPS)jfdctint.obj -+$(SUBDIR)$(HPS)jidctflt.obj -+$(SUBDIR)$(HPS)jidctfst.obj -+$(SUBDIR)$(HPS)jidctint.obj -+$(SUBDIR)$(HPS)jmemansi.obj -+$(SUBDIR)$(HPS)jquant1.obj -+$(SUBDIR)$(HPS)jquant2.obj -+$(SUBDIR)$(HPS)jutils.obj -+$(SUBDIR)$(HPS)rdbmp.obj -+$(SUBDIR)$(HPS)rdcolmap.obj -+$(SUBDIR)$(HPS)rdgif.obj -+$(SUBDIR)$(HPS)rdjpgcom.obj -+$(SUBDIR)$(HPS)rdppm.obj -+$(SUBDIR)$(HPS)rdrle.obj -+$(SUBDIR)$(HPS)rdswitch.obj -+$(SUBDIR)$(HPS)rdtarga.obj -+$(SUBDIR)$(HPS)wrbmp.obj -+$(SUBDIR)$(HPS)wrgif.obj -+$(SUBDIR)$(HPS)wrjpgcom.obj -+$(SUBDIR)$(HPS)wrppm.obj -+$(SUBDIR)$(HPS)wrrle.obj -+$(SUBDIR)$(HPS)wrtarga.obj -+$(SUBDIR)$(HPS)jmemmgr.obj -+$(SUBDIR)$(HPS)cdjpeg.obj
23 !endif
24
25 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
26 # systems all arguments would exceed the pitiful 128 char command line limit
27 .C.OBJ:
28         %write tmp.cmd $(CFLAGS_THIS) $(CFLAGS) $[@
29         @$(CC) @tmp.cmd
30
31 all: lib exe .symbolic
32        
33 lib: $(EXT_JPEG_LIB) .symbolic
34
35 exe: $(EXT_JPEG_CJPEG_EXE) $(EXT_JPEG_DJPEG_EXE) .symbolic
36
37 clean: .SYMBOLIC
38           del $(SUBDIR)$(HPS)*.obj
39           del tmp.cmd
40           @echo Cleaning done
41