summaryrefslogtreecommitdiff
path: root/make_vms.com
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--make_vms.com68
1 files changed, 34 insertions, 34 deletions
diff --git a/make_vms.com b/make_vms.com
index c3e5b58..c2a1fb5 100644
--- a/make_vms.com
+++ b/make_vms.com
@@ -1,5 +1,5 @@
1$! make libz under VMS written by 1$! make libz under VMS written by
2$! Martin P.J. Zinser 2$! Martin P.J. Zinser
3$! <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com> 3$! <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>
4$! 4$!
5$ on error then goto err_exit 5$ on error then goto err_exit
@@ -46,8 +46,8 @@ $ then
46$ ccopt = "/prefix=all" + ccopt 46$ ccopt = "/prefix=all" + ccopt
47$ if f$trnlnm("SYS") .eqs. "" 47$ if f$trnlnm("SYS") .eqs. ""
48$ then 48$ then
49$ if axp 49$ if axp
50$ then 50$ then
51$ define sys sys$library: 51$ define sys sys$library:
52$ else 52$ else
53$ ccopt = "/decc" + ccopt 53$ ccopt = "/decc" + ccopt
@@ -58,7 +58,7 @@ $ endif
58$ if its_vaxc .or. its_gnuc 58$ if its_vaxc .or. its_gnuc
59$ then 59$ then
60$ if f$trnlnm("SYS").eqs."" then define sys sys$library: 60$ if f$trnlnm("SYS").eqs."" then define sys sys$library:
61$ endif 61$ endif
62$! 62$!
63$! Build the thing plain or with mms 63$! Build the thing plain or with mms
64$! 64$!
@@ -101,8 +101,8 @@ $ then
101$ write sys$output "Building minigzip..." 101$ write sys$output "Building minigzip..."
102$ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" - 102$ CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" -
103 minigzip.c zlib.h zconf.h 103 minigzip.c zlib.h zconf.h
104$ call make minigzip.exe - 104$ call make minigzip.exe -
105 "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" - 105 "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" -
106 minigzip.obj libz.olb 106 minigzip.obj libz.olb
107$ endif 107$ endif
108$ else 108$ else
@@ -118,7 +118,7 @@ $ Then
118$ gosub crea_olist 118$ gosub crea_olist
119$ write sys$output "Creating libzshr.exe" 119$ write sys$output "Creating libzshr.exe"
120$ call anal_obj_axp modules.opt _link.opt 120$ call anal_obj_axp modules.opt _link.opt
121$ if s_case 121$ if s_case
122$ then 122$ then
123$ open/append optf modules.opt 123$ open/append optf modules.opt
124$ write optf "case_sensitive=YES" 124$ write optf "case_sensitive=YES"
@@ -200,41 +200,41 @@ $ if f$locate("AS_IS",f$edit(ccopt,"UPCASE")) .lt. f$length(ccopt) -
200 then s_case = true 200 then s_case = true
201$ endif 201$ endif
202$ if cparm .eqs. "LINK" then linkonly = true 202$ if cparm .eqs. "LINK" then linkonly = true
203$ if f$locate("LOPTS=",cparm) .lt. f$length(cparm) 203$ if f$locate("LOPTS=",cparm) .lt. f$length(cparm)
204$ then 204$ then
205$ start = f$locate("=",cparm) + 1 205$ start = f$locate("=",cparm) + 1
206$ len = f$length(cparm) - start 206$ len = f$length(cparm) - start
207$ lopts = lopts + f$extract(start,len,cparm) 207$ lopts = lopts + f$extract(start,len,cparm)
208$ endif 208$ endif
209$ if f$locate("CC=",cparm) .lt. f$length(cparm) 209$ if f$locate("CC=",cparm) .lt. f$length(cparm)
210$ then 210$ then
211$ start = f$locate("=",cparm) + 1 211$ start = f$locate("=",cparm) + 1
212$ len = f$length(cparm) - start 212$ len = f$length(cparm) - start
213$ cc_com = f$extract(start,len,cparm) 213$ cc_com = f$extract(start,len,cparm)
214 if (cc_com .nes. "DECC") .and. - 214 if (cc_com .nes. "DECC") .and. -
215 (cc_com .nes. "VAXC") .and. - 215 (cc_com .nes. "VAXC") .and. -
216 (cc_com .nes. "GNUC") 216 (cc_com .nes. "GNUC")
217$ then 217$ then
218$ write sys$output "Unsupported compiler choice ''cc_com' ignored" 218$ write sys$output "Unsupported compiler choice ''cc_com' ignored"
219$ write sys$output "Use DECC, VAXC, or GNUC instead" 219$ write sys$output "Use DECC, VAXC, or GNUC instead"
220$ else 220$ else
221$ if cc_com .eqs. "DECC" then its_decc = true 221$ if cc_com .eqs. "DECC" then its_decc = true
222$ if cc_com .eqs. "VAXC" then its_vaxc = true 222$ if cc_com .eqs. "VAXC" then its_vaxc = true
223$ if cc_com .eqs. "GNUC" then its_gnuc = true 223$ if cc_com .eqs. "GNUC" then its_gnuc = true
224$ endif 224$ endif
225$ endif 225$ endif
226$ if f$locate("MAKE=",cparm) .lt. f$length(cparm) 226$ if f$locate("MAKE=",cparm) .lt. f$length(cparm)
227$ then 227$ then
228$ start = f$locate("=",cparm) + 1 228$ start = f$locate("=",cparm) + 1
229$ len = f$length(cparm) - start 229$ len = f$length(cparm) - start
230$ mmks = f$extract(start,len,cparm) 230$ mmks = f$extract(start,len,cparm)
231$ if (mmks .eqs. "MMK") .or. (mmks .eqs. "MMS") 231$ if (mmks .eqs. "MMK") .or. (mmks .eqs. "MMS")
232$ then 232$ then
233$ make = mmks 233$ make = mmks
234$ else 234$ else
235$ write sys$output "Unsupported make choice ''mmks' ignored" 235$ write sys$output "Unsupported make choice ''mmks' ignored"
236$ write sys$output "Use MMK or MMS instead" 236$ write sys$output "Use MMK or MMS instead"
237$ endif 237$ endif
238$ endif 238$ endif
239$ i = i + 1 239$ i = i + 1
240$ goto opt_loop 240$ goto opt_loop
@@ -242,7 +242,7 @@ $ endif
242$ return 242$ return
243$!------------------------------------------------------------------------------ 243$!------------------------------------------------------------------------------
244$! 244$!
245$! Look for the compiler used 245$! Look for the compiler used
246$! 246$!
247$CHECK_COMPILER: 247$CHECK_COMPILER:
248$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc)) 248$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))
@@ -254,7 +254,7 @@ $ endif
254$! 254$!
255$! Exit if no compiler available 255$! Exit if no compiler available
256$! 256$!
257$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc)) 257$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))
258$ then goto CC_ERR 258$ then goto CC_ERR
259$ else 259$ else
260$ if its_decc then write sys$output "CC compiler check ... Compaq C" 260$ if its_decc then write sys$output "CC compiler check ... Compaq C"
@@ -273,7 +273,7 @@ $ open/append out descrip.mms
273$ copy sys$input: out 273$ copy sys$input: out
274$ deck 274$ deck
275# descrip.mms: MMS description file for building zlib on VMS 275# descrip.mms: MMS description file for building zlib on VMS
276# written by Martin P.J. Zinser 276# written by Martin P.J. Zinser
277# <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com> 277# <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>
278 278
279OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\ 279OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\
@@ -281,7 +281,7 @@ OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\
281 inftrees.obj, inffast.obj 281 inftrees.obj, inffast.obj
282 282
283$ eod 283$ eod
284$ write out "CFLAGS=", ccopt 284$ write out "CFLAGS=", ccopt
285$ write out "LOPTS=", lopts 285$ write out "LOPTS=", lopts
286$ copy sys$input: out 286$ copy sys$input: out
287$ deck 287$ deck
@@ -298,7 +298,7 @@ example.exe : example.obj libz.olb
298minigzip.exe : minigzip.obj libz.olb 298minigzip.exe : minigzip.obj libz.olb
299 link $(LOPTS) minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib 299 link $(LOPTS) minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib
300 300
301clean : 301clean :
302 delete *.obj;*,libz.olb;*,*.opt;*,*.exe;* 302 delete *.obj;*,libz.olb;*,*.opt;*,*.exe;*
303 303
304 304
@@ -310,7 +310,7 @@ deflate.obj : deflate.c deflate.h zutil.h zlib.h zconf.h
310example.obj : example.c zlib.h zconf.h 310example.obj : example.c zlib.h zconf.h
311gzio.obj : gzio.c zutil.h zlib.h zconf.h 311gzio.obj : gzio.c zutil.h zlib.h zconf.h
312inffast.obj : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h 312inffast.obj : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h
313inflate.obj : inflate.c zutil.h zlib.h zconf.h 313inflate.obj : inflate.c zutil.h zlib.h zconf.h
314inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h 314inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h
315minigzip.obj : minigzip.c zlib.h zconf.h 315minigzip.obj : minigzip.c zlib.h zconf.h
316trees.obj : trees.c deflate.h zutil.h zlib.h zconf.h 316trees.obj : trees.c deflate.h zutil.h zlib.h zconf.h
@@ -332,12 +332,12 @@ $ src_check = "OBJS ="
332$MRLOOP: 332$MRLOOP:
333$ read/end=mrdone min rec 333$ read/end=mrdone min rec
334$ if (f$extract(0,6,rec) .nes. src_check) then goto mrloop 334$ if (f$extract(0,6,rec) .nes. src_check) then goto mrloop
335$ rec = rec - src_check 335$ rec = rec - src_check
336$ gosub extra_filnam 336$ gosub extra_filnam
337$ if (f$element(1,"\",rec) .eqs. "\") then goto mrdone 337$ if (f$element(1,"\",rec) .eqs. "\") then goto mrdone
338$MRSLOOP: 338$MRSLOOP:
339$ read/end=mrdone min rec 339$ read/end=mrdone min rec
340$ gosub extra_filnam 340$ gosub extra_filnam
341$ if (f$element(1,"\",rec) .nes. "\") then goto mrsloop 341$ if (f$element(1,"\",rec) .nes. "\") then goto mrsloop
342$MRDONE: 342$MRDONE:
343$ close min 343$ close min
@@ -356,7 +356,7 @@ $ if (srcfil .nes. " ")
356$ then 356$ then
357$ write mod f$parse(srcfil,,,"NAME"), ".obj" 357$ write mod f$parse(srcfil,,,"NAME"), ".obj"
358$ i = i + 1 358$ i = i + 1
359$ goto feloop 359$ goto feloop
360$ endif 360$ endif
361$ return 361$ return
362$!------------------------------------------------------------------------------ 362$!------------------------------------------------------------------------------
@@ -382,17 +382,17 @@ $ close h_in
382$ return 382$ return
383$!------------------------------------------------------------------------------ 383$!------------------------------------------------------------------------------
384$! 384$!
385$! Analyze Object files for OpenVMS AXP to extract Procedure and Data 385$! Analyze Object files for OpenVMS AXP to extract Procedure and Data
386$! information to build a symbol vector for a shareable image 386$! information to build a symbol vector for a shareable image
387$! All the "brains" of this logic was suggested by Hartmut Becker 387$! All the "brains" of this logic was suggested by Hartmut Becker
388$! (Hartmut.Becker@compaq.com). All the bugs were introduced by me 388$! (Hartmut.Becker@compaq.com). All the bugs were introduced by me
389$! (zinser@decus.de), so if you do have problem reports please do not 389$! (zinser@decus.de), so if you do have problem reports please do not
390$! bother Hartmut/HP, but get in touch with me 390$! bother Hartmut/HP, but get in touch with me
391$! 391$!
392$ ANAL_OBJ_AXP: Subroutine 392$ ANAL_OBJ_AXP: Subroutine
393$ V = 'F$Verify(0) 393$ V = 'F$Verify(0)
394$ SAY := "WRITE_ SYS$OUTPUT" 394$ SAY := "WRITE_ SYS$OUTPUT"
395$ 395$
396$ IF F$SEARCH("''P1'") .EQS. "" 396$ IF F$SEARCH("''P1'") .EQS. ""
397$ THEN 397$ THEN
398$ SAY "ANAL_OBJ_AXP-E-NOSUCHFILE: Error, inputfile ''p1' not available" 398$ SAY "ANAL_OBJ_AXP-E-NOSUCHFILE: Error, inputfile ''p1' not available"
@@ -457,5 +457,5 @@ $ if f$search("x.tmp") .nes. "" -
457$! 457$!
458$ EXIT_AA: 458$ EXIT_AA:
459$ if V then set verify 459$ if V then set verify
460$ endsubroutine 460$ endsubroutine
461$!------------------------------------------------------------------------------ 461$!------------------------------------------------------------------------------