• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Makefile for Independent JPEG Group's software
2
3# This makefile is for Amiga systems using Manx Aztec C ver 5.x.
4# Thanks to D.J. James (djjames@cup.portal.com) for this version.
5
6# Read installation instructions before saying "make" !!
7
8# The name of your C compiler:
9CC= cc
10
11# You may need to adjust these cc options:
12# Uncomment for generic 68000 code (will work on any Amiga)
13ARCHFLAGS= -sn
14
15# Uncomment for 68020/68030 code (faster, but won't run on 68000 CPU)
16#ARCHFLAGS= -c2
17
18CFLAGS= -MC -MD $(ARCHFLAGS) -spfam -r4
19
20# Link-time cc options:
21LDFLAGS= -g
22
23# To link any special libraries, add the necessary -l commands here.
24LDLIBS= -lml -lcl
25
26# Put here the object file name for the correct system-dependent memory
27# manager file.  For Amiga we recommend jmemname.o.
28SYSDEPMEM= jmemname.o
29
30# miscellaneous OS-dependent stuff
31# linker
32LN= ln
33# file deletion command
34RM= delete quiet
35# library (.lib) file creation command
36AR= lb
37
38# End of configurable options.
39
40
41# source files: JPEG library proper
42LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
43        jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
44        jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
45        jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
46        jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
47        jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
48        jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
49        jquant2.c jutils.c jmemmgr.c
50# memmgr back ends: compile only one of these into a working library
51SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
52# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
53APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
54        rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
55        rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
56SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
57# files included by source files
58INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
59        jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
60# documentation, test, and support files
61DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
62        wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt \
63        coderules.txt filelist.txt change.log
64MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.b32 \
65        makefile.bcc makefile.mc6 makefile.dj makefile.wat makefile.vc \
66        makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \
67        makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \
68        makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \
69        makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \
70        makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \
71        makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \
72        maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \
73        makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st maktjpeg.st \
74        makefile.manx makefile.sas makefile.mms makefile.vms makvms.opt
75CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
76        jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
77        jconfig.vms
78CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
79        missing ar-lib
80OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in
81TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \
82        testprog.jpg testimgp.jpg
83DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
84        $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
85# library object files common to compression and decompression
86COMOBJECTS= jaricom.o jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
87# compression library object files
88CLIBOBJECTS= jcapimin.o jcapistd.o jcarith.o jctrans.o jcparam.o \
89        jdatadst.o jcinit.o jcmaster.o jcmarker.o jcmainct.o jcprepct.o \
90        jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o jfdctfst.o \
91        jfdctflt.o jfdctint.o
92# decompression library object files
93DLIBOBJECTS= jdapimin.o jdapistd.o jdarith.o jdtrans.o jdatasrc.o \
94        jdmaster.o jdinput.o jdmarker.o jdhuff.o jdmainct.o \
95        jdcoefct.o jdpostct.o jddctmgr.o jidctfst.o jidctflt.o \
96        jidctint.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
97# These objectfiles are included in libjpeg.lib
98LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
99# object files for sample applications (excluding library files)
100COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
101        cdjpeg.o
102DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
103        cdjpeg.o
104TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
105
106
107all: libjpeg.lib cjpeg djpeg jpegtran rdjpgcom wrjpgcom
108
109libjpeg.lib: $(LIBOBJECTS)
110	-$(RM) libjpeg.lib
111	$(AR) libjpeg.lib  $(LIBOBJECTS)
112
113cjpeg: $(COBJECTS) libjpeg.lib
114	$(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.lib $(LDLIBS)
115
116djpeg: $(DOBJECTS) libjpeg.lib
117	$(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.lib $(LDLIBS)
118
119jpegtran: $(TROBJECTS) libjpeg.lib
120	$(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.lib $(LDLIBS)
121
122rdjpgcom: rdjpgcom.o
123	$(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
124
125wrjpgcom: wrjpgcom.o
126	$(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
127
128jconfig.h: jconfig.txt
129	echo You must prepare a system-dependent jconfig.h file.
130	echo Please read the installation directions in install.txt.
131	exit 1
132
133clean:
134	-$(RM) *.o cjpeg djpeg jpegtran libjpeg.lib rdjpgcom wrjpgcom
135	-$(RM) core testout*.*
136
137test: cjpeg djpeg jpegtran
138	-$(RM) testout*.*
139	djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
140	djpeg -dct int -gif -outfile testout.gif testorig.jpg
141	djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
142	cjpeg -dct int -outfile testout.jpg testimg.ppm
143	djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
144	cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
145	jpegtran -outfile testoutt.jpg testprog.jpg
146	cmp testimg.ppm testout.ppm
147	cmp testimg.gif testout.gif
148	cmp testimg.bmp testout.bmp
149	cmp testimg.jpg testout.jpg
150	cmp testimg.ppm testoutp.ppm
151	cmp testimgp.jpg testoutp.jpg
152	cmp testorig.jpg testoutt.jpg
153
154
155jaricom.o: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
156jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
157jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
158jcarith.o: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
159jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
160jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
161jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
162jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
163jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
164jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
165jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
166jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
167jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
168jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
169jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
170jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
171jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
172jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
173jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
174jdarith.o: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
175jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
176jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
177jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
178jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
179jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
180jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
181jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
182jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
183jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
184jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
185jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
186jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
187jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
188jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
189jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
190jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
191jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
192jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
193jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
194jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
195jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
196jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
197jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
198jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
199jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
200jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
201jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
202jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
203jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
204jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
205cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
206djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
207jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
208rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
209wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
210cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
211rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
212rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
213transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
214rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
215wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
216rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
217wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
218rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
219wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
220rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
221wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
222rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
223wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
224