author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 06 Jul 2010 15:10:48 +0300 | |
changeset 30 | 5dc02b23752f |
parent 0 | 1918ee327afb |
permissions | -rw-r--r-- |
0 | 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$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 |
$! |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
29 |
$ DoCompile jaricom.c |
0 | 30 |
$ DoCompile jcapimin.c |
31 |
$ DoCompile jcapistd.c |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
32 |
$ DoCompile jcarith.c |
0 | 33 |
$ DoCompile jctrans.c |
34 |
$ DoCompile jcparam.c |
|
35 |
$ DoCompile jdatadst.c |
|
36 |
$ DoCompile jcinit.c |
|
37 |
$ DoCompile jcmaster.c |
|
38 |
$ DoCompile jcmarker.c |
|
39 |
$ DoCompile jcmainct.c |
|
40 |
$ DoCompile jcprepct.c |
|
41 |
$ DoCompile jccoefct.c |
|
42 |
$ DoCompile jccolor.c |
|
43 |
$ DoCompile jcsample.c |
|
44 |
$ DoCompile jchuff.c |
|
45 |
$ DoCompile jcdctmgr.c |
|
46 |
$ DoCompile jfdctfst.c |
|
47 |
$ DoCompile jfdctflt.c |
|
48 |
$ DoCompile jfdctint.c |
|
49 |
$ DoCompile jdapimin.c |
|
50 |
$ DoCompile jdapistd.c |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
51 |
$ DoCompile jdarith.c |
0 | 52 |
$ DoCompile jdtrans.c |
53 |
$ DoCompile jdatasrc.c |
|
54 |
$ DoCompile jdmaster.c |
|
55 |
$ DoCompile jdinput.c |
|
56 |
$ DoCompile jdmarker.c |
|
57 |
$ DoCompile jdhuff.c |
|
58 |
$ DoCompile jdmainct.c |
|
59 |
$ DoCompile jdcoefct.c |
|
60 |
$ DoCompile jdpostct.c |
|
61 |
$ DoCompile jddctmgr.c |
|
62 |
$ DoCompile jidctfst.c |
|
63 |
$ DoCompile jidctflt.c |
|
64 |
$ DoCompile jidctint.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 |
$! |
|
30
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
76 |
$ Library /Create libjpeg.olb jaricom.obj,jcapimin.obj,jcapistd.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
77 |
jcarith.obj,jctrans.obj,jcparam.obj,jdatadst.obj,jcinit.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
78 |
jcmaster.obj,jcmarker.obj,jcmainct.obj,jcprepct.obj,jccoefct.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
79 |
jccolor.obj,jcsample.obj,jchuff.obj,jcdctmgr.obj,jfdctfst.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
80 |
jfdctflt.obj,jfdctint.obj,jdapimin.obj,jdapistd.obj,jdarith.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
81 |
jdtrans.obj,jdatasrc.obj,jdmaster.obj,jdinput.obj,jdmarker.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
82 |
jdhuff.obj,jdmainct.obj,jdcoefct.obj,jdpostct.obj,jddctmgr.obj, - |
5dc02b23752f
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
83 |
jidctfst.obj,jidctflt.obj,jidctint.obj,jdsample.obj,jdcolor.obj, - |
0 | 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 |