1 $! make libpng under VMS
4 $! Look for the compiler used
7 $ ccopt="/include=''zlibsrc'"
8 $ if f$getsyi("HW_MODEL").ge.1024
10 $ ccopt = "/prefix=all"+ccopt
12 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
14 $ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs.""
16 $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
17 $ if f$search("SYS$SYSTEM:VAXC.EXE").eqs.""
25 $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
26 $ ccopt = "/decc/prefix=all"+ccopt
31 $! Build the thing plain or with mms
33 $ write sys$output "Compiling Libpng sources ..."
34 $ if f$search("SYS$SYSTEM:MMS.EXE").eqs.""
37 $ CALL MAKE png.OBJ "cc ''CCOPT' png" -
39 $ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
40 pngpread.c png.h pngconf.h
41 $ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" -
42 pngset.c png.h pngconf.h
43 $ CALL MAKE pngget.OBJ "cc ''CCOPT' pngget" -
44 pngget.c png.h pngconf.h
45 $ CALL MAKE pngread.OBJ "cc ''CCOPT' pngread" -
46 pngread.c png.h pngconf.h
47 $ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
48 pngpread.c png.h pngconf.h
49 $ CALL MAKE pngrtran.OBJ "cc ''CCOPT' pngrtran" -
50 pngrtran.c png.h pngconf.h
51 $ CALL MAKE pngrutil.OBJ "cc ''CCOPT' pngrutil" -
52 pngrutil.c png.h pngconf.h
53 $ CALL MAKE pngerror.OBJ "cc ''CCOPT' pngerror" -
54 pngerror.c png.h pngconf.h
55 $ CALL MAKE pngmem.OBJ "cc ''CCOPT' pngmem" -
56 pngmem.c png.h pngconf.h
57 $ CALL MAKE pngrio.OBJ "cc ''CCOPT' pngrio" -
58 pngrio.c png.h pngconf.h
59 $ CALL MAKE pngwio.OBJ "cc ''CCOPT' pngwio" -
60 pngwio.c png.h pngconf.h
61 $ CALL MAKE pngtrans.OBJ "cc ''CCOPT' pngtrans" -
62 pngtrans.c png.h pngconf.h
63 $ CALL MAKE pngwrite.OBJ "cc ''CCOPT' pngwrite" -
64 pngwrite.c png.h pngconf.h
65 $ CALL MAKE pngwtran.OBJ "cc ''CCOPT' pngwtran" -
66 pngwtran.c png.h pngconf.h
67 $ CALL MAKE pngwutil.OBJ "cc ''CCOPT' pngwutil" -
68 pngwutil.c png.h pngconf.h
69 $ write sys$output "Building Libpng ..."
70 $ CALL MAKE libpng.OLB "lib/crea libpng.olb *.obj" *.OBJ
71 $ write sys$output "Building pngtest..."
72 $ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
73 pngtest.c png.h pngconf.h
74 $ call make pngtest.exe -
75 "LINK pngtest,libpng.olb/lib,''zlibsrc'libgz.olb/lib" -
76 pngtest.obj libpng.olb
77 $ write sys$output "Testing Libpng..."
80 $ mms/macro=('comp',zlibsrc='zlibsrc')
82 $ write sys$output "Libpng build completed"
86 $MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
88 $! P1 = What we are trying to make
89 $! P2 = Command to make it
90 $! P3 - P8 What it depends on
92 $ If F$Search(P1) .Eqs. "" Then Goto Makeit
93 $ Time = F$CvTime(F$File(P1,"RDT"))
97 $ If Argument .Eqs. "" Then Goto Exit
100 $ File = F$Element(El," ",Argument)
101 $ If File .Eqs. " " Then Goto Endl
105 $ AFile = F$Search(File)
106 $ If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl
107 $ If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit
114 $ If arg .Le. 8 Then Goto Loop
119 $ write sys$output P2
123 $ If V Then Set Verify