Home | History | Annotate | Download | only in jpeg
      1 $! Makefile for Independent JPEG Group's software
      2 $!
      3 $! This is a command procedure for Digital VMS systems that do not have MMS.
      4 $! It builds the JPEG software by brute force, recompiling everything whether
      5 $! or not it is necessary.  It then runs the basic self-test.
      6 $! Thanks to Rick Dyson (dyson (a] iowasp.physics.uiowa.edu)
      7 $! and Tim Bell (tbell (a] netcom.com) for their help.
      8 $!
      9 $! Read installation instructions before running this!!
     10 $!
     11 $ If F$Mode () .eqs. "INTERACTIVE"
     12 $   Then
     13 $       VERIFY = F$Verify (0)
     14 $   Else
     15 $       VERIFY = F$Verify (1)
     16 $ EndIf
     17 $ On Control_Y Then GoTo End
     18 $ On Error     Then GoTo End
     19 $
     20 $ If F$GetSyi ("HW_MODEL") .gt. 1023 
     21 $   Then
     22 $       OPT = ""
     23 $   Else
     24 $       OPT = ",Sys$Disk:[]makvms.opt/Option"
     25 $ EndIf
     26 $ 
     27 $ DoCompile := CC /NoDebug /Optimize /NoList
     28 $!
     29 $ DoCompile jcapimin.c
     30 $ DoCompile jcapistd.c
     31 $ DoCompile jctrans.c
     32 $ DoCompile jcparam.c
     33 $ DoCompile jdatadst.c
     34 $ DoCompile jcinit.c
     35 $ DoCompile jcmaster.c
     36 $ DoCompile jcmarker.c
     37 $ DoCompile jcmainct.c
     38 $ DoCompile jcprepct.c
     39 $ DoCompile jccoefct.c
     40 $ DoCompile jccolor.c
     41 $ DoCompile jcsample.c
     42 $ DoCompile jchuff.c
     43 $ DoCompile jcphuff.c
     44 $ DoCompile jcdctmgr.c
     45 $ DoCompile jfdctfst.c
     46 $ DoCompile jfdctflt.c
     47 $ DoCompile jfdctint.c
     48 $ DoCompile jdapimin.c
     49 $ DoCompile jdapistd.c
     50 $ DoCompile jdtrans.c
     51 $ DoCompile jdatasrc.c
     52 $ DoCompile jdmaster.c
     53 $ DoCompile jdinput.c
     54 $ DoCompile jdmarker.c
     55 $ DoCompile jdhuff.c
     56 $ DoCompile jdphuff.c
     57 $ DoCompile jdmainct.c
     58 $ DoCompile jdcoefct.c
     59 $ DoCompile jdpostct.c
     60 $ DoCompile jddctmgr.c
     61 $ DoCompile jidctfst.c
     62 $ DoCompile jidctflt.c
     63 $ DoCompile jidctint.c
     64 $ DoCompile jidctred.c
     65 $ DoCompile jdsample.c
     66 $ DoCompile jdcolor.c
     67 $ DoCompile jquant1.c
     68 $ DoCompile jquant2.c
     69 $ DoCompile jdmerge.c
     70 $ DoCompile jcomapi.c
     71 $ DoCompile jutils.c
     72 $ DoCompile jerror.c
     73 $ DoCompile jmemmgr.c
     74 $ DoCompile jmemnobs.c
     75 $!
     76 $ Library /Create libjpeg.olb  jcapimin.obj,jcapistd.obj,jctrans.obj, -
     77           jcparam.obj,jdatadst.obj,jcinit.obj,jcmaster.obj,jcmarker.obj, -
     78           jcmainct.obj,jcprepct.obj,jccoefct.obj,jccolor.obj,jcsample.obj, -
     79           jchuff.obj,jcphuff.obj,jcdctmgr.obj,jfdctfst.obj,jfdctflt.obj, -
     80           jfdctint.obj,jdapimin.obj,jdapistd.obj,jdtrans.obj,jdatasrc.obj, -
     81           jdmaster.obj,jdinput.obj,jdmarker.obj,jdhuff.obj,jdphuff.obj, -
     82           jdmainct.obj,jdcoefct.obj,jdpostct.obj,jddctmgr.obj,jidctfst.obj, -
     83           jidctflt.obj,jidctint.obj,jidctred.obj,jdsample.obj,jdcolor.obj, -
     84           jquant1.obj,jquant2.obj,jdmerge.obj,jcomapi.obj,jutils.obj, -
     85           jerror.obj,jmemmgr.obj,jmemnobs.obj
     86 $!
     87 $ DoCompile cjpeg.c
     88 $ DoCompile rdppm.c
     89 $ DoCompile rdgif.c
     90 $ DoCompile rdtarga.c
     91 $ DoCompile rdrle.c
     92 $ DoCompile rdbmp.c
     93 $ DoCompile rdswitch.c
     94 $ DoCompile cdjpeg.c
     95 $!
     96 $ Link /NoMap /Executable = cjpeg.exe  cjpeg.obj,rdppm.obj,rdgif.obj, -
     97           rdtarga.obj,rdrle.obj,rdbmp.obj,rdswitch.obj,cdjpeg.obj,libjpeg.olb/Library'OPT'
     98 $!
     99 $ DoCompile djpeg.c
    100 $ DoCompile wrppm.c
    101 $ DoCompile wrgif.c
    102 $ DoCompile wrtarga.c
    103 $ DoCompile wrrle.c
    104 $ DoCompile wrbmp.c
    105 $ DoCompile rdcolmap.c
    106 $ DoCompile cdjpeg.c
    107 $!
    108 $ Link /NoMap /Executable = djpeg.exe  djpeg.obj,wrppm.obj,wrgif.obj, -
    109           wrtarga.obj,wrrle.obj,wrbmp.obj,rdcolmap.obj,cdjpeg.obj,libjpeg.olb/Library'OPT'
    110 $!
    111 $ DoCompile jpegtran.c
    112 $ DoCompile rdswitch.c
    113 $ DoCompile cdjpeg.c
    114 $ DoCompile transupp.c
    115 $!
    116 $ Link /NoMap /Executable = jpegtran.exe  jpegtran.obj,rdswitch.obj, -
    117           cdjpeg.obj,transupp.obj,libjpeg.olb/Library'OPT'
    118 $!
    119 $ DoCompile rdjpgcom.c
    120 $ Link /NoMap /Executable = rdjpgcom.exe  rdjpgcom.obj'OPT'
    121 $!
    122 $ DoCompile wrjpgcom.c
    123 $ Link /NoMap /Executable = wrjpgcom.exe  wrjpgcom.obj'OPT'
    124 $!
    125 $! Run the self-test
    126 $!
    127 $ mcr sys$disk:[]djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
    128 $ mcr sys$disk:[]djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
    129 $ mcr sys$disk:[]cjpeg -dct int      -outfile testout.jpg testimg.ppm
    130 $ mcr sys$disk:[]djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
    131 $ mcr sys$disk:[]cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
    132 $ mcr sys$disk:[]jpegtran -outfile testoutt.jpg testprog.jpg
    133 $ Backup /Compare/Log testimg.ppm testout.ppm
    134 $ Backup /Compare/Log testimg.bmp testout.bmp
    135 $ Backup /Compare/Log testimg.jpg testout.jpg
    136 $ Backup /Compare/Log testimg.ppm testoutp.ppm
    137 $ Backup /Compare/Log testimgp.jpg testoutp.jpg
    138 $ Backup /Compare/Log testorig.jpg testoutt.jpg
    139 $!
    140 $End:
    141 $   If Verify Then Set Verify
    142 $ Exit
    143