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.v10 & |
---|
68 | makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 & |
---|
69 | makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 & |
---|
70 | makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st & |
---|
71 | makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas & |
---|
72 | makefile.mms makefile.vms makvms.opt |
---|
73 | CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat & |
---|
74 | jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas & |
---|
75 | jconfig.vms |
---|
76 | CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing |
---|
77 | OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm & |
---|
78 | libjpeg.map |
---|
79 | TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg & |
---|
80 | testimgp.jpg |
---|
81 | DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) & |
---|
82 | $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES) |
---|
83 | # library object files common to compression and decompression |
---|
84 | COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM) |
---|
85 | # compression library object files |
---|
86 | CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj & |
---|
87 | jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj & |
---|
88 | jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj & |
---|
89 | jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj |
---|
90 | # decompression library object files |
---|
91 | DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj & |
---|
92 | jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj & |
---|
93 | jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj & |
---|
94 | jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj & |
---|
95 | jdmerge.obj |
---|
96 | # These objectfiles are included in libjpeg.lib |
---|
97 | LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) |
---|
98 | # object files for sample applications (excluding library files) |
---|
99 | COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj & |
---|
100 | rdswitch.obj cdjpeg.obj |
---|
101 | DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj & |
---|
102 | rdcolmap.obj cdjpeg.obj |
---|
103 | TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj |
---|
104 | |
---|
105 | |
---|
106 | all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe |
---|
107 | |
---|
108 | libjpeg.lib: $(LIBOBJECTS) |
---|
109 | - del libjpeg.lib |
---|
110 | * wlib -n libjpeg.lib $(LIBOBJECTS) |
---|
111 | |
---|
112 | cjpeg.exe: $(COBJECTS) libjpeg.lib |
---|
113 | $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib |
---|
114 | |
---|
115 | djpeg.exe: $(DOBJECTS) libjpeg.lib |
---|
116 | $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib |
---|
117 | |
---|
118 | jpegtran.exe: $(TROBJECTS) libjpeg.lib |
---|
119 | $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib |
---|
120 | |
---|
121 | rdjpgcom.exe: rdjpgcom.c |
---|
122 | $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c |
---|
123 | |
---|
124 | wrjpgcom.exe: wrjpgcom.c |
---|
125 | $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c |
---|
126 | |
---|
127 | .c.obj: |
---|
128 | $(CC) $(CFLAGS) -c $< |
---|
129 | |
---|
130 | jconfig.h: jconfig.txt |
---|
131 | echo You must prepare a system-dependent jconfig.h file. |
---|
132 | echo Please read the installation directions in install.txt. |
---|
133 | exit 1 |
---|
134 | |
---|
135 | clean: .SYMBOLIC |
---|
136 | - del *.obj |
---|
137 | - del libjpeg.lib |
---|
138 | - del cjpeg.exe |
---|
139 | - del djpeg.exe |
---|
140 | - del jpegtran.exe |
---|
141 | - del rdjpgcom.exe |
---|
142 | - del wrjpgcom.exe |
---|
143 | - del testout*.* |
---|
144 | |
---|
145 | test: cjpeg.exe djpeg.exe jpegtran.exe .SYMBOLIC |
---|
146 | - del testout*.* |
---|
147 | djpeg -dct int -ppm -outfile testout.ppm testorig.jpg |
---|
148 | djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg |
---|
149 | cjpeg -dct int -outfile testout.jpg testimg.ppm |
---|
150 | djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg |
---|
151 | cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm |
---|
152 | jpegtran -outfile testoutt.jpg testprog.jpg |
---|
153 | !ifeq SYSTEM DOS |
---|
154 | fc /b testimg.ppm testout.ppm |
---|
155 | fc /b testimg.bmp testout.bmp |
---|
156 | fc /b testimg.jpg testout.jpg |
---|
157 | fc /b testimg.ppm testoutp.ppm |
---|
158 | fc /b testimgp.jpg testoutp.jpg |
---|
159 | fc /b testorig.jpg testoutt.jpg |
---|
160 | !else |
---|
161 | echo n > n.tmp |
---|
162 | comp testimg.ppm testout.ppm < n.tmp |
---|
163 | comp testimg.bmp testout.bmp < n.tmp |
---|
164 | comp testimg.jpg testout.jpg < n.tmp |
---|
165 | comp testimg.ppm testoutp.ppm < n.tmp |
---|
166 | comp testimgp.jpg testoutp.jpg < n.tmp |
---|
167 | comp testorig.jpg testoutt.jpg < n.tmp |
---|
168 | del n.tmp |
---|
169 | !endif |
---|
170 | |
---|
171 | |
---|
172 | jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
173 | jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
174 | jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
175 | jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
176 | jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
177 | jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
178 | jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
179 | jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
180 | jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
181 | jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
182 | jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
183 | jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
184 | jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
185 | jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
186 | jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
187 | jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
188 | jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
189 | jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
190 | jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
191 | jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
192 | jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h |
---|
193 | jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h |
---|
194 | jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
195 | jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
196 | jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
197 | jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
198 | jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
199 | jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
200 | jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
201 | jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
202 | jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
203 | jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
204 | jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
205 | jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
206 | jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h |
---|
207 | jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
208 | jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
209 | jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
210 | jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
211 | jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
212 | jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h |
---|
213 | jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
214 | jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
215 | jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h |
---|
216 | jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
217 | jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
218 | jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
219 | jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
220 | jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
221 | jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h |
---|
222 | cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h |
---|
223 | djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h |
---|
224 | jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h |
---|
225 | rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h |
---|
226 | wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h |
---|
227 | cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
228 | rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
229 | rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
230 | transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h |
---|
231 | rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
232 | wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
233 | rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
234 | wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
235 | rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
236 | wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
237 | rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
238 | wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
239 | rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|
240 | wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h |
---|