1# Makefile for Independent JPEG Group's software 2 3# This makefile is for use with MMS on Digital VMS systems. 4# Thanks to Rick Dyson (dyson@iowasp.physics.uiowa.edu) 5# and Tim Bell (tbell@netcom.com) for their help. 6 7# Read installation instructions before saying "MMS" !! 8 9# You may need to adjust these cc options: 10CFLAGS= $(CFLAGS) /NoDebug /Optimize 11# Generally, we recommend defining any configuration symbols in jconfig.h, 12# NOT via /Define switches here. 13.ifdef ALPHA 14OPT= 15.else 16OPT= ,Sys$Disk:[]MAKVMS.OPT/Option 17.endif 18 19# Put here the object file name for the correct system-dependent memory 20# manager file. For Unix this is usually jmemnobs.o, but you may want 21# to use jmemansi.o or jmemname.o if you have limited swap space. 22SYSDEPMEM= jmemnobs.obj 23 24# End of configurable options. 25 26 27# source files: JPEG library proper 28LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \ 29 jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \ 30 jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \ 31 jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \ 32 jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \ 33 jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \ 34 jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c 35# source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom 36APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \ 37 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \ 38 wrjpgcom.c 39SOURCES= $(LIBSOURCES) $(APPSOURCES) 40# files included by source files 41INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \ 42 jpeglib.h jversion.h cdjpeg.h cderror.h 43# documentation, test, and support files 44DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \ 45 example.c libjpeg.doc structure.doc coderules.doc filelist.doc \ 46 change.log 47MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.manx \ 48 makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \ 49 makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt 50CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \ 51 jconfig.mc6 jconfig.dj jconfig.vms 52OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm 53TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg 54DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \ 55 $(OTHERFILES) $(TESTFILES) 56# library object files common to compression and decompression 57COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM) 58# compression library object files 59CLIBOBJECTS= jcapi.obj jcparam.obj jdatadst.obj jcmaster.obj jcmarker.obj \ 60 jcmainct.obj jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj \ 61 jchuff.obj jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj 62# decompression library object files 63DLIBOBJECTS= jdapi.obj jdatasrc.obj jdmaster.obj jdmarker.obj jdmainct.obj \ 64 jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \ 65 jidctint.obj jidctred.obj jdhuff.obj jdsample.obj jdcolor.obj \ 66 jquant1.obj jquant2.obj jdmerge.obj 67# These objectfiles are included in libjpeg.olb 68LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) 69# object files for cjpeg and djpeg applications (excluding library files) 70COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj 71DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \ 72 rdcolmap.obj 73# objectfile lists with commas --- what a crock 74COBJLIST= cjpeg.obj,rdppm.obj,rdgif.obj,rdtarga.obj,rdrle.obj,rdbmp.obj 75DOBJLIST= djpeg.obj,wrppm.obj,wrgif.obj,wrtarga.obj,wrrle.obj,wrbmp.obj,\ 76 rdcolmap.obj 77LIBOBJLIST= jcapi.obj,jcparam.obj,jdatadst.obj,jcmaster.obj,jcmarker.obj,\ 78 jcmainct.obj,jcprepct.obj,jccoefct.obj,jccolor.obj,jcsample.obj,\ 79 jchuff.obj,jcdctmgr.obj,jfdctfst.obj,jfdctflt.obj,jfdctint.obj,\ 80 jdapi.obj,jdatasrc.obj,jdmaster.obj,jdmarker.obj,jdmainct.obj,\ 81 jdcoefct.obj,jdpostct.obj,jddctmgr.obj,jidctfst.obj,jidctflt.obj,\ 82 jidctint.obj,jidctred.obj,jdhuff.obj,jdsample.obj,jdcolor.obj,\ 83 jquant1.obj,jquant2.obj,jdmerge.obj,jcomapi.obj,jutils.obj,\ 84 jerror.obj,jmemmgr.obj,$(SYSDEPMEM) 85 86 87.first 88 @- Define /NoLog Sys Sys$Library 89 90ALL : libjpeg.olb cjpeg.exe djpeg.exe rdjpgcom.exe wrjpgcom.exe 91 @ Continue 92 93libjpeg.olb : $(LIBOBJECTS) 94 Library /Create libjpeg.olb $(LIBOBJLIST) 95 96cjpeg.exe : $(COBJECTS) libjpeg.olb 97 $(LINK) $(LFLAGS) /Executable = cjpeg.exe $(COBJLIST),libjpeg.olb/Library$(OPT) 98 99djpeg.exe : $(DOBJECTS) libjpeg.olb 100 $(LINK) $(LFLAGS) /Executable = djpeg.exe $(DOBJLIST),libjpeg.olb/Library$(OPT) 101 102rdjpgcom.exe : rdjpgcom.obj 103 $(LINK) $(LFLAGS) /Executable = rdjpgcom.exe rdjpgcom.obj$(OPT) 104 105wrjpgcom.exe : wrjpgcom.obj 106 $(LINK) $(LFLAGS) /Executable = wrjpgcom.exe wrjpgcom.obj$(OPT) 107 108jconfig.h : jconfig.vms 109 @- Copy jconfig.vms jconfig.h 110 111clean : 112 @- Set Protection = Owner:RWED *.*;-1 113 @- Set Protection = Owner:RWED *.OBJ 114 - Purge /NoLog /NoConfirm *.* 115 - Delete /NoLog /NoConfirm *.OBJ; 116 117test : cjpeg.exe djpeg.exe 118 mcr sys$disk:[]djpeg -dct int -ppm -outfile testout.ppm testorig.jpg 119 mcr sys$disk:[]djpeg -dct int -gif -outfile testout.gif testorig.jpg 120 mcr sys$disk:[]cjpeg -dct int -outfile testout.jpg testimg.ppm 121 - Backup /Compare/Log testimg.ppm testout.ppm 122 - Backup /Compare/Log testimg.gif testout.gif 123 - Backup /Compare/Log testimg.jpg testout.jpg 124 125 126jcapi.obj : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 127jccoefct.obj : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 128jccolor.obj : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 129jcdctmgr.obj : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 130jchuff.obj : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 131jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 132jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 133jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 134jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 135jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 136jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 137jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 138jdapi.obj : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 139jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 140jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 141jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 142jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 143jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 144jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 145jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 146jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 147jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 148jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 149jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 150jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h 151jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 152jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 153jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 154jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 155jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 156jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 157jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 158jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 159jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 160jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 161jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 162jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 163jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 164jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 165jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 166jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 167cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 168djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 169rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 170rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 171wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 172rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 173wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 174rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 175wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 176rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 177wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 178rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 179wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 180rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h 181wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h 182