kusano 7d535a
$! Makefile for Independent JPEG Group's software
kusano 7d535a
$!
kusano 7d535a
$! This is a command procedure for Digital VMS systems that do not have MMS.
kusano 7d535a
$! It builds the JPEG software by brute force, recompiling everything whether
kusano 7d535a
$! or not it is necessary.  It then runs the basic self-test.
kusano 7d535a
$! Thanks to Rick Dyson (dyson@iowasp.physics.uiowa.edu)
kusano 7d535a
$! and Tim Bell (tbell@netcom.com) for their help.
kusano 7d535a
$!
kusano 7d535a
$! Read installation instructions before running this!!
kusano 7d535a
$!
kusano 7d535a
$ If F$Mode () .eqs. "INTERACTIVE"
kusano 7d535a
$   Then
kusano 7d535a
$       VERIFY = F$Verify (0)
kusano 7d535a
$   Else
kusano 7d535a
$       VERIFY = F$Verify (1)
kusano 7d535a
$ EndIf
kusano 7d535a
$ On Control_Y Then GoTo End
kusano 7d535a
$ On Error     Then GoTo End
kusano 7d535a
$
kusano 7d535a
$ If F$GetSyi ("HW_MODEL") .gt. 1023 
kusano 7d535a
$   Then
kusano 7d535a
$       OPT = ""
kusano 7d535a
$   Else
kusano 7d535a
$       OPT = ",Sys$Disk:[]makvms.opt/Option"
kusano 7d535a
$ EndIf
kusano 7d535a
$ 
kusano 7d535a
$ DoCompile := CC /NoDebug /Optimize /NoList
kusano 7d535a
$!
kusano 7d535a
$ DoCompile jaricom.c
kusano 7d535a
$ DoCompile jcapimin.c
kusano 7d535a
$ DoCompile jcapistd.c
kusano 7d535a
$ DoCompile jcarith.c
kusano 7d535a
$ DoCompile jctrans.c
kusano 7d535a
$ DoCompile jcparam.c
kusano 7d535a
$ DoCompile jdatadst.c
kusano 7d535a
$ DoCompile jcinit.c
kusano 7d535a
$ DoCompile jcmaster.c
kusano 7d535a
$ DoCompile jcmarker.c
kusano 7d535a
$ DoCompile jcmainct.c
kusano 7d535a
$ DoCompile jcprepct.c
kusano 7d535a
$ DoCompile jccoefct.c
kusano 7d535a
$ DoCompile jccolor.c
kusano 7d535a
$ DoCompile jcsample.c
kusano 7d535a
$ DoCompile jchuff.c
kusano 7d535a
$ DoCompile jcdctmgr.c
kusano 7d535a
$ DoCompile jfdctfst.c
kusano 7d535a
$ DoCompile jfdctflt.c
kusano 7d535a
$ DoCompile jfdctint.c
kusano 7d535a
$ DoCompile jdapimin.c
kusano 7d535a
$ DoCompile jdapistd.c
kusano 7d535a
$ DoCompile jdarith.c
kusano 7d535a
$ DoCompile jdtrans.c
kusano 7d535a
$ DoCompile jdatasrc.c
kusano 7d535a
$ DoCompile jdmaster.c
kusano 7d535a
$ DoCompile jdinput.c
kusano 7d535a
$ DoCompile jdmarker.c
kusano 7d535a
$ DoCompile jdhuff.c
kusano 7d535a
$ DoCompile jdmainct.c
kusano 7d535a
$ DoCompile jdcoefct.c
kusano 7d535a
$ DoCompile jdpostct.c
kusano 7d535a
$ DoCompile jddctmgr.c
kusano 7d535a
$ DoCompile jidctfst.c
kusano 7d535a
$ DoCompile jidctflt.c
kusano 7d535a
$ DoCompile jidctint.c
kusano 7d535a
$ DoCompile jdsample.c
kusano 7d535a
$ DoCompile jdcolor.c
kusano 7d535a
$ DoCompile jquant1.c
kusano 7d535a
$ DoCompile jquant2.c
kusano 7d535a
$ DoCompile jdmerge.c
kusano 7d535a
$ DoCompile jcomapi.c
kusano 7d535a
$ DoCompile jutils.c
kusano 7d535a
$ DoCompile jerror.c
kusano 7d535a
$ DoCompile jmemmgr.c
kusano 7d535a
$ DoCompile jmemnobs.c
kusano 7d535a
$!
kusano 7d535a
$ Library /Create libjpeg.olb  jaricom.obj,jcapimin.obj,jcapistd.obj, -
kusano 7d535a
          jcarith.obj,jctrans.obj,jcparam.obj,jdatadst.obj,jcinit.obj, -
kusano 7d535a
          jcmaster.obj,jcmarker.obj,jcmainct.obj,jcprepct.obj,jccoefct.obj, -
