1# Makefile for Independent JPEG Group's software 2 3# This makefile is suitable for Visual C++/nmake on Win32. 4# It has been tested with Visual C++ 5, but may work with earlier 5# versions. 6 7# Read installation instructions before saying "make" !! 8 9# The name of your C compiler: 10CC= cl -nologo 11 12# You may need to adjust these cc options: 13CFLAGS= -Od -MD 14# -Od suppresses optimization (VC optimizer is buggy) 15# -MD makes it use the MT-safe DLL version of the RTL 16# Generally, we recommend defining any configuration symbols in jconfig.h, 17# NOT via -D switches here. 18 19# Link-time cc options: 20LDFLAGS= -nologo 21 22# Put here the object file name for the correct system-dependent memory 23# manager file. For DOS, we recommend jmemdos.c and jmemdosa.asm. 24# If you change this, you'll need to modify the linker response file 25# name list, below, by hand! 26SYSDEPMEM= jmemnobs.obj 27 28# End of configurable options. 29 30 31# source files: JPEG library proper 32LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \ 33 jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \ 34 jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \ 35 jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \ 36 jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \ 37 jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \ 38 jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c 39# source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom 40APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \ 41 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \ 42 wrjpgcom.c 43SOURCES= $(LIBSOURCES) $(APPSOURCES) 44# files included by source files 45INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \ 46 jpeglib.h jversion.h cdjpeg.h cderror.h 47# documentation, test, and support files 48DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \ 49 example.c libjpeg.doc structure.doc coderules.doc filelist.doc \ 50 change.log 51MKFILES= configure makefile.auto makefile.ansi makefile.unix makefile.manx \ 52 makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \ 53 makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt 54CONFIGFILES= jconfig.auto jconfig.manx jconfig.sas jconfig.st jconfig.bcc \ 55 jconfig.mc6 jconfig.dj jconfig.vms 56OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm 57TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg 58DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \ 59 $(OTHERFILES) $(TESTFILES) 60# library object files common to compression and decompression 61COMOBJECTS= jcomapi.obj jutils.obj cdjpeg.obj jerror.obj jmemmgr.obj rdswitch.obj $(SYSDEPMEM) 62# compression library object files 63CLIBOBJECTS= jcapimin.obj jcapistd.obj jcparam.obj jdatadst.obj jcmaster.obj jcmarker.obj \ 64 jcmainct.obj jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj \ 65 jchuff.obj jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj jcinit.obj jcphuff.obj 66# decompression library object files 67DLIBOBJECTS= jdapimin.obj jdapistd.obj jdatasrc.obj jdmaster.obj jdmarker.obj jdmainct.obj \ 68 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \ 69 jidctint.obj jidctred.obj jdhuff.obj jdsample.obj jdcolor.obj \ 70 jquant1.obj jquant2.obj jdmerge.obj jdinput.obj jdphuff.obj 71# These objectfiles are included in libjpeg.lib 72LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) 73# object files for cjpeg and djpeg applications (excluding library files) 74COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj 75DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \ 76 rdcolmap.obj 77 78all: libjpeg.lib cjpeg.exe djpeg.exe rdjpgcom.exe wrjpgcom.exe 79 80libjpeg.lib: $(LIBOBJECTS) 81 -cmd /C del libjpeg.lib 82 lib -out:libjpeg.lib $(LIBOBJECTS) 83 84cjpeg.exe: $(COBJECTS) libjpeg.lib 85 $(CC) $(LDFLAGS) -Fecjpeg.exe $(COBJECTS) libjpeg.lib 86 87djpeg.exe: $(DOBJECTS) libjpeg.lib 88 $(CC) $(LDFLAGS) -Fedjpeg.exe $(DOBJECTS) libjpeg.lib 89 90rdjpgcom.exe: rdjpgcom.c 91 $(CC) -O rdjpgcom.c 92 93# wrjpgcom needs large model so it can malloc a 64K chunk 94wrjpgcom.exe: wrjpgcom.c 95 $(CC) -O wrjpgcom.c 96 97.c.obj: 98 $(CC) $(CFLAGS) -c $< 99 100jconfig.h: jconfig.doc 101 echo You must prepare a system-dependent jconfig.h file. 102 echo Please read the installation directions in install.doc. 103 exit 1 104 105clean: 106 -cmd /C del *.obj 107 -cmd /C del libjpeg.lib 108 -cmd /C del cjpeg.exe 109 -cmd /C del djpeg.exe 110 -cmd /C del rdjpgcom.exe 111 -cmd /C del wrjpgcom.exe 112 -cmd /C del testout.* 113 114test: cjpeg.exe djpeg.exe 115 -del testout.* 116 djpeg -dct int -ppm -outfile testout.ppm testorig.jpg 117 cjpeg -dct int -outfile testout.jpg testimg.ppm 118 fc /b testimg.ppm testout.ppm 119 fc /b testimg.jpg testout.jpg 120 121 122jcapi.obj : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 123jccoefct.obj : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 124jccolor.obj : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 125jcdctmgr.obj : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 126jchuff.obj : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 127jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 128jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 129jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 130jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 131jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 132jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 133jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 134jdapi.obj : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 135jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 136jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 137jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 138jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 139jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 140jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 141jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 142jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 143jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 144jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 145jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 146jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h 147jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 148jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 149jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 150jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 151jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 152jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 153jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 154jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 155jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 156jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 157jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 158jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 159jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 160jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 161jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 162jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 163cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 164djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 165rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 166rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 167wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 168rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 169wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 170rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 171wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 172rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 173wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 174rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 175wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 176rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h 177wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h 178jmemdosa.obj : jmemdosa.asm 179 tasm /mx jmemdosa.asm 180