Bringing jpeg-8d into the main branch
[AROS.git] / workbench / libs / jpeg / makefile.sas
blob252f8fbad03d0c7b742c0469020dcd21005a028f
1 # Makefile for Independent JPEG Group's software
3 # This makefile is for Amiga systems using SAS C 6.0 and up.
4 # Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
6 # Read installation instructions before saying "make" !!
8 # The name of your C compiler:
9 CC= sc
11 # You may need to adjust these cc options:
12 # Uncomment the following lines for generic 680x0 version
13 ARCHFLAGS= cpu=any
14 SUFFIX=
16 # Uncomment the following lines for 68030-only version
17 #ARCHFLAGS= cpu=68030
18 #SUFFIX=.030
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.
28 # Link-time cc options:
29 LDFLAGS= SC SD ND BATCH
31 # To link any special libraries, add the necessary commands here.
32 LDLIBS= LIB:scm.lib LIB:sc.lib
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
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
46 # End of configurable options.
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 change.log
72 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc \
73 makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \
74 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \
75 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \
76 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \
77 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.v10 \
78 makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 \
79 makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 \
80 makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st \
81 makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas \
82 makefile.mms makefile.vms makvms.opt
83 CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
84 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
85 jconfig.vms
86 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
87 OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
88 libjpeg.map
89 TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
90 testimgp.jpg
91 DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
92 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
93 # library object files common to compression and decompression
94 COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
95 # compression library object files
96 CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
97 jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
98 jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
99 jfdctflt.o jfdctint.o
100 # decompression library object files
101 DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
102 jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
103 jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
104 jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
105 # These objectfiles are included in libjpeg.lib
106 LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
107 # object files for sample applications (excluding library files)
108 COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
109 cdjpeg.o
110 DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
111 cdjpeg.o
112 TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
115 all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
117 # note: do several AR steps to avoid command line length limitations
119 libjpeg.lib: $(LIBOBJECTS)
120 -$(RM) libjpeg.lib
121 $(AR) libjpeg.lib r $(CLIBOBJECTS)
122 $(AR) libjpeg.lib r $(DLIBOBJECTS)
123 $(AR) libjpeg.lib r $(COMOBJECTS)
125 cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
126 $(LN) <WITH <
127 $(LDFLAGS)
128 TO cjpeg$(SUFFIX)
129 FROM LIB:c.o $(COBJECTS)
130 LIB libjpeg.lib $(LDLIBS)
133 djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
134 $(LN) <WITH <
135 $(LDFLAGS)
136 TO djpeg$(SUFFIX)
137 FROM LIB:c.o $(DOBJECTS)
138 LIB libjpeg.lib $(LDLIBS)
141 jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
142 $(LN) <WITH <
143 $(LDFLAGS)
144 TO jpegtran$(SUFFIX)
145 FROM LIB:c.o $(TROBJECTS)
146 LIB libjpeg.lib $(LDLIBS)
149 rdjpgcom$(SUFFIX): rdjpgcom.o
150 $(LN) <WITH <
151 $(LDFLAGS)
152 TO rdjpgcom$(SUFFIX)
153 FROM LIB:c.o rdjpgcom.o
154 LIB $(LDLIBS)
157 wrjpgcom$(SUFFIX): wrjpgcom.o
158 $(LN) <WITH <
159 $(LDFLAGS)
160 TO wrjpgcom$(SUFFIX)
161 FROM LIB:c.o wrjpgcom.o
162 LIB $(LDLIBS)
165 jconfig.h: jconfig.txt
166 echo You must prepare a system-dependent jconfig.h file.
167 echo Please read the installation directions in install.txt.
168 exit 1
170 clean:
171 -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
172 -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
173 -$(RM) libjpeg.lib core testout*.*
175 test: cjpeg djpeg jpegtran
176 -$(RM) testout*.*
177 djpeg -dct int -ppm -outfile testout.ppm 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 cmp testimg.ppm testout.ppm
184 cmp testimg.bmp testout.bmp
185 cmp testimg.jpg testout.jpg
186 cmp testimg.ppm testoutp.ppm
187 cmp testimgp.jpg testoutp.jpg
188 cmp testorig.jpg testoutt.jpg
191 jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
192 jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
193 jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194 jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
195 jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
196 jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
197 jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
198 jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
199 jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200 jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201 jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
202 jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203 jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
204 jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205 jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
206 jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
207 jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
208 jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
209 jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
210 jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
211 jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
212 jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
213 jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
214 jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
215 jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
216 jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
217 jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
218 jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
219 jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
220 jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
221 jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
222 jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
223 jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
224 jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
225 jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
226 jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
227 jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
228 jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
229 jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
230 jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
231 jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
232 jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
233 jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
234 jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
235 jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
236 jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
237 jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
238 jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
239 jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
240 jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
241 cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
242 djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
243 jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
244 rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
245 wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
246 cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
247 rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
248 rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
249 transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
250 rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
251 wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
252 rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
253 wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
254 rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
255 wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
256 rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
257 wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
258 rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
259 wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h