1# Makefile for Independent JPEG Group's software 2 3# This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using 4# dos4g extender), OS/2, and Windows NT console mode. 5# Thanks to Janos Haide, jhaide@btrvtech.com. 6 7# Read installation instructions before saying "wmake" !! 8 9# Uncomment line for desired system 10SYSTEM=DOS 11#SYSTEM=OS2 12#SYSTEM=NT 13 14# The name of your C compiler: 15CC= wcl386 16 17# You may need to adjust these cc options: 18CFLAGS= -4r -ort -wx -zq -bt=$(SYSTEM) 19# Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a. 20# Generally, we recommend defining any configuration symbols in jconfig.h, 21# NOT via -D switches here. 22 23# Link-time cc options: 24!ifeq SYSTEM DOS 25LDFLAGS= -zq -l=dos4g 26!else ifeq SYSTEM OS2 27LDFLAGS= -zq -l=os2v2 28!else ifeq SYSTEM NT 29LDFLAGS= -zq -l=nt 30!endif 31 32# Put here the object file name for the correct system-dependent memory 33# manager file. jmemnobs should work fine for dos4g or OS/2 environment. 34SYSDEPMEM= jmemnobs.obj 35 36# End of configurable options. 37 38 39# source files: JPEG library proper 40LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c & 41 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c & 42 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c & 43 jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c & 44 jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c & 45 jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c & 46 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c & 47 jquant2.c jutils.c jmemmgr.c 48# memmgr back ends: compile only one of these into a working library 49SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c 50# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom 51APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c & 52 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c & 53 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c 54SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES) 55# files included by source files 56INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h & 57 jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h 58# documentation, test, and support files 59DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 & 60 wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt & 61 coderules.txt filelist.txt change.log 62MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc & 63 makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 & 64 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 & 65 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 & 66 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 & 67 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.v10 & 68 makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 & 69 makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 & 70 makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st & 71 makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas & 72 makefile.mms makefile.vms makvms.opt 73CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat & 74 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas & 75 jconfig.vms 76CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp & 77 missing ar-lib 78OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map 79TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg & 80 testimgp.jpg 81DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) & 82 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES) 83# library object files common to compression and decompression 84COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM) 85# compression library object files 86CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj & 87 jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj & 88 jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj & 89 jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj 90# decompression library object files 91DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj & 92 jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj & 93 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj & 94 jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj & 95 jdmerge.obj 96# These objectfiles are included in libjpeg.lib 97LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) 98# object files for sample applications (excluding library files) 99COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj & 100 rdswitch.obj cdjpeg.obj 101DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj & 102 rdcolmap.obj cdjpeg.obj 103TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj 104 105 106all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe 107 108libjpeg.lib: $(LIBOBJECTS) 109 - del libjpeg.lib 110 * wlib -n libjpeg.lib $(LIBOBJECTS) 111 112cjpeg.exe: $(COBJECTS) libjpeg.lib 113 $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib 114 115djpeg.exe: $(DOBJECTS) libjpeg.lib 116 $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib 117 118jpegtran.exe: $(TROBJECTS) libjpeg.lib 119 $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib 120 121rdjpgcom.exe: rdjpgcom.c 122 $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c 123 124wrjpgcom.exe: wrjpgcom.c 125 $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c 126 127.c.obj: 128 $(CC) $(CFLAGS) -c $< 129 130jconfig.h: jconfig.txt 131 echo You must prepare a system-dependent jconfig.h file. 132 echo Please read the installation directions in install.txt. 133 exit 1 134 135clean: .SYMBOLIC 136 - del *.obj 137 - del libjpeg.lib 138 - del cjpeg.exe 139 - del djpeg.exe 140 - del jpegtran.exe 141 - del rdjpgcom.exe 142 - del wrjpgcom.exe 143 - del testout*.* 144 145test: cjpeg.exe djpeg.exe jpegtran.exe .SYMBOLIC 146 - del testout*.* 147 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg 148 djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg 149 cjpeg -dct int -outfile testout.jpg testimg.ppm 150 djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg 151 cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm 152 jpegtran -outfile testoutt.jpg testprog.jpg 153!ifeq SYSTEM DOS 154 fc /b testimg.ppm testout.ppm 155 fc /b testimg.bmp testout.bmp 156 fc /b testimg.jpg testout.jpg 157 fc /b testimg.ppm testoutp.ppm 158 fc /b testimgp.jpg testoutp.jpg 159 fc /b testorig.jpg testoutt.jpg 160!else 161 echo n > n.tmp 162 comp testimg.ppm testout.ppm < n.tmp 163 comp testimg.bmp testout.bmp < n.tmp 164 comp testimg.jpg testout.jpg < n.tmp 165 comp testimg.ppm testoutp.ppm < n.tmp 166 comp testimgp.jpg testoutp.jpg < n.tmp 167 comp testorig.jpg testoutt.jpg < n.tmp 168 del n.tmp 169!endif 170 171 172jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 173jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 174jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 175jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 176jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 177jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 178jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 179jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 180jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 181jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 182jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 183jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 184jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 185jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 186jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 187jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 188jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 189jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 190jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 191jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 192jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 193jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 194jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 195jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 196jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 197jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 198jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 199jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 200jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 201jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 202jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 203jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 204jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 205jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 206jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h 207jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 208jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 209jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 210jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 211jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 212jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 213jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 214jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 215jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 216jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 217jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 218jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 219jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 220jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 221jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 222cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 223djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 224jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h 225rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h 226wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h 227cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 228rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 229rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 230transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h 231rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 232wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 233rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 234wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 235rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 236wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 237rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 238wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 239rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 240wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 241