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