| 1 | $! make libz under VMS
|
|---|
| 2 | $! written by Martin P.J. Zinser <[email protected]>
|
|---|
| 3 | $!
|
|---|
| 4 | $! Look for the compiler used
|
|---|
| 5 | $!
|
|---|
| 6 | $ ccopt = ""
|
|---|
| 7 | $ if f$getsyi("HW_MODEL").ge.1024
|
|---|
| 8 | $ then
|
|---|
| 9 | $ ccopt = "/prefix=all"+ccopt
|
|---|
| 10 | $ comp = "__decc__=1"
|
|---|
| 11 | $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
|
|---|
| 12 | $ else
|
|---|
| 13 | $ if f$search("SYS$SYSTEM:DECC$COMPILER.EXE").eqs.""
|
|---|
| 14 | $ then
|
|---|
| 15 | $ comp = "__vaxc__=1"
|
|---|
| 16 | $ if f$trnlnm("SYS").eqs."" then define sys sys$library:
|
|---|
| 17 | $ else
|
|---|
| 18 | $ if f$trnlnm("SYS").eqs."" then define sys decc$library_include:
|
|---|
| 19 | $ ccopt = "/decc/prefix=all"+ccopt
|
|---|
| 20 | $ comp = "__decc__=1"
|
|---|
| 21 | $ endif
|
|---|
| 22 | $ endif
|
|---|
| 23 | $!
|
|---|
| 24 | $! Build the thing plain or with mms
|
|---|
| 25 | $!
|
|---|
| 26 | $ write sys$output "Compiling Zlib sources ..."
|
|---|
| 27 | $ if f$search("SYS$SYSTEM:MMS.EXE").eqs.""
|
|---|
| 28 | $ then
|
|---|
| 29 | $ dele example.obj;*,minigzip.obj;*
|
|---|
| 30 | $ CALL MAKE adler32.OBJ "CC ''CCOPT' adler32" -
|
|---|
| 31 | adler32.c zlib.h zconf.h
|
|---|
|
|---|