# Makefile for Independent JPEG Group's software # This makefile is for Microsoft C for MS-DOS, version 6.x (use NMAKE). # Thanks to Alan Wright and Chris Turner of Olivetti Research Ltd. # Read SETUP instructions before saying "make" !! # compiler flags. -D gives a #define to the sources: # -O default optimisation # -W3 warning level 3 # -Za ANSI conformance, defines__STDC__ but undefines far # and near, so we DON'T use it. # -D__STDC__ pretend we have full ANSI compliance. MSC is near # enough anyway # -DMSDOS we are on an MSDOS machine # -DMEM_STATS enable memory usage statistics (optional) # -c compile, don't link (implicit in inference rules) # You might also want to add -G2 if you have an 80286, etc. CFLAGS = -c -O -W3 -D__STDC__ -DMSDOS # source files (independently compilable files) SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \ jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \ jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \ jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c \ jvirtmem.c jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c \ jwrjfif.c jwrgif.c jwrppm.c jwrrle.c jwrtarga.c # files included by source files INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c # documentation, test, and support files DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \ makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.tc \ makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \ makljpeg.cf OTHERFILES= ansi2knr.c config.c TESTFILES= testorig.jpg testimg.ppm testimg.jpg DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(INCLUDES) $(OTHERFILES) \ $(TESTFILES) # objectfiles common to cjpeg and djpeg COMOBJECTS= jutils.obj jvirtmem.obj jerror.obj # compression objectfiles CLIBOBJECTS= jcmaster.obj jcdeflts.obj jcarith.obj jccolor.obj jcexpand.obj \ jchuff.obj jcmcu.obj jcpipe.obj jcsample.obj jfwddct.obj \ jwrjfif.obj jrdgif.obj jrdppm.obj jrdrle.obj jrdtarga.obj COBJECTS= jcmain.obj $(CLIBOBJECTS) $(COMOBJECTS) # decompression objectfiles DLIBOBJECTS= jdmaster.obj jddeflts.obj jbsmooth.obj jdarith.obj jdcolor.obj \ jdhuff.obj jdmcu.obj jdpipe.obj jdsample.obj jquant1.obj \ jquant2.obj jrevdct.obj jrdjfif.obj jwrgif.obj jwrppm.obj \ jwrrle.obj jwrtarga.obj DOBJECTS= jdmain.obj $(DLIBOBJECTS) $(COMOBJECTS) # These objectfiles are included in libjpeg.lib LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) all: cjpeg.exe djpeg.exe # default rules in nmake will use cflags and compile the list below jbsmooth.obj : jbsmooth.c jinclude.h jconfig.h jpegdata.h jcarith.obj : jcarith.c jinclude.h jconfig.h jpegdata.h jccolor.obj : jccolor.c jinclude.h jconfig.h jpegdata.h jcdeflts.obj : jcdeflts.c jinclude.h jconfig.h jpegdata.h jcexpand.obj : jcexpand.c jinclude.h jconfig.h jpegdata.h jchuff.obj : jchuff.c jinclude.h jconfig.h jpegdata.h jcmain.obj : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpegdata.h jcmcu.obj : jcmcu.c jinclude.h jconfig.h jpegdata.h jcpipe.obj : jcpipe.c jinclude.h jconfig.h jpegdata.h jcsample.obj : jcsample.c jinclude.h jconfig.h jpegdata.h jdarith.obj : jdarith.c jinclude.h jconfig.h jpegdata.h jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpegdata.h jddeflts.obj : jddeflts.c jinclude.h jconfig.h jpegdata.h jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpegdata.h jdmain.obj : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpegdata.h jdmcu.obj : jdmcu.c jinclude.h jconfig.h jpegdata.h jdpipe.obj : jdpipe.c jinclude.h jconfig.h jpegdata.h jdsample.obj : jdsample.c jinclude.h jconfig.h jpegdata.h jerror.obj : jerror.c jinclude.h jconfig.h jpegdata.h jquant1.obj : jquant1.c jinclude.h jconfig.h jpegdata.h jquant2.obj : jquant2.c jinclude.h jconfig.h jpegdata.h jfwddct.obj : jfwddct.c jinclude.h jconfig.h jpegdata.h jrevdct.obj : jrevdct.c jinclude.h jconfig.h jpegdata.h jutils.obj : jutils.c jinclude.h jconfig.h jpegdata.h jvirtmem.obj : jvirtmem.c jinclude.h jconfig.h jpegdata.h jrdjfif.obj : jrdjfif.c jinclude.h jconfig.h jpegdata.h jrdgif.obj : jrdgif.c jinclude.h jconfig.h jpegdata.h jrdppm.obj : jrdppm.c jinclude.h jconfig.h jpegdata.h jrdrle.obj : jrdrle.c jinclude.h jconfig.h jpegdata.h jrdtarga.obj : jrdtarga.c jinclude.h jconfig.h jpegdata.h jwrjfif.obj : jwrjfif.c jinclude.h jconfig.h jpegdata.h jwrgif.obj : jwrgif.c jinclude.h jconfig.h jpegdata.h jwrppm.obj : jwrppm.c jinclude.h jconfig.h jpegdata.h jwrrle.obj : jwrrle.c jinclude.h jconfig.h jpegdata.h jwrtarga.obj : jwrtarga.c jinclude.h jconfig.h jpegdata.h # use linker response files because file list > 128 chars cjpeg.exe: $(COBJECTS) link /STACK:8192 @makcjpeg.lnk djpeg.exe: $(DOBJECTS) link /STACK:8192 @makdjpeg.lnk