$! 06-FEB-2018 MGD modify to build under MMS $! *clumsy* but there seems to be too many variation in MMS $! $ say = "write sys$output" $ make = "" $ if f$type(mmk) .nes. "" $ then make = "mmk" $ else $ if f$search("sys$system:mms.exe") .nes. "" then make = "mms" $ endif $! $ if make .nes. "" $ then $ say "make libraries with ''make'." $ say "" $ else $ say "MMS or MMK not found!!!" $ exit 44 $ endif $ $! make = make + "/ignore=warning" $ macro := (CFLAGS="""/DEFINE=(__VMS,__VMS_VER=70000000,__CRTL_VER=70000000)""" $ make = make + "/macro=" + macro + ")" $ $!'f$verify(0) $ say "" $ say "**************************************" $ say "* IGNORE the occasional %MMS-F-ABORT *" $ say "* as long as it EVENTUALLY builds *" $ say "**************************************" $ say "" $ wait 00:00:10 $! $ set noon $ set def [.ZLIB-1_1_3] $ set process /parse=traditional $ make libz.olb $ if $severity .gt. 1 $ then $ set process /parse=extended $ make libz.olb $ endif $ set def [-.PNG-1_0_3] $ set process /parse=traditional $ make libpng.olb $ if $severity .gt. 1 $ then $ set process /parse=extended $ make libpng.olb $ endif $ set def [-.JPEG-6B] $ set process /parse=traditional $ make libjpeg.olb $ if $severity .gt. 1 $ then $ set process /parse=extended $ make libjpeg.olb $ endif $ set def [-.GD-1_8_4] $ set process /parse=traditional $ make libgd.olb $ if $severity .gt. 1 $ then $ set process /parse=extended $ make libgd.olb $ endif $ set def [-.GDCHART0_10_1DEV] $ set process /parse=traditional $ make libgdchart.olb $ if $severity .gt. 1 $ then $ set process /parse=extended $ make libgdchart.olb $ endif $ $ set on $ set def [-] $ $ _prc = f$environment ("procedure") $ _dev = f$parse(_prc,,,"device") $ _dir = f$parse(_prc,,,"directory") $ _dir = f$extract(0, f$length(_dir) - 1, _dir) $ $ define libz '_dev''_dir'.zlib-1_1_3] $ define libpng '_dev''_dir'.png-1_0_3] $ define libgd '_dev''_dir'.gd-1_8_4] $ define libjpeg '_dev''_dir'.jpeg-6b] $ define libgdchart '_dev''_dir'.gdchart0_10_1dev] $ $ exit