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= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
|
---|
51 | jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
|
---|
52 | jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
|
---|
53 | jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
|
---|
54 | jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
|
---|
55 | jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
|
---|
56 | jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.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= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
|
---|
67 | jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
|
---|
68 | # documentation, test, and support files
|
---|
69 | DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
|
---|
70 | wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
|
---|
71 | coderules.doc filelist.doc change.log
|
---|
72 | MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
|
---|
73 | makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
|
---|
74 | makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
|
---|
75 | maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
|
---|
76 | makvms.opt
|
---|
77 | CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
|
---|
78 | jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
|
---|
79 | jconfig.vms
|
---|
80 | CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
|
---|
81 | OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
|
---|
82 | TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
|
---|
83 | testimgp.jpg
|
---|
84 | DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
|
---|
85 | $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
|
---|
86 | # library object files common to compression and decompression
|
---|
87 | COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
|
---|
88 | # compression library object files
|
---|
89 | CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
|
---|
90 | jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
|
---|
91 | jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
|
---|
92 | jfdctint.o
|
---|
93 | # decompression library object files
|
---|
94 | DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
|
---|
95 | jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
|
---|
96 | jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
|
---|
97 | jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
|
---|
98 | # These objectfiles are included in libjpeg.lib
|
---|
99 | LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
|
---|
100 | # object files for sample applications (excluding library files)
|
---|
101 | COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
|
---|
102 | cdjpeg.o
|
---|
103 | DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
|
---|
104 | cdjpeg.o
|
---|
105 | TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
|
---|
106 |
|
---|
107 |
|
---|
108 | all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
|
---|
109 |
|
---|
110 | # note: do several AR steps to avoid command line length limitations
|
---|
111 |
|
---|
112 | libjpeg.lib: $(LIBOBJECTS)
|
---|
113 | -$(RM) libjpeg.lib
|
---|
114 | $(AR) libjpeg.lib r $(CLIBOBJECTS)
|
---|
115 | $(AR) libjpeg.lib r $(DLIBOBJECTS)
|
---|
116 | $(AR) libjpeg.lib r $(COMOBJECTS)
|
---|
117 |
|
---|
118 | cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
|
---|
119 | $(LN) <WITH <
|
---|
120 | $(LDFLAGS)
|
---|
121 | TO cjpeg$(SUFFIX)
|
---|
122 | FROM LIB:c.o $(COBJECTS)
|
---|
123 | LIB libjpeg.lib $(LDLIBS)
|
---|
124 | <
|
---|
125 |
|
---|
126 | djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
|
---|
127 | $(LN) <WITH <
|
---|
128 | $(LDFLAGS)
|
---|
129 | TO djpeg$(SUFFIX)
|
---|
130 | FROM LIB:c.o $(DOBJECTS)
|
---|
131 | LIB libjpeg.lib $(LDLIBS)
|
---|
132 | <
|
---|
133 |
|
---|
134 | jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
|
---|
135 | $(LN) <WITH <
|
---|
136 | $(LDFLAGS)
|
---|
137 | TO jpegtran$(SUFFIX)
|
---|
138 | FROM LIB:c.o $(TROBJECTS)
|
---|
139 | LIB libjpeg.lib $(LDLIBS)
|
---|
140 | <
|
---|
141 |
|
---|
142 | rdjpgcom$(SUFFIX): rdjpgcom.o
|
---|
143 | $(LN) <WITH <
|
---|
144 | $(LDFLAGS)
|
---|
145 | TO rdjpgcom$(SUFFIX)
|
---|
146 | FROM LIB:c.o rdjpgcom.o
|
---|
147 | LIB $(LDLIBS)
|
---|
148 | <
|
---|
149 |
|
---|
150 | wrjpgcom$(SUFFIX): wrjpgcom.o
|
---|
151 | $(LN) <WITH <
|
---|
152 | $(LDFLAGS)
|
---|
153 | TO wrjpgcom$(SUFFIX)
|
---|
154 | FROM LIB:c.o wrjpgcom.o
|
---|
155 | LIB $(LDLIBS)
|
---|
156 | <
|
---|
157 |
|
---|
158 | jconfig.h: jconfig.doc
|
---|
159 | echo You must prepare a system-dependent jconfig.h file.
|
---|
160 | echo Please read the installation directions in install.doc.
|
---|
161 | exit 1
|
---|
162 |
|
---|
163 | clean:
|
---|
164 | -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
|
---|
165 | -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
|
---|
166 | -$(RM) libjpeg.lib core testout*.*
|
---|
167 |
|
---|
168 | test: cjpeg djpeg jpegtran
|
---|
169 | -$(RM) testout*.*
|
---|
170 | djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
|
---|
171 | djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
|
---|
172 | cjpeg -dct int -outfile testout.jpg testimg.ppm
|
---|
173 | djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
|
---|
174 | cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
|
---|
175 | jpegtran -outfile testoutt.jpg testprog.jpg
|
---|
176 | cmp testimg.ppm testout.ppm
|
---|
177 | cmp testimg.bmp testout.bmp
|
---|
178 | cmp testimg.jpg testout.jpg
|
---|
179 | cmp testimg.ppm testoutp.ppm
|
---|
180 | cmp testimgp.jpg testoutp.jpg
|
---|
181 | cmp testorig.jpg testoutt.jpg
|
---|
182 |
|
---|
183 |
|
---|
184 | jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
185 | jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
186 | jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
187 | jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
188 | jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
189 | jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
---|
190 | jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
191 | jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
192 | jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
193 | jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
194 | jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
195 | jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
196 | jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
---|
197 | jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
198 | jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
199 | jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
200 | jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
201 | jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
202 | jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
---|
203 | jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
---|
204 | jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
205 | jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
206 | jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
207 | jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
---|
208 | jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
209 | jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
210 | jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
211 | jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
212 | jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
213 | jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
---|
214 | jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
215 | jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
216 | jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
217 | jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
|
---|
218 | jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
219 | jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
220 | jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
221 | jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
222 | jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
223 | jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
224 | jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
---|
225 | jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
226 | jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
227 | jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
---|
228 | jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
229 | jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
230 | jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
231 | jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
232 | jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
233 | jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
---|
234 | cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
---|
235 | djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
---|
236 | jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
|
---|
237 | rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
|
---|
238 | wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
|
---|
239 | cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
240 | rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
241 | rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
242 | transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
|
---|
243 | rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
244 | wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
245 | rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
246 | wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
247 | rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
248 | wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
249 | rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
250 | wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
251 | rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|
252 | wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
---|