1$!
2$! Make ImageMagick image coders for VMS.
3$!
4$
5$ define/nolog MAGICKCORE [-.magickcore]
6$ define/nolog MAGICKWAND [-.magickwand]
7$if (f$trnlnm("X11") .eqs. "") then define/nolog X11 decw$include:
8$compile_options="/nodebug/optimize"
9$if (f$search("sys$system:decc$compiler.exe") .nes. "")
10$then     ! VAX with DEC C
11$  compile_options="/decc/nodebug/optimize/warning=(disable=rightshiftovr)"
12$else     ! VAX with VAX C
13$define/nolog lnk$library sys$library:vaxcrtl
14$define/nolog sys sys$share
15$endif
16$if (f$getsyi("HW_MODEL") .gt. 1023)
17$then     ! Alpha with DEC C
18$  define/nolog sys decc$library_include
19$  compile_options="/nodebug/optimize/prefix=all/warning=(disable=(rightshiftovr,INPTRTYPE))/name=(as_is,short)/float=ieee"
20$endif
21$
22$
23$write sys$output "Making Coders..."
24$call Make aai.c
25$call Make art.c
26$call Make avs.c
27$call Make bgr.c
28$call Make bmp.c
29$call Make braille.c
30$call Make cals.c
31$call Make caption.c
32$call Make cip.c
33$call Make clip.c
34$call Make clipboard.c
35$call Make cmyk.c
36$call Make cut.c
37$call Make dcm.c
38$call Make dds.c
39$call Make debug.c
40$call Make dib.c
41$call Make dng.c
42$call Make dps.c
43$call Make dpx.c
44$call Make emf.c
45$call Make ept.c
46$call Make exr.c
47$call Make fax.c
48$call Make fd.c
49$call Make fits.c
50$call Make fpx.c
51$call Make gif.c
52$call Make gradient.c
53$call Make gray.c
54$call Make hald.c
55$call Make hdr.c
56$call Make histogram.c
57$call Make hrz.c
58$call Make html.c
59$call Make icon.c
60$call Make info.c
61$call Make inline.c
62$call Make ipl.c
63$call Make jbig.c
64$call Make jnx.c
65$call Make jpeg.c
66$call Make jp2.c
67$call Make json.c
68$call Make label.c
69$call Make mac.c
70$call Make magick.c
71$call Make map.c
72$call Make mat.c
73$call Make mask.c
74$call Make matte.c
75$call Make meta.c
76$call Make miff.c
77$call Make mpc.c
78$call Make mpeg.c
79$call Make mpr.c
80$call Make msl.c
81$call Make mono.c
82$call Make mtv.c
83$call Make mvg.c
84$call Make null.c
85$call Make otb.c
86$call Make palm.c
87$call Make pango.c
88$call Make pattern.c
89$call Make pcd.c
90$call Make pcl.c
91$call Make pcx.c
92$call Make pdb.c
93$call Make pdf.c
94$call Make pes.c
95$call Make pict.c
96$call Make pix.c
97$call Make plasma.c
98$call Make png.c
99$call Make pnm.c
100$call Make preview.c
101$call Make ps.c
102$call Make ps2.c
103$call Make ps3.c
104$call Make psd.c
105$call Make pwp.c
106$call Make raw.c
107$call Make rgb.c
108$call Make rgf.c
109$call Make rla.c
110$call Make rle.c
111$call Make screenshot.c
112$call Make sct.c
113$call Make sfw.c
114$call Make sgi.c
115$call Make sixel.c
116$call Make stegano.c
117$call Make sun.c
118$call Make svg.c
119$call Make tga.c
120$call Make thumbnail.c
121$call Make tiff.c
122$call Make tile.c
123$call Make tim.c
124$call Make ttf.c
125$call Make txt.c
126$call Make uil.c
127$call Make url.c
128$call Make uyvy.c
129$call Make vicar.c
130$call Make vid.c
131$call Make viff.c
132$call Make vips.c
133$call Make webp.c
134$call Make wbmp.c
135$call Make wmf.c
136$call Make wpg.c
137$call Make x.c
138$call Make xbm.c
139$call Make xc.c
140$call Make xcf.c
141$call Make xpm.c
142$call Make xps.c
143$call Make xtrn.c
144$call Make xwd.c
145$call Make ycbcr.c
146$call Make yuv.c
147$call Make cin.c
148$call Make magick.c
149$call Make scr.c
150$deass magickcore
151$deass magickwand
152$library/create libCoders.olb aai,art,avs,bgr,bmp,braille,clip,clipboard,cip, -
153  cmyk,cut,dcm,dds,debug,dib,dng,dps,dpx,emf,ept,exr,fax,fd,fits,fpx,gif, -
154  gradient,gray,hald,histogram,hrz,html,icon,info,inline,ipl,jbig,jpeg,jp2, -
155  jnx,json,hdr,label,cals,caption,palm,mac,magick,map,mat,matte,pango,rgf, -
156  meta,miff,mpc,mpr,msl,mpeg,mono,mtv,mvg,null,otb,pattern,pcd,pcl,pcx,pdb, -
157  pdf,pes,pict,pix,plasma,png,pnm,preview,ps,ps2,ps3,psd,pwp,raw,rgb,rla,rle, -
158  sct,sfw,sgi,stegano,sun,svg,tga,thumbnail,tiff,tile,tim,ttf,txt,uil,url, -
159  uyvy,vicar,vid,viff,wbmp,webp,wmf,wpg,x,xbm,xc,xcf,xpm,xps,xwd,ycbcr,yuv, -
160  mask,screenshot,vips,sixel,xtrn, -
161  cin,magick,scr,[-.magickcore]compress,[-.magickcore]prervicccm
162$exit
163$
164$Make: subroutine
165$!
166$! Primitive MMS hack for DCL.
167$!
168$if (p1 .eqs. "") then exit
169$source_file=f$search(f$parse(p1,".c"))
170$if (source_file .nes. "")
171$then
172$  object_file=f$parse(source_file,,,"name")+".obj"
173$  object_file=f$search( object_file )
174$  if (object_file .nes. "")
175$  then
176$    object_time=f$file_attribute(object_file,"cdt")
177$    source_time=f$file_attribute(source_file,"cdt")
178$    if (f$cvtime(object_time) .lts. f$cvtime(source_time)) then -
179$      object_file=""
180$  endif
181$  if (object_file .eqs. "")
182$  then
183$    write sys$output "Compiling ",p1
184$    cc'compile_options'/include_directory=([-],[-.magickcore],[-.jpeg],[-.png], -
185       [-.tiff],[-.ttf],[-.zlib]) 'source_file'
186$  endif
187$endif
188$exit
189$endsubroutine
190