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