1996-01-26 02:38:47 -05:00
|
|
|
$! make libpng under VMS
|
|
|
|
$!
|
|
|
|
$!
|
1999-11-27 11:22:33 -05:00
|
|
|
$! Check for MMK/MMS
|
|
|
|
$!
|
2000-11-10 13:26:19 -05:00
|
|
|
$! This procedure accepts one parameter (contrib), which causes it to build
|
|
|
|
$! the programs from the contrib directory instead of libpng.
|
|
|
|
$!
|
|
|
|
$ p1 = f$edit(p1,"UPCASE")
|
|
|
|
$ if p1 .eqs. "CONTRIB"
|
|
|
|
$ then
|
|
|
|
$ set def [.contrib.gregbook]
|
|
|
|
$ @makevms
|
|
|
|
$ set def [-.pngminus]
|
|
|
|
$ @makevms
|
|
|
|
$ set def [--]
|
2000-11-23 12:51:42 -05:00
|
|
|
$ exit
|
2000-11-10 13:26:19 -05:00
|
|
|
$ endif
|
1999-11-27 11:22:33 -05:00
|
|
|
$ Make = ""
|
|
|
|
$ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
|
|
|
|
$ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
|
|
|
|
$!
|
1996-01-26 02:38:47 -05:00
|
|
|
$! Look for the compiler used
|
|
|
|
$!
|
|
|
|
$ zlibsrc = "[-.zlib]"
|
|
|
|
$ ccopt="/include=''zlibsrc'"
|
|
|
|
$ if f$getsyi("HW_MODEL").ge.1024
|
|
|
|
$ then
|
|
|
|
$ ccopt = "/prefix=all"+ccopt
|
|
|
|
$ comp = "__decc__=1"
|
|
|
|
$ if f$trnlnm("SYS").eqs."" then define sys sys$library:
|
|
|
|
$ else
|
|
|
|
$ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs.""
|
|
|
|
$ then
|
|
|
|
$ if f$trnlnm("SYS").eqs."" then define sys sys$library:
|
|
|
|
$ if f$search("SYS$SYSTEM:VAXC.EXE").eqs.""
|
|
|
|
$ then
|
|
|
|
$ comp = "__gcc__=1"
|
|
|
|
$ CC :== GCC
|
|
|
|
$ else
|
|
|
|
$ comp = "__vaxc__=1"
|
|
|
|
$ endif
|
|
|
|
$ else
|
|
|
|
$ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
|
|
|
|
$ ccopt = "/decc/prefix=all"+ccopt
|
|
|
|
$ comp = "__decc__=1"
|
|
|
|
$ endif
|
|
|
|
$ endif
|
|
|
|
$!
|
1999-11-27 11:22:33 -05:00
|
|
|
$! Build the thing plain or with mms/mmk
|
1996-01-26 02:38:47 -05:00
|
|
|
$!
|
|
|
|
$ write sys$output "Compiling Libpng sources ..."
|
1999-11-27 11:22:33 -05:00
|
|
|
$ if make.eqs.""
|
1996-01-26 02:38:47 -05:00
|
|
|
$ then
|
|
|
|
$ dele pngtest.obj;*
|
|
|
|
$ CALL MAKE png.OBJ "cc ''CCOPT' png" -
|
2011-12-17 10:06:34 -05:00
|
|
|
png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1997-05-16 03:46:07 -04:00
|
|
|
$ CALL MAKE pngset.OBJ "cc ''CCOPT' pngset" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1997-05-16 03:46:07 -04:00
|
|
|
$ CALL MAKE pngget.OBJ "cc ''CCOPT' pngget" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngread.OBJ "cc ''CCOPT' pngread" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngpread.OBJ "cc ''CCOPT' pngpread" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngrtran.OBJ "cc ''CCOPT' pngrtran" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngrutil.OBJ "cc ''CCOPT' pngrutil" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngerror.OBJ "cc ''CCOPT' pngerror" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngmem.OBJ "cc ''CCOPT' pngmem" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-06-05 16:50:50 -04:00
|
|
|
$ CALL MAKE pngrio.OBJ "cc ''CCOPT' pngrio" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-06-05 16:50:50 -04:00
|
|
|
$ CALL MAKE pngwio.OBJ "cc ''CCOPT' pngwio" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngtrans.OBJ "cc ''CCOPT' pngtrans" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngwrite.OBJ "cc ''CCOPT' pngwrite" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngwtran.OBJ "cc ''CCOPT' pngwtran" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ CALL MAKE pngwutil.OBJ "cc ''CCOPT' pngwutil" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngconfig.h
|
1996-01-26 02:38:47 -05:00
|
|
|
$ write sys$output "Building Libpng ..."
|
|
|
|
$ CALL MAKE libpng.OLB "lib/crea libpng.olb *.obj" *.OBJ
|
|
|
|
$ write sys$output "Building pngtest..."
|
|
|
|
$ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
|
2011-12-17 10:06:34 -05:00
|
|
|
pngtest.c png.h pngconf.h pnglibconf.h pngconfig.h
|
2000-11-23 12:51:42 -05:00
|
|
|
$ call make pngtest.exe -
|
|
|
|
"LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" -
|
1999-09-17 13:27:26 -04:00
|
|
|
pngtest.obj libpng.olb
|
1996-01-26 02:38:47 -05:00
|
|
|
$ write sys$output "Testing Libpng..."
|
|
|
|
$ run pngtest
|
|
|
|
$ else
|
2000-11-10 13:26:19 -05:00
|
|
|
$ if f$search("DESCRIP.MMS") .eqs. "" then copy/nolog [.SCRIPTS]DESCRIP.MMS []
|
1999-11-27 11:22:33 -05:00
|
|
|
$ 'make'/macro=('comp',zlibsrc='zlibsrc')
|
1996-01-26 02:38:47 -05:00
|
|
|
$ endif
|
|
|
|
$ write sys$output "Libpng build completed"
|
|
|
|
$ exit
|
|
|
|
$!
|
|
|
|
$!
|
|
|
|
$MAKE: SUBROUTINE !SUBROUTINE TO CHECK DEPENDENCIES
|
|
|
|
$ V = 'F$Verify(0)
|
|
|
|
$! P1 = What we are trying to make
|
|
|
|
$! P2 = Command to make it
|
|
|
|
$! P3 - P8 What it depends on
|
|
|
|
$
|
|
|
|
$ If F$Search(P1) .Eqs. "" Then Goto Makeit
|
|
|
|
$ Time = F$CvTime(F$File(P1,"RDT"))
|
|
|
|
$arg=3
|
|
|
|
$Loop:
|
|
|
|
$ 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
|