comparison mupdf-source/thirdparty/libjpeg/makefile.mc6 @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 # Makefile for Independent JPEG Group's software
2
3 # This makefile is for Microsoft C for MS-DOS, version 6.00A and up.
4 # Use NMAKE, not Microsoft's brain-damaged MAKE.
5 # Thanks to Alan Wright and Chris Turner of Olivetti Research Ltd.
6
7 # Read installation instructions before saying "nmake" !!
8
9 # You may need to adjust these compiler options:
10 CFLAGS = -AM -Oecigt -Gs -W3
11 # -AM medium memory model (or use -AS for small model, if you remove features)
12 # -Oecigt -Gs maximum safe optimisation (-Ol has bugs in MSC 6.00A)
13 # -W3 warning level 3
14 # You might also want to add -G2 if you have an 80286, etc.
15 # Generally, we recommend defining any configuration symbols in jconfig.h,
16 # NOT via -D switches here.
17
18 # Jan-Herman Buining suggests the following switches for MS C 8.0 and a 486:
19 # CFLAGS = /AM /f- /FPi87 /G3 /Gs /Gy /Ob1 /Oc /Oe /Og /Oi /Ol /On /Oo /Ot \
20 # /OV4 /W3
21 # except for jquant1.c, which must be compiled with /Oo- to avoid a compiler
22 # crash.
23
24 # Ingar Steinsland suggests the following switches when building
25 # a 16-bit Windows DLL:
26 # CFLAGS = -ALw -Gsw -Zpe -W3 -O2 -Zi -Zd
27
28 # Put here the object file name for the correct system-dependent memory
29 # manager file. For DOS, we recommend jmemdos.c and jmemdosa.asm.
30 # (But not for Windows; see install.txt if you use this makefile for Windows.)
31 SYSDEPMEM= jmemdos.obj jmemdosa.obj
32 # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
33 SYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj
34
35 # End of configurable options.
36
37
38 # source files: JPEG library proper
39 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
40 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
41 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
42 jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
43 jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
44 jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
45 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
46 jquant2.c jutils.c jmemmgr.c
47 # memmgr back ends: compile only one of these into a working library
48 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
49 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
50 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
51 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
52 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
53 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
54 # files included by source files
55 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
56 jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
57 # documentation, test, and support files
58 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
59 wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
60 coderules.txt filelist.txt cdaltui.txt change.log
61 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \
62 makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \
63 makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \
64 makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
65 makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
66 makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
67 makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
68 makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
69 makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
70 maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
71 makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \
72 maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \
73 maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \
74 makefile.vms makvms.opt
75 CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \
76 jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
77 jconfig.sas jconfig.vms
78 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
79 missing ar-lib
80 OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \
81 cjpegalt.c djpegalt.c
82 TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
83 testprog.jpg testimgp.jpg
84 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
85 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
86 # library object files common to compression and decompression
87 COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
88 # compression library object files
89 CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj \
90 jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj \
91 jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj \
92 jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
93 # decompression library object files
94 DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj \
95 jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj \
96 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
97 jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj \
98 jdmerge.obj
99 # These objectfiles are included in libjpeg.lib
100 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
101 # object files for sample applications (excluding library files)
102 COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
103 rdswitch.obj cdjpeg.obj
104 DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
105 rdcolmap.obj cdjpeg.obj
106 TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
107
108 # need linker response file because file list > 128 chars
109 RFILE = libjpeg.ans
110
111
112 all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
113
114 libjpeg.lib: $(LIBOBJECTS) $(RFILE)
115 del libjpeg.lib
116 lib @$(RFILE)
117
118 # linker response file for building libjpeg.lib
119 $(RFILE) : makefile
120 del $(RFILE)
121 echo libjpeg.lib >$(RFILE)
122 # silly want-to-create-it prompt:
123 echo y >>$(RFILE)
124 echo +jcapimin.obj +jcapistd.obj +jcarith.obj +jctrans.obj & >>$(RFILE)
125 echo +jcparam.obj +jdatadst.obj +jcinit.obj +jcmaster.obj & >>$(RFILE)
126 echo +jcmarker.obj +jcmainct.obj +jcprepct.obj & >>$(RFILE)
127 echo +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj & >>$(RFILE)
128 echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
129 echo +jfdctint.obj +jdapimin.obj +jdapistd.obj & >>$(RFILE)
130 echo +jdarith.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj & >>$(RFILE)
131 echo +jdinput.obj +jdmarker.obj +jdhuff.obj +jdmainct.obj & >>$(RFILE)
132 echo +jdcoefct.obj +jdpostct.obj +jddctmgr.obj & >>$(RFILE)
133 echo +jidctfst.obj +jidctflt.obj +jidctint.obj & >>$(RFILE)
134 echo +jdsample.obj +jdcolor.obj +jquant1.obj & >>$(RFILE)
135 echo +jquant2.obj +jdmerge.obj +jaricom.obj +jcomapi.obj & >>$(RFILE)
136 echo +jutils.obj +jerror.obj +jmemmgr.obj & >>$(RFILE)
137 echo $(SYSDEPMEMLIB) ; >>$(RFILE)
138
139 cjpeg.exe: $(COBJECTS) libjpeg.lib
140 echo $(COBJECTS) >cjpeg.lst
141 link /STACK:4096 /EXEPACK @cjpeg.lst, cjpeg.exe, , libjpeg.lib, ;
142 del cjpeg.lst
143
144 djpeg.exe: $(DOBJECTS) libjpeg.lib
145 echo $(DOBJECTS) >djpeg.lst
146 link /STACK:4096 /EXEPACK @djpeg.lst, djpeg.exe, , libjpeg.lib, ;
147 del djpeg.lst
148
149 jpegtran.exe: $(TROBJECTS) libjpeg.lib
150 link /STACK:4096 /EXEPACK $(TROBJECTS), jpegtran.exe, , libjpeg.lib, ;
151
152 rdjpgcom.exe: rdjpgcom.c
153 $(CC) -AS -O -W3 rdjpgcom.c
154
155 # wrjpgcom needs large model so it can malloc a 64K chunk
156 wrjpgcom.exe: wrjpgcom.c
157 $(CC) -AL -O -W3 wrjpgcom.c
158
159 jconfig.h: jconfig.txt
160 echo You must prepare a system-dependent jconfig.h file.
161 echo Please read the installation directions in install.txt.
162 exit 1
163
164 clean:
165 del *.obj
166 del libjpeg.lib
167 del cjpeg.exe
168 del djpeg.exe
169 del jpegtran.exe
170 del rdjpgcom.exe
171 del wrjpgcom.exe
172 del testout*.*
173
174 test: cjpeg.exe djpeg.exe jpegtran.exe
175 del testout*.*
176 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
177 djpeg -dct int -gif -outfile testout.gif testorig.jpg
178 djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
179 cjpeg -dct int -outfile testout.jpg testimg.ppm
180 djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
181 cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
182 jpegtran -outfile testoutt.jpg testprog.jpg
183 fc /b testimg.ppm testout.ppm
184 fc /b testimg.gif testout.gif
185 fc /b testimg.bmp testout.bmp
186 fc /b testimg.jpg testout.jpg
187 fc /b testimg.ppm testoutp.ppm
188 fc /b testimgp.jpg testoutp.jpg
189 fc /b testorig.jpg testoutt.jpg
190
191
192 jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
193 jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194 jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
195 jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
196 jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
197 jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
198 jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
199 jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200 jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201 jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
202 jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203 jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
204 jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205 jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
206 jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
207 jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
208 jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
209 jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
210 jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
211 jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
212 jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
213 jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
214 jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
215 jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
216 jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
217 jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
218 jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
219 jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
220 jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
221 jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
222 jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
223 jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
224 jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
225 jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
226 jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
227 jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
228 jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
229 jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
230 jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
231 jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
232 jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
233 jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
234 jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
235 jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
236 jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
237 jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
238 jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
239 jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
240 jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
241 jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
242 cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
243 djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
244 jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
245 rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
246 wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
247 cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
248 rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
249 rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
250 transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
251 rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
252 wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
253 rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
254 wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
255 rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
256 wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
257 rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
258 wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
259 rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
260 wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
261 jmemdosa.obj : jmemdosa.asm
262 masm /mx $*;