comparison mupdf-source/thirdparty/libjpeg/makefile.sas @ 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 Amiga systems using SAS C 6.0 and up.
4 # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
5
6 # Read installation instructions before saying "make" !!
7
8 # The name of your C compiler:
9 CC= sc
10
11 # You may need to adjust these cc options:
12 # Uncomment the following lines for generic 680x0 version
13 ARCHFLAGS= cpu=any
14 SUFFIX=
15
16 # Uncomment the following lines for 68030-only version
17 #ARCHFLAGS= cpu=68030
18 #SUFFIX=.030
19
20 CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
21 ignore=104 ignore=304 ignore=306
22 # ignore=104 disables warnings for mismatched const qualifiers
23 # ignore=304 disables warnings for variables being optimized out
24 # ignore=306 disables warnings for the inlining of functions
25 # Generally, we recommend defining any configuration symbols in jconfig.h,
26 # NOT via define switches here.
27
28 # Link-time cc options:
29 LDFLAGS= SC SD ND BATCH
30
31 # To link any special libraries, add the necessary commands here.
32 LDLIBS= LIB:scm.lib LIB:sc.lib
33
34 # Put here the object file name for the correct system-dependent memory
35 # manager file. For Amiga we recommend jmemname.o.
36 SYSDEPMEM= jmemname.o
37
38 # miscellaneous OS-dependent stuff
39 # linker
40 LN= slink
41 # file deletion command
42 RM= delete quiet
43 # library (.lib) file creation command
44 AR= oml
45
46 # End of configurable options.
47
48
49 # source files: JPEG library proper
50 LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
51 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
52 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
53 jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
54 jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
55 jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
56 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
57 jquant2.c jutils.c jmemmgr.c
58 # memmgr back ends: compile only one of these into a working library
59 SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
60 # source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
61 APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
62 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
63 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
64 SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
65 # files included by source files
66 INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
67 jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
68 # documentation, test, and support files
69 DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
70 wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
71 coderules.txt filelist.txt cdaltui.txt change.log
72 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.xc \
73 makefile.bcc makefile.b32 makefile.c32 makefile.d32 makefile.x32 \
74 makefile.b64 makefile.mc6 makefile.dj makefile.wat makefile.vc \
75 makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
76 makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
77 makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
78 makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
79 makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
80 makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
81 maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
82 makajpeg.bcb makcjpeg.bcb makdjpeg.bcb makljpeg.bcb makrjpeg.bcb \
83 maktjpeg.bcb makwjpeg.bcb makcjpeg.st makdjpeg.st makljpeg.st \
84 maktjpeg.st makeproj.mac makefile.manx makefile.sas makefile.mms \
85 makefile.vms makvms.opt
86 CONFIGFILES= jconfig.cfg jconfig.xc jconfig.bcc jconfig.mc6 jconfig.dj \
87 jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
88 jconfig.sas jconfig.vms
89 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
90 missing ar-lib
91 OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in \
92 cjpegalt.c djpegalt.c
93 TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
94 testprog.jpg testimgp.jpg
95 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
96 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
97 # library object files common to compression and decompression
98 COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
99 # compression library object files
100 CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
101 jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
102 jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
103 jfdctflt.o jfdctint.o
104 # decompression library object files
105 DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
106 jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
107 jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
108 jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
109 # These objectfiles are included in libjpeg.lib
110 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
111 # object files for sample applications (excluding library files)
112 COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
113 cdjpeg.o
114 DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
115 cdjpeg.o
116 TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
117
118
119 all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
120
121 # note: do several AR steps to avoid command line length limitations
122
123 libjpeg.lib: $(LIBOBJECTS)
124 -$(RM) libjpeg.lib
125 $(AR) libjpeg.lib r $(CLIBOBJECTS)
126 $(AR) libjpeg.lib r $(DLIBOBJECTS)
127 $(AR) libjpeg.lib r $(COMOBJECTS)
128
129 cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
130 $(LN) <WITH <
131 $(LDFLAGS)
132 TO cjpeg$(SUFFIX)
133 FROM LIB:c.o $(COBJECTS)
134 LIB libjpeg.lib $(LDLIBS)
135 <
136
137 djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
138 $(LN) <WITH <
139 $(LDFLAGS)
140 TO djpeg$(SUFFIX)
141 FROM LIB:c.o $(DOBJECTS)
142 LIB libjpeg.lib $(LDLIBS)
143 <
144
145 jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
146 $(LN) <WITH <
147 $(LDFLAGS)
148 TO jpegtran$(SUFFIX)
149 FROM LIB:c.o $(TROBJECTS)
150 LIB libjpeg.lib $(LDLIBS)
151 <
152
153 rdjpgcom$(SUFFIX): rdjpgcom.o
154 $(LN) <WITH <
155 $(LDFLAGS)
156 TO rdjpgcom$(SUFFIX)
157 FROM LIB:c.o rdjpgcom.o
158 LIB $(LDLIBS)
159 <
160
161 wrjpgcom$(SUFFIX): wrjpgcom.o
162 $(LN) <WITH <
163 $(LDFLAGS)
164 TO wrjpgcom$(SUFFIX)
165 FROM LIB:c.o wrjpgcom.o
166 LIB $(LDLIBS)
167 <
168
169 jconfig.h: jconfig.txt
170 echo You must prepare a system-dependent jconfig.h file.
171 echo Please read the installation directions in install.txt.
172 exit 1
173
174 clean:
175 -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
176 -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
177 -$(RM) libjpeg.lib core testout*.*
178
179 test: cjpeg djpeg jpegtran
180 -$(RM) testout*.*
181 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
182 djpeg -dct int -gif -outfile testout.gif testorig.jpg
183 djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
184 cjpeg -dct int -outfile testout.jpg testimg.ppm
185 djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
186 cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
187 jpegtran -outfile testoutt.jpg testprog.jpg
188 cmp testimg.ppm testout.ppm
189 cmp testimg.gif testout.gif
190 cmp testimg.bmp testout.bmp
191 cmp testimg.jpg testout.jpg
192 cmp testimg.ppm testoutp.ppm
193 cmp testimgp.jpg testoutp.jpg
194 cmp testorig.jpg testoutt.jpg
195
196
197 jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
198 jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
199 jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200 jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201 jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
202 jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203 jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
204 jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205 jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
206 jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
207 jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
208 jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
209 jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
210 jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
211 jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
212 jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
213 jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
214 jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
215 jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
216 jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
217 jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
218 jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
219 jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
220 jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
221 jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
222 jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
223 jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
224 jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
225 jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
226 jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
227 jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
228 jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
229 jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
230 jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
231 jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
232 jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
233 jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
234 jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
235 jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
236 jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
237 jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
238 jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
239 jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
240 jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
241 jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
242 jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
243 jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
244 jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
245 jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
246 jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
247 cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
248 djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
249 jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
250 rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
251 wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
252 cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
253 rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
254 rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
255 transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
256 rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
257 wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
258 rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
259 wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
260 rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
261 wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
262 rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
263 wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
264 rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
265 wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h