source: trunk/libjpeg/makefile.sas @ 283

Last change on this file since 283 was 283, checked in by rbri, 12 years ago

JPEG plugin: libjpeg updated to version 7

File size: 12.9 KB
Line 
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:
9CC= sc
10
11# You may need to adjust these cc options:
12# Uncomment the following lines for generic 680x0 version
13ARCHFLAGS= cpu=any
14SUFFIX=
15
16# Uncomment the following lines for 68030-only version
17#ARCHFLAGS= cpu=68030
18#SUFFIX=.030
19
20CFLAGS= 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:
29LDFLAGS= SC SD ND BATCH
30
31# To link any special libraries, add the necessary commands here.
32LDLIBS= 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.
36SYSDEPMEM= jmemname.o
37
38# miscellaneous OS-dependent stuff
39# linker
40LN= slink
41# file deletion command
42RM= delete quiet
43# library (.lib) file creation command
44AR= oml
45
46# End of configurable options.
47
48
49# source files: JPEG library proper
50LIBSOURCES= 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
59SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
60# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
61APPSOURCES= 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
64SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
65# files included by source files
66INCLUDES= 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
69DOCS= 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
72MKFILES= 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.vc9 \
78        makeasln.vc9 makejvcp.vc9 makecvcp.vc9 makedvcp.vc9 maketvcp.vc9 \
79        makervcp.vc9 makewvcp.vc9 makeproj.mac makcjpeg.st makdjpeg.st \
80        makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
81        makefile.vms makvms.opt
82CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
83        jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
84        jconfig.vms
85CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
86OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
87        libjpeg.map
88TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
89        testimgp.jpg
90DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
91        $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
92# library object files common to compression and decompression
93COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
94# compression library object files
95CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
96        jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
97        jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
98        jfdctflt.o jfdctint.o
99# decompression library object files
100DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
101        jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
102        jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
103        jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
104# These objectfiles are included in libjpeg.lib
105LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
106# object files for sample applications (excluding library files)
107COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
108        cdjpeg.o
109DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
110        cdjpeg.o
111TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
112
113
114all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
115
116# note: do several AR steps to avoid command line length limitations
117
118libjpeg.lib: $(LIBOBJECTS)
119        -$(RM) libjpeg.lib
120        $(AR) libjpeg.lib r $(CLIBOBJECTS)
121        $(AR) libjpeg.lib r $(DLIBOBJECTS)
122        $(AR) libjpeg.lib r $(COMOBJECTS)
123
124cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
125        $(LN) <WITH <
126$(LDFLAGS)
127TO cjpeg$(SUFFIX)
128FROM LIB:c.o $(COBJECTS)
129LIB libjpeg.lib $(LDLIBS)
130<
131
132djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
133        $(LN) <WITH <
134$(LDFLAGS)
135TO djpeg$(SUFFIX)
136FROM LIB:c.o $(DOBJECTS)
137LIB libjpeg.lib $(LDLIBS)
138<
139
140jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
141        $(LN) <WITH <
142$(LDFLAGS)
143TO jpegtran$(SUFFIX)
144FROM LIB:c.o $(TROBJECTS)
145LIB libjpeg.lib $(LDLIBS)
146<
147
148rdjpgcom$(SUFFIX): rdjpgcom.o
149        $(LN) <WITH <
150$(LDFLAGS)
151TO rdjpgcom$(SUFFIX)
152FROM LIB:c.o rdjpgcom.o
153LIB $(LDLIBS)
154<
155
156wrjpgcom$(SUFFIX): wrjpgcom.o
157        $(LN) <WITH <
158$(LDFLAGS)
159TO wrjpgcom$(SUFFIX)
160FROM LIB:c.o wrjpgcom.o
161LIB $(LDLIBS)
162<
163
164jconfig.h: jconfig.txt
165        echo You must prepare a system-dependent jconfig.h file.
166        echo Please read the installation directions in install.txt.
167        exit 1
168
169clean:
170        -$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
171        -$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
172        -$(RM) libjpeg.lib core testout*.*
173
174test: cjpeg djpeg jpegtran
175        -$(RM) testout*.*
176        djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
177        djpeg -dct int -bmp -colors 256 -outfile testout.bmp  testorig.jpg
178        cjpeg -dct int -outfile testout.jpg  testimg.ppm
179        djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
180        cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
181        jpegtran -outfile testoutt.jpg testprog.jpg
182        cmp testimg.ppm testout.ppm
183        cmp testimg.bmp testout.bmp
184        cmp testimg.jpg testout.jpg
185        cmp testimg.ppm testoutp.ppm
186        cmp testimgp.jpg testoutp.jpg
187        cmp testorig.jpg testoutt.jpg
188
189
190jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
191jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
192jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
193jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
195jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
196jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
197jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
198jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
199jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
202jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
204jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
206jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
207jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
208jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
209jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
210jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
211jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
212jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
213jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
214jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
215jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
216jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
217jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
218jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
219jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
220jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
221jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
222jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
223jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
224jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
225jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
226jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
227jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
228jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
229jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
230jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
231jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
232jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
233jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
234jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
235jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
236jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
237jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
238jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
239jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
240cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
241djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
242jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
243rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
244wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
245cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
246rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
247rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
248transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
249rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
250wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
251rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
252wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
253rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
254wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
255rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
256wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
257rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
258wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
Note: See TracBrowser for help on using the repository browser.