]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/make_vms.com
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Modules / zlib / make_vms.com
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/make_vms.com b/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/make_vms.com
deleted file mode 100644 (file)
index 93174bb..0000000
+++ /dev/null
@@ -1,461 +0,0 @@
-$! make libz under VMS written by\r
-$! Martin P.J. Zinser\r
-$! <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>\r
-$!\r
-$ on error then goto err_exit\r
-$!\r
-$!\r
-$! Just some general constants...\r
-$!\r
-$ true  = 1\r
-$ false = 0\r
-$ tmpnam = "temp_" + f$getjpi("","pid")\r
-$ SAY = "WRITE SYS$OUTPUT"\r
-$!\r
-$! Setup variables holding "config" information\r
-$!\r
-$ Make     = ""\r
-$ name     = "Zlib"\r
-$ version  = "?.?.?"\r
-$ v_string = "ZLIB_VERSION"\r
-$ v_file   = "zlib.h"\r
-$ ccopt    = ""\r
-$ lopts    = ""\r
-$ linkonly = false\r
-$ optfile  = name + ".opt"\r
-$ its_decc = false\r
-$ its_vaxc = false\r
-$ its_gnuc = false\r
-$ axp      = f$getsyi("HW_MODEL").ge.1024\r
-$ s_case   = false\r
-$! Check for MMK/MMS\r
-$!\r
-$ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"\r
-$ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"\r
-$!\r
-$!\r
-$ gosub find_version\r
-$!\r
-$ gosub check_opts\r
-$!\r
-$! Look for the compiler used\r
-$!\r
-$ gosub check_compiler\r
-$ if its_decc\r
-$ then\r
-$   ccopt = "/prefix=all" + ccopt\r
-$   if f$trnlnm("SYS") .eqs. ""\r
-$   then\r
-$     if axp\r
-$     then\r
-$       define sys sys$library:\r
-$     else\r
-$       ccopt = "/decc" + ccopt\r
-$       define sys decc$library_include:\r
-$     endif\r
-$   endif\r
-$ endif\r
-$ if its_vaxc .or. its_gnuc\r
-$ then\r
-$    if f$trnlnm("SYS").eqs."" then define sys sys$library:\r
-$ endif\r
-$!\r
-$! Build the thing plain or with mms\r
-$!\r
-$ write sys$output "Compiling Zlib sources ..."\r
-$ if make.eqs.""\r
-$  then\r
-$   dele example.obj;*,minigzip.obj;*\r
-$   CALL MAKE adler32.OBJ "CC ''CCOPT' adler32" -\r
-                adler32.c zlib.h zconf.h\r
-$   CALL MAKE compress.OBJ "CC ''CCOPT' compress" -\r
-                compress.c zlib.h zconf.h\r
-$   CALL MAKE crc32.OBJ "CC ''CCOPT' crc32" -\r
-                crc32.c zlib.h zconf.h\r
-$   CALL MAKE deflate.OBJ "CC ''CCOPT' deflate" -\r
-                deflate.c deflate.h zutil.h zlib.h zconf.h\r
-$   CALL MAKE gzio.OBJ "CC ''CCOPT' gzio" -\r
-                gzio.c zutil.h zlib.h zconf.h\r
-$   CALL MAKE infback.OBJ "CC ''CCOPT' infback" -\r
-                infback.c zutil.h inftrees.h inflate.h inffast.h inffixed.h\r
-$   CALL MAKE inffast.OBJ "CC ''CCOPT' inffast" -\r
-                inffast.c zutil.h zlib.h zconf.h inffast.h\r
-$   CALL MAKE inflate.OBJ "CC ''CCOPT' inflate" -\r
-                inflate.c zutil.h zlib.h zconf.h infblock.h\r
-$   CALL MAKE inftrees.OBJ "CC ''CCOPT' inftrees" -\r
-                inftrees.c zutil.h zlib.h zconf.h inftrees.h\r
-$   CALL MAKE trees.OBJ "CC ''CCOPT' trees" -\r
-                trees.c deflate.h zutil.h zlib.h zconf.h\r
-$   CALL MAKE uncompr.OBJ "CC ''CCOPT' uncompr" -\r
-                uncompr.c zlib.h zconf.h\r
-$   CALL MAKE zutil.OBJ "CC ''CCOPT' zutil" -\r
-                zutil.c zutil.h zlib.h zconf.h\r
-$   write sys$output "Building Zlib ..."\r
-$   CALL MAKE libz.OLB "lib/crea libz.olb *.obj" *.OBJ\r
-$   write sys$output "Building example..."\r
-$   CALL MAKE example.OBJ "CC ''CCOPT' example" -\r
-                example.c zlib.h zconf.h\r
-$   call make example.exe "LINK example,libz.olb/lib" example.obj libz.olb\r
-$   if f$search("x11vms:xvmsutils.olb") .nes. ""\r
-$   then\r
-$     write sys$output "Building minigzip..."\r
-$     CALL MAKE minigzip.OBJ "CC ''CCOPT' minigzip" -\r
-                minigzip.c zlib.h zconf.h\r
-$     call make minigzip.exe -\r
-                "LINK minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib" -\r
-                minigzip.obj libz.olb\r
-$   endif\r
-$  else\r
-$   gosub crea_mms\r
-$   SAY "Make ''name' ''version' with ''Make' "\r
-$   'make'\r
-$  endif\r
-$!\r
-$! Alpha gets a shareable image\r
-$!\r
-$ If axp\r
-$ Then\r
-$   gosub crea_olist\r
-$   write sys$output "Creating libzshr.exe"\r
-$   call anal_obj_axp modules.opt _link.opt\r
-$   if s_case\r
-$   then\r
-$      open/append optf modules.opt\r
-$      write optf "case_sensitive=YES"\r
-$      close optf\r
-$   endif\r
-$   LINK_'lopts'/SHARE=libzshr.exe modules.opt/opt,_link.opt/opt\r
-$ endif\r
-$ write sys$output "Zlib build completed"\r
-$ exit\r
-$CC_ERR:\r
-$ write sys$output "C compiler required to build ''name'"\r
-$ goto err_exit\r
-$ERR_EXIT:\r
-$ set message/facil/ident/sever/text\r
-$ write sys$output "Exiting..."\r
-$ exit 2\r
-$!\r
-$!\r
-$MAKE: SUBROUTINE   !SUBROUTINE TO CHECK DEPENDENCIES\r
-$ V = 'F$Verify(0)\r
-$! P1 = What we are trying to make\r
-$! P2 = Command to make it\r
-$! P3 - P8  What it depends on\r
-$\r
-$ If F$Search(P1) .Eqs. "" Then Goto Makeit\r
-$ Time = F$CvTime(F$File(P1,"RDT"))\r
-$arg=3\r
-$Loop:\r
-$       Argument = P'arg\r
-$       If Argument .Eqs. "" Then Goto Exit\r
-$       El=0\r
-$Loop2:\r
-$       File = F$Element(El," ",Argument)\r
-$       If File .Eqs. " " Then Goto Endl\r
-$       AFile = ""\r
-$Loop3:\r
-$       OFile = AFile\r
-$       AFile = F$Search(File)\r
-$       If AFile .Eqs. "" .Or. AFile .Eqs. OFile Then Goto NextEl\r
-$       If F$CvTime(F$File(AFile,"RDT")) .Ges. Time Then Goto Makeit\r
-$       Goto Loop3\r
-$NextEL:\r
-$       El = El + 1\r
-$       Goto Loop2\r
-$EndL:\r
-$ arg=arg+1\r
-$ If arg .Le. 8 Then Goto Loop\r
-$ Goto Exit\r
-$\r
-$Makeit:\r
-$ VV=F$VERIFY(0)\r
-$ write sys$output P2\r
-$ 'P2\r
-$ VV='F$Verify(VV)\r
-$Exit:\r
-$ If V Then Set Verify\r
-$ENDSUBROUTINE\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Check command line options and set symbols accordingly\r
-$!\r
-$ CHECK_OPTS:\r
-$ i = 1\r
-$ OPT_LOOP:\r
-$ if i .lt. 9\r
-$ then\r
-$   cparm = f$edit(p'i',"upcase")\r
-$   if cparm .eqs. "DEBUG"\r
-$   then\r
-$     ccopt = ccopt + "/noopt/deb"\r
-$     lopts = lopts + "/deb"\r
-$   endif\r
-$   if f$locate("CCOPT=",cparm) .lt. f$length(cparm)\r
-$   then\r
-$     start = f$locate("=",cparm) + 1\r
-$     len   = f$length(cparm) - start\r
-$     ccopt = ccopt + f$extract(start,len,cparm)\r
-$     if f$locate("AS_IS",f$edit(ccopt,"UPCASE")) .lt. f$length(ccopt) -\r
-         then s_case = true\r
-$   endif\r
-$   if cparm .eqs. "LINK" then linkonly = true\r
-$   if f$locate("LOPTS=",cparm) .lt. f$length(cparm)\r
-$   then\r
-$     start = f$locate("=",cparm) + 1\r
-$     len   = f$length(cparm) - start\r
-$     lopts = lopts + f$extract(start,len,cparm)\r
-$   endif\r
-$   if f$locate("CC=",cparm) .lt. f$length(cparm)\r
-$   then\r
-$     start  = f$locate("=",cparm) + 1\r
-$     len    = f$length(cparm) - start\r
-$     cc_com = f$extract(start,len,cparm)\r
-      if (cc_com .nes. "DECC") .and. -\r
-         (cc_com .nes. "VAXC") .and. -\r
-        (cc_com .nes. "GNUC")\r
-$     then\r
-$       write sys$output "Unsupported compiler choice ''cc_com' ignored"\r
-$       write sys$output "Use DECC, VAXC, or GNUC instead"\r
-$     else\r
-$      if cc_com .eqs. "DECC" then its_decc = true\r
-$      if cc_com .eqs. "VAXC" then its_vaxc = true\r
-$      if cc_com .eqs. "GNUC" then its_gnuc = true\r
-$     endif\r
-$   endif\r
-$   if f$locate("MAKE=",cparm) .lt. f$length(cparm)\r
-$   then\r
-$     start  = f$locate("=",cparm) + 1\r
-$     len    = f$length(cparm) - start\r
-$     mmks = f$extract(start,len,cparm)\r
-$     if (mmks .eqs. "MMK") .or. (mmks .eqs. "MMS")\r
-$     then\r
-$       make = mmks\r
-$     else\r
-$       write sys$output "Unsupported make choice ''mmks' ignored"\r
-$       write sys$output "Use MMK or MMS instead"\r
-$     endif\r
-$   endif\r
-$   i = i + 1\r
-$   goto opt_loop\r
-$ endif\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Look for the compiler used\r
-$!\r
-$CHECK_COMPILER:\r
-$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))\r
-$ then\r
-$   its_decc = (f$search("SYS$SYSTEM:DECC$COMPILER.EXE") .nes. "")\r
-$   its_vaxc = .not. its_decc .and. (F$Search("SYS$System:VAXC.Exe") .nes. "")\r
-$   its_gnuc = .not. (its_decc .or. its_vaxc) .and. (f$trnlnm("gnu_cc") .nes. "")\r
-$ endif\r
-$!\r
-$! Exit if no compiler available\r
-$!\r
-$ if (.not. (its_decc .or. its_vaxc .or. its_gnuc))\r
-$ then goto CC_ERR\r
-$ else\r
-$   if its_decc then write sys$output "CC compiler check ... Compaq C"\r
-$   if its_vaxc then write sys$output "CC compiler check ... VAX C"\r
-$   if its_gnuc then write sys$output "CC compiler check ... GNU C"\r
-$ endif\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! If MMS/MMK are available dump out the descrip.mms if required\r
-$!\r
-$CREA_MMS:\r
-$ write sys$output "Creating descrip.mms..."\r
-$ create descrip.mms\r
-$ open/append out descrip.mms\r
-$ copy sys$input: out\r
-$ deck\r
-# descrip.mms: MMS description file for building zlib on VMS\r
-# written by Martin P.J. Zinser\r
-# <zinser@zinser.no-ip.info or zinser@sysdev.deutsche-boerse.com>\r
-\r
-OBJS = adler32.obj, compress.obj, crc32.obj, gzio.obj, uncompr.obj, infback.obj\\r
-       deflate.obj, trees.obj, zutil.obj, inflate.obj, \\r
-       inftrees.obj, inffast.obj\r
-\r
-$ eod\r
-$ write out "CFLAGS=", ccopt\r
-$ write out "LOPTS=", lopts\r
-$ copy sys$input: out\r
-$ deck\r
-\r
-all : example.exe minigzip.exe libz.olb\r
-        @ write sys$output " Example applications available"\r
-\r
-libz.olb : libz.olb($(OBJS))\r
-       @ write sys$output " libz available"\r
-\r
-example.exe : example.obj libz.olb\r
-              link $(LOPTS) example,libz.olb/lib\r
-\r
-minigzip.exe : minigzip.obj libz.olb\r
-              link $(LOPTS) minigzip,libz.olb/lib,x11vms:xvmsutils.olb/lib\r
-\r
-clean :\r
-       delete *.obj;*,libz.olb;*,*.opt;*,*.exe;*\r
-\r
-\r
-# Other dependencies.\r
-adler32.obj  : adler32.c zutil.h zlib.h zconf.h\r
-compress.obj : compress.c zlib.h zconf.h\r
-crc32.obj    : crc32.c zutil.h zlib.h zconf.h\r
-deflate.obj  : deflate.c deflate.h zutil.h zlib.h zconf.h\r
-example.obj  : example.c zlib.h zconf.h\r
-gzio.obj     : gzio.c zutil.h zlib.h zconf.h\r
-inffast.obj  : inffast.c zutil.h zlib.h zconf.h inftrees.h inffast.h\r
-inflate.obj  : inflate.c zutil.h zlib.h zconf.h\r
-inftrees.obj : inftrees.c zutil.h zlib.h zconf.h inftrees.h\r
-minigzip.obj : minigzip.c zlib.h zconf.h\r
-trees.obj    : trees.c deflate.h zutil.h zlib.h zconf.h\r
-uncompr.obj  : uncompr.c zlib.h zconf.h\r
-zutil.obj    : zutil.c zutil.h zlib.h zconf.h\r
-infback.obj  : infback.c zutil.h inftrees.h inflate.h inffast.h inffixed.h\r
-$ eod\r
-$ close out\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Read list of core library sources from makefile.in and create options\r
-$! needed to build shareable image\r
-$!\r
-$CREA_OLIST:\r
-$ open/read min makefile.in\r
-$ open/write mod modules.opt\r
-$ src_check = "OBJS ="\r
-$MRLOOP:\r
-$ read/end=mrdone min rec\r
-$ if (f$extract(0,6,rec) .nes. src_check) then goto mrloop\r
-$ rec = rec - src_check\r
-$ gosub extra_filnam\r
-$ if (f$element(1,"\",rec) .eqs. "\") then goto mrdone\r
-$MRSLOOP:\r
-$ read/end=mrdone min rec\r
-$ gosub extra_filnam\r
-$ if (f$element(1,"\",rec) .nes. "\") then goto mrsloop\r
-$MRDONE:\r
-$ close min\r
-$ close mod\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Take record extracted in crea_olist and split it into single filenames\r
-$!\r
-$EXTRA_FILNAM:\r
-$ myrec = f$edit(rec - "\", "trim,compress")\r
-$ i = 0\r
-$FELOOP:\r
-$ srcfil = f$element(i," ", myrec)\r
-$ if (srcfil .nes. " ")\r
-$ then\r
-$   write mod f$parse(srcfil,,,"NAME"), ".obj"\r
-$   i = i + 1\r
-$   goto feloop\r
-$ endif\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Find current Zlib version number\r
-$!\r
-$FIND_VERSION:\r
-$ open/read h_in 'v_file'\r
-$hloop:\r
-$ read/end=hdone h_in rec\r
-$ rec = f$edit(rec,"TRIM")\r
-$ if (f$extract(0,1,rec) .nes. "#") then goto hloop\r
-$ rec = f$edit(rec - "#", "TRIM")\r
-$ if f$element(0," ",rec) .nes. "define" then goto hloop\r
-$ if f$element(1," ",rec) .eqs. v_string\r
-$ then\r
-$   version = 'f$element(2," ",rec)'\r
-$   goto hdone\r
-$ endif\r
-$ goto hloop\r
-$hdone:\r
-$ close h_in\r
-$ return\r
-$!------------------------------------------------------------------------------\r
-$!\r
-$! Analyze Object files for OpenVMS AXP to extract Procedure and Data\r
-$! information to build a symbol vector for a shareable image\r
-$! All the "brains" of this logic was suggested by Hartmut Becker\r
-$! (Hartmut.Becker@compaq.com). All the bugs were introduced by me\r
-$! (zinser@decus.de), so if you do have problem reports please do not\r
-$! bother Hartmut/HP, but get in touch with me\r
-$!\r
-$ ANAL_OBJ_AXP: Subroutine\r
-$ V = 'F$Verify(0)\r
-$ SAY := "WRITE_ SYS$OUTPUT"\r
-$\r
-$ IF F$SEARCH("''P1'") .EQS. ""\r
-$ THEN\r
-$    SAY "ANAL_OBJ_AXP-E-NOSUCHFILE:  Error, inputfile ''p1' not available"\r
-$    goto exit_aa\r
-$ ENDIF\r
-$ IF "''P2'" .EQS. ""\r
-$ THEN\r
-$    SAY "ANAL_OBJ_AXP:  Error, no output file provided"\r
-$    goto exit_aa\r
-$ ENDIF\r
-$\r
-$ open/read in 'p1\r
-$ create a.tmp\r
-$ open/append atmp a.tmp\r
-$ loop:\r
-$ read/end=end_loop in line\r
-$ f= f$search(line)\r
-$ if f .eqs. ""\r
-$ then\r
-$      write sys$output "ANAL_OBJ_AXP-w-nosuchfile, ''line'"\r
-$      goto loop\r
-$ endif\r
-$ define/user sys$output nl:\r
-$ define/user sys$error nl:\r
-$ anal/obj/gsd 'f /out=x.tmp\r
-$ open/read xtmp x.tmp\r
-$ XLOOP:\r
-$ read/end=end_xloop xtmp xline\r
-$ xline = f$edit(xline,"compress")\r
-$ write atmp xline\r
-$ goto xloop\r
-$ END_XLOOP:\r
-$ close xtmp\r
-$ goto loop\r
-$ end_loop:\r
-$ close in\r
-$ close atmp\r
-$ if f$search("a.tmp") .eqs. "" -\r
-       then $ exit\r
-$ ! all global definitions\r
-$ search a.tmp "symbol:","EGSY$V_DEF 1","EGSY$V_NORM 1"/out=b.tmp\r
-$ ! all procedures\r
-$ search b.tmp "EGSY$V_NORM 1"/wind=(0,1) /out=c.tmp\r
-$ search c.tmp "symbol:"/out=d.tmp\r
-$ define/user sys$output nl:\r
-$ edito/edt/command=sys$input d.tmp\r
-sub/symbol: "/symbol_vector=(/whole\r
-sub/"/=PROCEDURE)/whole\r
-exit\r
-$ ! all data\r
-$ search b.tmp "EGSY$V_DEF 1"/wind=(0,1) /out=e.tmp\r
-$ search e.tmp "symbol:"/out=f.tmp\r
-$ define/user sys$output nl:\r
-$ edito/edt/command=sys$input f.tmp\r
-sub/symbol: "/symbol_vector=(/whole\r
-sub/"/=DATA)/whole\r
-exit\r
-$ sort/nodupl d.tmp,f.tmp 'p2'\r
-$ delete a.tmp;*,b.tmp;*,c.tmp;*,d.tmp;*,e.tmp;*,f.tmp;*\r
-$ if f$search("x.tmp") .nes. "" -\r
-       then $ delete x.tmp;*\r
-$!\r
-$ EXIT_AA:\r
-$ if V then set verify\r
-$ endsubroutine\r
-$!------------------------------------------------------------------------------\r