$!------------------------------------------------------------------------------
$!
$!
$!
$!
$ zpath = ""
$ pngpath = ""
$!
$!
$!
$ then
$ exit 2
$ endif
$!
$ then
$ exit 2
$ endif
$!
$!
$ ccopt="/include=(''zpath',''pngpath')"
$ then
$ comp = "__decc__=1"
$ else
$ then
$ then
$ comp = "__gcc__=1"
$ else
$ comp = "__vaxc__=1"
$ endif
$ else
$ comp = "__decc__=1"
$ endif
$ endif
$!
$! Build 'em.
$!
$ write sys$output "Compiling PNG book programs ..."
$ call make rpng-x.exe -
$ write sys$output "Building rpng2-x..."
$ call make rpng2-x.exe -
$ call make wpng.exe -
$ exit
$!
$!
$MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
$
$arg=3
$ Argument = P'arg
$ If Argument .Eqs. "" Then Goto Exit
$ El=0
$Loop2:
$ File = F$Element(El," ",Argument)
$ If File .Eqs. " " Then Goto Endl
$ AFile = ""
$Loop3:
$ OFile = AFile
$ AFile = F$Search(File)
$ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
$ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
$ Goto Loop3
$NextEL:
$ El = El + 1
$ Goto Loop2
$EndL:
$ arg=arg+1
$ If arg .Le. 8 Then Goto Loop
$ Goto Exit
$
$Makeit:
$ VV=F$VERIFY(0)
$ write sys$output P2
$ 'P2
$ VV='F$Verify(VV)
$Exit:
$ If V Then Set Verify
$ENDSUBROUTINE