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@iowasp.physics.uiowa.edu)
7$! and Tim Bell (tbell@netcom.com) for their help.
8$!
9$! Read installation instructions before running this!!
10$!
11$ If F$GetSyi ("HW_MODEL") .gt. 1023
12$   Then
13$       OPT = ""
14$   Else
15$       OPT = ",Sys$Disk:[]makvms.opt/Option"
16$ EndIf
17$
18$ DoCompile := CC /NoDebug /Optimize
19$!
20$ DoCompile jcapi.c
21$ DoCompile jcparam.c
22$ DoCompile jdatadst.c
23$ DoCompile jcmaster.c
24$ DoCompile jcmarker.c
25$ DoCompile jcmainct.c
26$ DoCompile jcprepct.c
27$ DoCompile jccoefct.c
28$ DoCompile jccolor.c
29$ DoCompile jcsample.c
30$ DoCompile jchuff.c
31$ DoCompile jcdctmgr.c
32$ DoCompile jfdctfst.c
33$ DoCompile jfdctflt.c
34$ DoCompile jfdctint.c
35$ DoCompile jdapi.c
36$ DoCompile jdatasrc.c
37$ DoCompile jdmaster.c
38$ DoCompile jdmarker.c
39$ DoCompile jdmainct.c
40$ DoCompile jdcoefct.c
41$ DoCompile jdpostct.c
42$ DoCompile jddctmgr.c
43$ DoCompile jidctfst.c
44$ DoCompile jidctflt.c
45$ DoCompile jidctint.c
46$ DoCompile jidctred.c
47$ DoCompile jdhuff.c
48$ DoCompile jdsample.c
49$ DoCompile jdcolor.c
50$ DoCompile jquant1.c
51$ DoCompile jquant2.c
52$ DoCompile jdmerge.c
53$ DoCompile jcomapi.c
54$ DoCompile jutils.c
55$ DoCompile jerror.c
56$ DoCompile jmemmgr.c
57$ DoCompile jmemnobs.c
58$!
59$ Library /Create libjpeg.olb  jcapi.obj,jcparam.obj,jdatadst.obj, -
60          jcmaster.obj,jcmarker.obj,jcmainct.obj,jcprepct.obj,jccoefct.obj, -
61          jccolor.obj,jcsample.obj,jchuff.obj,jcdctmgr.obj,jfdctfst.obj, -
62          jfdctflt.obj,jfdctint.obj,jdapi.obj,jdatasrc.obj,jdmaster.obj, -
63          jdmarker.obj,jdmainct.obj,jdcoefct.obj,jdpostct.obj,jddctmgr.obj, -
64          jidctfst.obj,jidctflt.obj,jidctint.obj,jidctred.obj,jdhuff.obj, -
65          jdsample.obj,jdcolor.obj,jquant1.obj,jquant2.obj,jdmerge.obj, -
66          jcomapi.obj,jutils.obj,jerror.obj,jmemmgr.obj,jmemnobs.obj
67$!
68$ DoCompile cjpeg.c
69$ DoCompile rdppm.c
70$ DoCompile rdgif.c
71$ DoCompile rdtarga.c
72$ DoCompile rdrle.c
73$ DoCompile rdbmp.c
74$!
75$ Link /Executable = cjpeg.exe  cjpeg.obj,rdppm.obj,rdgif.obj,rdtarga.obj, -
76          rdrle.obj,rdbmp.obj,libjpeg.olb/Library'OPT'
77$!
78$ DoCompile djpeg.c
79$ DoCompile wrppm.c
80$ DoCompile wrgif.c
81$ DoCompile wrtarga.c
82$ DoCompile wrrle.c
83$ DoCompile wrbmp.c
84$ DoCompile rdcolmap.c
85$!
86$ Link /Executable = djpeg.exe  djpeg.obj,wrppm.obj,wrgif.obj,wrtarga.obj, -
87          wrrle.obj,wrbmp.obj,rdcolmap.obj,libjpeg.olb/Library'OPT'
88$!
89$ DoCompile rdjpgcom.c
90$ Link /Executable = rdjpgcom.exe  rdjpgcom.obj'OPT'
91$!
92$ DoCompile wrjpgcom.c
93$ Link /Executable = wrjpgcom.exe  wrjpgcom.obj'OPT'
94$!
95$! Run the self-test
96$!
97$ mcr sys$disk:[]djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
98$ mcr sys$disk:[]djpeg -dct int -gif -outfile testout.gif testorig.jpg
99$ mcr sys$disk:[]cjpeg -dct int      -outfile testout.jpg testimg.ppm
100$ Backup /Compare/Log testimg.ppm testout.ppm
101$ Backup /Compare/Log testimg.gif testout.gif
102$ Backup /Compare/Log testimg.jpg testout.jpg
103$!
104$ Exit
105