1991-12-12 19:00:00 -05:00
|
|
|
# Makefile for Independent JPEG Group's software
|
|
|
|
|
|
|
|
# This makefile is for Amiga systems using Manx Aztec C ver 5.x.
|
1992-03-16 19:00:00 -05:00
|
|
|
# Thanks to D.J. James (djjames@cup.portal.com) for this version.
|
1991-12-12 19:00:00 -05:00
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# Read installation instructions before saying "make" !!
|
1991-12-12 19:00:00 -05:00
|
|
|
|
|
|
|
# The name of your C compiler:
|
|
|
|
CC= cc
|
|
|
|
|
|
|
|
# You may need to adjust these cc options:
|
1994-09-23 20:00:00 -04:00
|
|
|
# Uncomment for generic 68000 code (will work on any Amiga)
|
1992-12-09 19:00:00 -05:00
|
|
|
ARCHFLAGS= -sn
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# Uncomment for 68020/68030 code (faster, but won't run on 68000 CPU)
|
1992-12-09 19:00:00 -05:00
|
|
|
#ARCHFLAGS= -c2
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
CFLAGS= -MC -MD $(ARCHFLAGS) -spfam -r4
|
1991-12-12 19:00:00 -05:00
|
|
|
|
|
|
|
# Link-time cc options:
|
1992-12-09 19:00:00 -05:00
|
|
|
LDFLAGS= -g
|
1991-12-12 19:00:00 -05:00
|
|
|
|
|
|
|
# To link any special libraries, add the necessary -l commands here.
|
|
|
|
LDLIBS= -lml -lcl
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# Put here the object file name for the correct system-dependent memory
|
|
|
|
# manager file. For Amiga we recommend jmemname.o.
|
|
|
|
SYSDEPMEM= jmemname.o
|
|
|
|
|
1991-12-12 19:00:00 -05:00
|
|
|
# miscellaneous OS-dependent stuff
|
|
|
|
# linker
|
|
|
|
LN= ln
|
|
|
|
# file deletion command
|
|
|
|
RM= delete quiet
|
|
|
|
# library (.lib) file creation command
|
|
|
|
AR= lb
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# End of configurable options.
|
|
|
|
|
|
|
|
|
|
|
|
# source files: JPEG library proper
|
1995-08-01 20:00:00 -04:00
|
|
|
LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
|
|
|
|
jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
|
|
|
|
jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
|
|
|
|
jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
|
|
|
|
jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
|
|
|
|
jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
|
|
|
|
jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
|
1996-02-06 19:00:00 -05:00
|
|
|
jquant2.c jutils.c jmemmgr.c
|
|
|
|
# memmgr back ends: compile only one of these into a working library
|
|
|
|
SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
|
1995-08-01 20:00:00 -04:00
|
|
|
# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
|
1998-03-26 19:00:00 -05:00
|
|
|
APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
|
|
|
|
rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
|
|
|
|
rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
|
1996-02-06 19:00:00 -05:00
|
|
|
SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
|
1991-12-12 19:00:00 -05:00
|
|
|
# files included by source files
|
1995-08-01 20:00:00 -04:00
|
|
|
INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
|
1998-03-26 19:00:00 -05:00
|
|
|
jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
|
1991-12-12 19:00:00 -05:00
|
|
|
# documentation, test, and support files
|
1995-08-01 20:00:00 -04:00
|
|
|
DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
|
|
|
|
wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
|
|
|
|
coderules.doc filelist.doc change.log
|
|
|
|
MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
|
1998-03-26 19:00:00 -05:00
|
|
|
makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
|
|
|
|
makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
|
|
|
|
maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
|
|
|
|
makvms.opt
|
|
|
|
CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
|
|
|
|
jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
|
|
|
|
jconfig.vms
|
|
|
|
CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
|
1994-09-23 20:00:00 -04:00
|
|
|
OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
|
1998-03-26 19:00:00 -05:00
|
|
|
TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
|
1995-08-01 20:00:00 -04:00
|
|
|
testimgp.jpg
|
1994-09-23 20:00:00 -04:00
|
|
|
DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
|
1998-03-26 19:00:00 -05:00
|
|
|
$(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
|
1994-09-23 20:00:00 -04:00
|
|
|
# library object files common to compression and decompression
|
|
|
|
COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
|
|
|
|
# compression library object files
|
1995-08-01 20:00:00 -04:00
|
|
|
CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
|
|
|
|
jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
|
|
|
|
jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
|
|
|
|
jfdctint.o
|
1994-09-23 20:00:00 -04:00
|
|
|
# decompression library object files
|
1995-08-01 20:00:00 -04:00
|
|
|
DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
|
|
|
|
jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
|
1994-09-23 20:00:00 -04:00
|
|
|
jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
|
1995-08-01 20:00:00 -04:00
|
|
|
jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
|
1991-12-12 19:00:00 -05:00
|
|
|
# These objectfiles are included in libjpeg.lib
|
|
|
|
LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
|
1995-08-01 20:00:00 -04:00
|
|
|
# object files for sample applications (excluding library files)
|
|
|
|
COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
|
|
|
|
cdjpeg.o
|
|
|
|
DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
|
|
|
|
cdjpeg.o
|
1998-03-26 19:00:00 -05:00
|
|
|
TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
|
1991-12-12 19:00:00 -05:00
|
|
|
|
|
|
|
|
1995-08-01 20:00:00 -04:00
|
|
|
all: libjpeg.lib cjpeg djpeg jpegtran rdjpgcom wrjpgcom
|
1991-12-12 19:00:00 -05:00
|
|
|
|
|
|
|
libjpeg.lib: $(LIBOBJECTS)
|
|
|
|
-$(RM) libjpeg.lib
|
|
|
|
$(AR) libjpeg.lib $(LIBOBJECTS)
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
cjpeg: $(COBJECTS) libjpeg.lib
|
|
|
|
$(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.lib $(LDLIBS)
|
|
|
|
|
|
|
|
djpeg: $(DOBJECTS) libjpeg.lib
|
|
|
|
$(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.lib $(LDLIBS)
|
|
|
|
|
1995-08-01 20:00:00 -04:00
|
|
|
jpegtran: $(TROBJECTS) libjpeg.lib
|
|
|
|
$(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.lib $(LDLIBS)
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
rdjpgcom: rdjpgcom.o
|
|
|
|
$(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
|
|
|
|
|
|
|
|
wrjpgcom: wrjpgcom.o
|
|
|
|
$(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
|
|
|
|
|
|
|
|
jconfig.h: jconfig.doc
|
|
|
|
echo You must prepare a system-dependent jconfig.h file.
|
|
|
|
echo Please read the installation directions in install.doc.
|
1992-12-09 19:00:00 -05:00
|
|
|
exit 1
|
|
|
|
|
1991-12-12 19:00:00 -05:00
|
|
|
clean:
|
1995-08-01 20:00:00 -04:00
|
|
|
-$(RM) *.o cjpeg djpeg jpegtran libjpeg.lib rdjpgcom wrjpgcom
|
|
|
|
-$(RM) core testout*.*
|
1991-12-12 19:00:00 -05:00
|
|
|
|
1995-08-01 20:00:00 -04:00
|
|
|
test: cjpeg djpeg jpegtran
|
|
|
|
-$(RM) testout*.*
|
1994-09-23 20:00:00 -04:00
|
|
|
djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
|
1998-03-26 19:00:00 -05:00
|
|
|
djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
|
1994-09-23 20:00:00 -04:00
|
|
|
cjpeg -dct int -outfile testout.jpg testimg.ppm
|
1995-08-01 20:00:00 -04:00
|
|
|
djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
|
|
|
|
cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
|
|
|
|
jpegtran -outfile testoutt.jpg testprog.jpg
|
1991-12-12 19:00:00 -05:00
|
|
|
cmp testimg.ppm testout.ppm
|
1998-03-26 19:00:00 -05:00
|
|
|
cmp testimg.bmp testout.bmp
|
1991-12-12 19:00:00 -05:00
|
|
|
cmp testimg.jpg testout.jpg
|
1995-08-01 20:00:00 -04:00
|
|
|
cmp testimg.ppm testoutp.ppm
|
|
|
|
cmp testimgp.jpg testoutp.jpg
|
|
|
|
cmp testorig.jpg testoutt.jpg
|
|
|
|
|
|
|
|
|
|
|
|
jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
|
|
|
jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
|
|
|
|
jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|
|
|
jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|
|
|
jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
|
|
|
jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
|
|
|
|
jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
|
|
|
|
jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
1996-02-06 19:00:00 -05:00
|
|
|
jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
1995-08-01 20:00:00 -04:00
|
|
|
cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
|
|
|
djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
1998-03-26 19:00:00 -05:00
|
|
|
jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
|
|
|
|
rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
|
|
|
|
wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
|
1995-08-01 20:00:00 -04:00
|
|
|
cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
1998-03-26 19:00:00 -05:00
|
|
|
transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
|
1995-08-01 20:00:00 -04:00
|
|
|
rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|