kusano 7d535a
          jccolor.obj,jcsample.obj,jchuff.obj,jcdctmgr.obj,jfdctfst.obj, -
kusano 7d535a
          jfdctflt.obj,jfdctint.obj,jdapimin.obj,jdapistd.obj,jdarith.obj, -
kusano 7d535a
          jdtrans.obj,jdatasrc.obj,jdmaster.obj,jdinput.obj,jdmarker.obj, -
kusano 7d535a
          jdhuff.obj,jdmainct.obj,jdcoefct.obj,jdpostct.obj,jddctmgr.obj, -
kusano 7d535a
          jidctfst.obj,jidctflt.obj,jidctint.obj,jdsample.obj,jdcolor.obj, -
kusano 7d535a
          jquant1.obj,jquant2.obj,jdmerge.obj,jcomapi.obj,jutils.obj, -
kusano 7d535a
          jerror.obj,jmemmgr.obj,jmemnobs.obj
kusano 7d535a
$!
kusano 7d535a
$ DoCompile cjpeg.c
kusano 7d535a
$ DoCompile rdppm.c
kusano 7d535a
$ DoCompile rdgif.c
kusano 7d535a
$ DoCompile rdtarga.c
kusano 7d535a
$ DoCompile rdrle.c
kusano 7d535a
$ DoCompile rdbmp.c
kusano 7d535a
$ DoCompile rdswitch.c
kusano 7d535a
$ DoCompile cdjpeg.c
kusano 7d535a
$!
kusano 7d535a
$ Link /NoMap /Executable = cjpeg.exe  cjpeg.obj,rdppm.obj,rdgif.obj, -
kusano 7d535a
          rdtarga.obj,rdrle.obj,rdbmp.obj,rdswitch.obj,cdjpeg.obj,libjpeg.olb/Library'OPT'
kusano 7d535a
$!
kusano 7d535a
$ DoCompile djpeg.c
kusano 7d535a
$ DoCompile wrppm.c
kusano 7d535a
$ DoCompile wrgif.c
kusano 7d535a
$ DoCompile wrtarga.c
kusano 7d535a
$ DoCompile wrrle.c
kusano 7d535a
$ DoCompile wrbmp.c
kusano 7d535a
$ DoCompile rdcolmap.c
kusano 7d535a
$ DoCompile cdjpeg.c
kusano 7d535a
$!
kusano 7d535a
$ Link /NoMap /Executable = djpeg.exe  djpeg.obj,wrppm.obj,wrgif.obj, -
kusano 7d535a
          wrtarga.obj,wrrle.obj,wrbmp.obj,rdcolmap.obj,cdjpeg.obj,libjpeg.olb/Library'OPT'
kusano 7d535a
$!
kusano 7d535a
$ DoCompile jpegtran.c
kusano 7d535a
$ DoCompile rdswitch.c
kusano 7d535a
$ DoCompile cdjpeg.c
kusano 7d535a
$ DoCompile transupp.c
kusano 7d535a
$!
kusano 7d535a
$ Link /NoMap /Executable = jpegtran.exe  jpegtran.obj,rdswitch.obj, -
kusano 7d535a
          cdjpeg.obj,transupp.obj,libjpeg.olb/Library'OPT'
kusano 7d535a
$!
kusano 7d535a
$ DoCompile rdjpgcom.c
kusano 7d535a
$ Link /NoMap /Executable = rdjpgcom.exe  rdjpgcom.obj'OPT'
kusano 7d535a
$!
kusano 7d535a
$ DoCompile wrjpgcom.c
kusano 7d535a
$ Link /NoMap /Executable = wrjpgcom.exe  wrjpgcom.obj'OPT'
kusano 7d535a
$!
kusano 7d535a
$! Run the self-test
kusano 7d535a
$!
kusano 7d535a
$ mcr sys$disk:[]djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
kusano 7d535a
$ mcr sys$disk:[]djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
kusano 7d535a
$ mcr sys$disk:[]cjpeg -dct int      -outfile testout.jpg testimg.ppm
kusano 7d535a
$ mcr sys$disk:[]djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
kusano 7d535a
$ mcr sys$disk:[]cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
kusano 7d535a
$ mcr sys$disk:[]jpegtran -outfile testoutt.jpg testprog.jpg
kusano 7d535a
$ Backup /Compare/Log testimg.ppm testout.ppm
kusano 7d535a
$ Backup /Compare/Log testimg.bmp testout.bmp
kusano 7d535a
$ Backup /Compare/Log testimg.jpg testout.jpg
kusano 7d535a
$ Backup /Compare/Log testimg.ppm testoutp.ppm
kusano 7d535a
$ Backup /Compare/Log testimgp.jpg testoutp.jpg
kusano 7d535a
$ Backup /Compare/Log testorig.jpg testoutt.jpg
kusano 7d535a
$!
kusano 7d535a
$End:
kusano 7d535a
$   If Verify Then Set Verify
kusano 7d535a
$ Exit