1 $!------------------------------------------------------------------------------
2 $! make Contrib programs of libpng under OpenVMS
5 $! Look for the compiler used
7 $ zlibsrc = "[---.zlib]"
8 $ ccopt="/include=(''zlibsrc',[--])"
9 $ if f$getsyi("HW_MODEL").ge.1024
11 $ ccopt = "/prefix=all"+ccopt
13 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
15 $ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs.""
17 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
18 $ if f$search("SYS$SYSTEM:VAXC.EXE").eqs.""
26 $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
27 $ ccopt = "/decc/prefix=all"+ccopt
31 $ open/write lopt lib.opt
32 $ write lopt "[--]libpng.olb/lib"
33 $ write lopt "''zlibsrc'libz.olb/lib"
35 $ open/write xopt x11.opt
36 $ write xopt "sys$library:decw$xlibshr.exe/share"
38 $ write sys$output "Compiling PNG contrib programs ..."
39 $ write sys$output "Building pnm2png..."
40 $ CALL MAKE pnm2png.OBJ "cc ''CCOPT' pnm2png" -
42 $ call make pnm2png.exe -
43 "LINK pnm2png,lib.opt/opt" -
45 $ write sys$output "Building png2pnm..."
46 $ CALL MAKE png2pnm.OBJ "cc ''CCOPT' png2pnm" -
48 $ call make png2pnm.exe -
49 "LINK png2pnm,lib.opt/opt" -
54 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
56 $! P1 = What we are trying to make
57 $! P2 = Command to make it
58 $! P3 - P8 What it depends on
60 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
61 $ Time = F$CvTime(F$File(P1,"RDT"))
65 $ If Argument .Eqs. "" Then Goto Exit
68 $ File = F$Element(El," ",Argument)
69 $ If File .Eqs. " " Then Goto Endl
73 $ AFile = F$Search(File)
74 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
75 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
82 $ If arg .Le. 8 Then Goto Loop
91 $ If V Then Set Verify