]> git.jsancho.org Git - lugaru.git/blob - Dependencies/libjpeg/makefile.wat
CMake: Purge all the bundled dependencies
[lugaru.git] / Dependencies / libjpeg / makefile.wat
1 # Makefile for Independent JPEG Group's software
2
3 # This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using
4 # dos4g extender), OS/2, and Windows NT console mode.
5 # Thanks to Janos Haide, jhaide@btrvtech.com.
6
7 # Read installation instructions before saying "wmake" !!
8
9 # Uncomment line for desired system
10 SYSTEM=DOS
11 #SYSTEM=OS2
12 #SYSTEM=NT
13
14 # The name of your C compiler:
15 CC= wcl386
16
17 # You may need to adjust these cc options:
18 CFLAGS= -4r -ort -wx -zq -bt=$(SYSTEM)
19 # Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a.
20 # Generally, we recommend defining any configuration symbols in jconfig.h,
21 # NOT via -D switches here.
22
23 # Link-time cc options:
24 !ifeq SYSTEM DOS
25 LDFLAGS= -zq -l=dos4g
26 !else ifeq SYSTEM OS2
27 LDFLAGS= -zq -l=os2v2
28 !else ifeq SYSTEM NT
29 LDFLAGS= -zq -l=nt
30 !endif
31
32 # Put here the object file name for the correct system-dependent memory
33 # manager file.  jmemnobs should work fine for dos4g or OS/2 environment.
34 SYSDEPMEM= jmemnobs.obj
35
36 # End of configurable options.
37
38
39 # source files: JPEG library proper
40 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c &
41         jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c &
42         jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c &
43         jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c &
44         jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c &
45         jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c &
46         jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c &
47         jquant2.c jutils.c jmemmgr.c
48 # memmgr back ends: compile only one of these into a working library
49 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
50 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
51 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c &
52         rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c &
53         rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
54 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
55 # files included by source files
56 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h &
57         jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
58 # documentation, test, and support files
59 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 &
60         wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt &
61         coderules.txt filelist.txt change.log
62 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc &
63         makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 &
64         makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 &
65         makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 &
66         maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 &
67         makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.vc9 &
68         makeasln.vc9 makejvcp.vc9 makecvcp.vc9 makedvcp.vc9 maketvcp.vc9 &
69         makervcp.vc9 makewvcp.vc9 makeproj.mac makcjpeg.st makdjpeg.st &
70         makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms &
71         makefile.vms makvms.opt
72 CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat &
73         jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas &
74         jconfig.vms
75 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
76 OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm &
77         libjpeg.map
78 TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg &
79         testimgp.jpg
80 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) &
81         $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
82 # library object files common to compression and decompression
83 COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
84 # compression library object files
85 CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj &
86         jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj &
87         jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj &
88         jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
89 # decompression library object files
90 DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj &
91         jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj &
92         jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj &
93         jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj &
94         jdmerge.obj
95 # These objectfiles are included in libjpeg.lib
96 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
97 # object files for sample applications (excluding library files)
98 COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
99         rdswitch.obj cdjpeg.obj
100 DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
101         rdcolmap.obj cdjpeg.obj
102 TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
103
104
105 all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
106
107 libjpeg.lib: $(LIBOBJECTS)
108         - del libjpeg.lib
109         * wlib -n libjpeg.lib $(LIBOBJECTS)
110
111 cjpeg.exe: $(COBJECTS) libjpeg.lib
112         $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
113
114 djpeg.exe: $(DOBJECTS) libjpeg.lib
115         $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
116
117 jpegtran.exe: $(TROBJECTS) libjpeg.lib
118         $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
119
120 rdjpgcom.exe: rdjpgcom.c
121         $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
122
123 wrjpgcom.exe: wrjpgcom.c
124         $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
125
126 .c.obj:
127         $(CC) $(CFLAGS) -c $<
128
129 jconfig.h: jconfig.txt
130         echo You must prepare a system-dependent jconfig.h file.
131         echo Please read the installation directions in install.txt.
132         exit 1
133
134 clean: .SYMBOLIC
135         - del *.obj
136         - del libjpeg.lib
137         - del cjpeg.exe
138         - del djpeg.exe
139         - del jpegtran.exe
140         - del rdjpgcom.exe
141         - del wrjpgcom.exe
142         - del testout*.*
143
144 test: cjpeg.exe djpeg.exe jpegtran.exe  .SYMBOLIC
145         - del testout*.*
146         djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
147         djpeg -dct int -bmp -colors 256 -outfile testout.bmp  testorig.jpg
148         cjpeg -dct int -outfile testout.jpg  testimg.ppm
149         djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
150         cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
151         jpegtran -outfile testoutt.jpg testprog.jpg
152 !ifeq SYSTEM DOS
153         fc /b testimg.ppm testout.ppm
154         fc /b testimg.bmp testout.bmp
155         fc /b testimg.jpg testout.jpg
156         fc /b testimg.ppm testoutp.ppm
157         fc /b testimgp.jpg testoutp.jpg
158         fc /b testorig.jpg testoutt.jpg
159 !else
160         echo n > n.tmp
161         comp testimg.ppm testout.ppm < n.tmp
162         comp testimg.bmp testout.bmp < n.tmp
163         comp testimg.jpg testout.jpg < n.tmp
164         comp testimg.ppm testoutp.ppm < n.tmp
165         comp testimgp.jpg testoutp.jpg < n.tmp
166         comp testorig.jpg testoutt.jpg < n.tmp
167         del n.tmp
168 !endif
169
170
171 jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
172 jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
173 jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
174 jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
175 jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
176 jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
177 jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
178 jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
179 jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
180 jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
181 jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
182 jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
183 jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
184 jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
185 jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
186 jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
187 jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
188 jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
189 jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
190 jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
191 jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
192 jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
193 jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194 jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
195 jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
196 jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
197 jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
198 jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
199 jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200 jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201 jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
202 jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203 jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
204 jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205 jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
206 jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
207 jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
208 jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
209 jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
210 jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
211 jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
212 jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
213 jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
214 jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
215 jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
216 jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
217 jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
218 jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
219 jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
220 jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
221 cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
222 djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
223 jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
224 rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
225 wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
226 cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
227 rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
228 rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
229 transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
230 rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
231 wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
232 rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
233 wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
234 rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
235 wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
236 rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
237 wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
238 rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
239 wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h