comparison mupdf-source/thirdparty/libjpeg/makefile.bcc @ 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 suitable for Borland C on MS-DOS or OS/2.
4 # It works with Borland C++ for DOS, revision 3.0 or later,
5 # and has been tested with Borland C++ for OS/2.
6 # Watch out for optimization bugs in the OS/2 compilers --- see notes below!
7 # Thanks to Tom Wright and Ge' Weijers (original DOS) and
8 # Ken Porter (OS/2) for this file.
9
10 # Read installation instructions in install.txt before saying "make" !!
11
12 # Are we under DOS or OS/2?
13 !if !$d(DOS) && !$d(OS2)
14 !if $d(__OS2__)
15 OS2=1
16 !else
17 DOS=1
18 !endif
19 !endif
20
21 # The name of your C compiler:
22 CC= bcc
23
24 # You may need to adjust these cc options:
25 !if $d(DOS)
26 CFLAGS= -O2 -mm -w-par -w-stu -w-ccc -w-rch
27 !else
28 CFLAGS= -O1 -w-par -w-stu -w-ccc -w-rch
29 !endif
30 # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z).
31 # -O2 is buggy in Borland OS/2 C++ revision 2.0, so use -O1 there for now.
32 # If you have Borland OS/2 C++ revision 1.0, use -O or no optimization at all.
33 # -mm selects medium memory model (near data, far code pointers; DOS only!)
34 # -w-par suppresses warnings about unused function parameters
35 # -w-stu suppresses warnings about incomplete structures
36 # -w-ccc suppresses warnings about compile-time-constant conditions
37 # -w-rch suppresses warnings about unreachable code
38 # Generally, we recommend defining any configuration symbols in jconfig.h,
39 # NOT via -D switches here.
40
41 # Link-time cc options:
42 !if $d(DOS)
43 LDFLAGS= -mm
44 # memory model option here must match CFLAGS!
45 !else
46 LDFLAGS=
47 # -lai full-screen app
48 # -lc case-significant link
49 !endif
50
51 # Put here the object file name for the correct system-dependent memory
52 # manager file.
53 # For DOS, we recommend jmemdos.c and jmemdosa.asm.
54 # For OS/2, we recommend jmemnobs.c (flat memory!)
55 # SYSDEPMEMLIB must list the same files with "+" signs for the librarian.
56 !if $d(DOS)
57 SYSDEPMEM= jmemdos.obj jmemdosa.obj
58 SYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj
59 !else
60 SYSDEPMEM= jmemnobs.obj
61 SYSDEPMEMLIB= +jmemnobs.obj
62 !endif
63
64 # End of configurable options.
65
66
67 # source files: JPEG library proper
68 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
69 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
70 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
71 jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
72 jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
73 jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
74 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
75 jquant2.c jutils.c jmemmgr.c
76 # memmgr back ends: compile only one of these into a working library
77 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
78 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
79 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
80 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
81 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
82 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
83 # files included by source files
84 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
85 jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
86 # documentation, test, and support files
87 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
88 wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
89 coderules.txt filelist.txt cdaltui.txt change.log
90 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \
91 makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \
92 makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \
93 makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
94 makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
95 makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
96 makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
97 makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
98 makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
99 maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
100 makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \
101 maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \
102 maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \
103 makefile.vms makvms.opt
104 CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \
105 jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
106 jconfig.sas jconfig.vms
107 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
108 missing ar-lib
109 OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \
110 cjpegalt.c djpegalt.c
111 TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
112 testprog.jpg testimgp.jpg
113 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
114 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
115 # library object files common to compression and decompression
116 COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
117 # compression library object files
118 CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj \
119 jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj \
120 jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj \
121 jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
122 # decompression library object files
123 DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj \
124 jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj \
125 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
126 jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj \
127 jdmerge.obj
128 # These objectfiles are included in libjpeg.lib
129 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
130 # object files for sample applications (excluding library files)
131 COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
132 rdswitch.obj cdjpeg.obj
133 DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
134 rdcolmap.obj cdjpeg.obj
135 TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
136
137
138 all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
139
140 libjpeg.lib: $(LIBOBJECTS)
141 - del libjpeg.lib
142 tlib libjpeg.lib /E /C @&&|
143 +jcapimin.obj +jcapistd.obj +jcarith.obj +jctrans.obj +jcparam.obj &
144 +jdatadst.obj +jcinit.obj +jcmaster.obj +jcmarker.obj +jcmainct.obj &
145 +jcprepct.obj +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj &
146 +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj +jfdctint.obj +jdapimin.obj &
147 +jdapistd.obj +jdarith.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj &
148 +jdinput.obj +jdmarker.obj +jdhuff.obj +jdmainct.obj +jdcoefct.obj &
149 +jdpostct.obj +jddctmgr.obj +jidctfst.obj +jidctflt.obj +jidctint.obj &
150 +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj +jdmerge.obj &
151 +jaricom.obj +jcomapi.obj +jutils.obj +jerror.obj +jmemmgr.obj &
152 $(SYSDEPMEMLIB)
153 |
154
155 cjpeg.exe: $(COBJECTS) libjpeg.lib
156 $(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.lib
157
158 djpeg.exe: $(DOBJECTS) libjpeg.lib
159 $(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.lib
160
161 jpegtran.exe: $(TROBJECTS) libjpeg.lib
162 $(CC) $(LDFLAGS) -ejpegtran.exe $(TROBJECTS) libjpeg.lib
163
164 rdjpgcom.exe: rdjpgcom.c
165 !if $d(DOS)
166 $(CC) -ms -O rdjpgcom.c
167 !else
168 $(CC) $(CFLAGS) rdjpgcom.c
169 !endif
170
171 # On DOS, wrjpgcom needs large model so it can malloc a 64K chunk
172 wrjpgcom.exe: wrjpgcom.c
173 !if $d(DOS)
174 $(CC) -ml -O wrjpgcom.c
175 !else
176 $(CC) $(CFLAGS) wrjpgcom.c
177 !endif
178
179 # This "{}" syntax allows Borland Make to "batch" source files.
180 # In this way, each run of the compiler can build many modules.
181 .c.obj:
182 $(CC) $(CFLAGS) -c{ $<}
183
184 jconfig.h: jconfig.txt
185 @echo.
186 @echo. You must prepare a system-dependent jconfig.h file.
187 @echo. Please read the installation directions in install.txt.
188 @echo.
189 exit 1
190
191 clean:
192 - del *.obj
193 - del libjpeg.lib
194 - del cjpeg.exe
195 - del djpeg.exe
196 - del jpegtran.exe
197 - del rdjpgcom.exe
198 - del wrjpgcom.exe
199 - del testout*.*
200
201 test: cjpeg.exe djpeg.exe jpegtran.exe
202 - del testout*.*
203 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
204 djpeg -dct int -gif -outfile testout.gif testorig.jpg
205 djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
206 cjpeg -dct int -outfile testout.jpg testimg.ppm
207 djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
208 cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
209 jpegtran -outfile testoutt.jpg testprog.jpg
210 !if $d(DOS)
211 fc /b testimg.ppm testout.ppm
212 fc /b testimg.gif testout.gif
213 fc /b testimg.bmp testout.bmp
214 fc /b testimg.jpg testout.jpg
215 fc /b testimg.ppm testoutp.ppm
216 fc /b testimgp.jpg testoutp.jpg
217 fc /b testorig.jpg testoutt.jpg
218 !else
219 echo n > n.tmp
220 comp testimg.ppm testout.ppm < n.tmp
221 comp testimg.gif testout.gif < n.tmp
222 comp testimg.bmp testout.bmp < n.tmp
223 comp testimg.jpg testout.jpg < n.tmp
224 comp testimg.ppm testoutp.ppm < n.tmp
225 comp testimgp.jpg testoutp.jpg < n.tmp
226 comp testorig.jpg testoutt.jpg < n.tmp
227 del n.tmp
228 !endif
229
230
231 jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
232 jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
233 jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
234 jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
235 jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
236 jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
237 jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
238 jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
239 jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
240 jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
241 jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
242 jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
243 jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
244 jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
245 jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
246 jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
247 jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
248 jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
249 jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
250 jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
251 jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
252 jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
253 jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
254 jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
255 jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
256 jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
257 jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
258 jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
259 jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
260 jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
261 jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
262 jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
263 jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
264 jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
265 jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
266 jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
267 jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
268 jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
269 jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
270 jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
271 jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
272 jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
273 jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
274 jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
275 jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
276 jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
277 jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
278 jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
279 jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
280 jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
281 cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
282 djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
283 jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
284 rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
285 wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
286 cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
287 rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
288 rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
289 transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
290 rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
291 wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
292 rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
293 wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
294 rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
295 wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
296 rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
297 wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
298 rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
299 wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
300 jmemdosa.obj: jmemdosa.asm
301 tasm /mx jmemdosa.asm