diff options
Diffstat (limited to 'vms/Makefile')
-rw-r--r-- | vms/Makefile | 137 |
1 files changed, 1 insertions, 136 deletions
diff --git a/vms/Makefile b/vms/Makefile index aa69afb214..bf6a428d8b 100644 --- a/vms/Makefile +++ b/vms/Makefile @@ -18,33 +18,21 @@ #### Start of system configuration section. #### -#> .ifdef AXE # File type to use for object files -#> O = .abj # File type to use for object libraries -#> OLB = .alb # File type to use for executable images -#> E = .axe -#> .else # File type to use for object files O = .obj # File type to use for object libraries OLB = .olb # File type to use for executable images E = .exe -#> .endif -#> .ifdef __AXP__ -#> DECC = 1 -#> ARCH = VMS_AXP -#> OBJVAL = $(O) -#> .else ARCH = VMS_VAX OBJVAL = $@ -#> .endif # Updated by fndvers.com -- do not edit by hand -PERL_VERSION = 5_00313# +PERL_VERSION = 5_00321# ARCHDIR = [.lib.$(ARCH).$(PERL_VERSION)] @@ -52,51 +40,19 @@ ARCHCORE = [.lib.$(ARCH).$(PERL_VERSION).CORE] ARCHAUTO = [.lib.$(ARCH).$(PERL_VERSION).auto] -#> .ifdef DECC_PIPES_BROKEN -#> PIPES_BROKEN = 1 -#> .endif -#> .ifdef GNUC -#> .first: -#> @ $$@[.vms]fndvers.com "" "" "[.vms]Makefile" -#> @ If f$$TrnLnm("Sys").eqs."" Then Define/NoLog SYS GNU_CC_Include:[VMS] -#> CC = gcc # -fno-builtin avoids bug in gcc up to version 2.6.2 which can destroy # data when memcpy() is called on large (>64 kB) blocks of memory # (fixed in gcc 2.6.3) -#> XTRACCFLAGS = /Obj=$@/NoCase_Hack/Optimize=2/CC1="""""-fno-builtin""""" -#> DBGSPECFLAGS = -#> XTRADEF = ,GNUC_ATTRIBUTE_CHECK -#> XTRAOBJS = -#> LIBS1 = GNU_CC:[000000]GCCLIB.OLB/Library -#> LIBS2 = sys$$Share:VAXCRTL/Shareable -#> POSIX = -#> .else XTRAOBJS = LIBS1 = $(XTRAOBJS) DBGSPECFLAGS = /Show=(Source,Include,Expansion) -#> .ifdef decc # Some versions of DECCRTL on AXP have a bug in chdir() which causes the change # to persist after the image exits, even when this was not requested, iff # SYSNAM is enabled. This is fixed in CSC Patch # AXPACRT04_061, but turning # off SYSNAM for the MM[SK] subprocess doesn't hurt anything, so we do it # just in case. -#> .first: -#> @ Set Process/Privilege=(NoSYSNAM) -#> @ $$@[.vms]fndvers.com "" "" "[.vms]Makefile" -#> @ If f$$TrnLnm("Sys").eqs."" .and. f$$TrnLnm("DECC$System_Include").nes."" Then Define/NoLog SYS DECC$System_Include -#> .ifdef __AXP__ -#> @ If f$$TrnLnm("Sys").eqs."" .and. f$$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS sys$$Library -#> .else -#> @ If f$$TrnLnm("Sys").eqs."" .and. f$$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS DECC$Library_Include -#> .endif -#> -#> LIBS2 = -#> XTRACCFLAGS = /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=$(OBJVAL) -#> XTRADEF = -#> POSIX = POSIX -#> .else # VAXC .first: @ $$@[.vms]fndvers.com "" "" "[.vms]Makefile" @ If f$$TrnLnm("Sys").eqs."" .and. f$$TrnLnm("VAXC$Include").eqs."" Then Define/NoLog SYS sys$$Library @@ -106,33 +62,15 @@ XTRACCFLAGS = /Include=[]/Object=$(O) XTRADEF = LIBS2 = sys$$Share:VAXCRTL/Shareable POSIX = -#> .endif -#> .endif -#> .ifdef __DEBUG__ -#> DBGCCFLAGS = /List/Debug/NoOpt$(DBGSPECFLAGS) -#> DBGLINKFLAGS = /Trace/Debug/Map/Full/Cross -#> DBG = DBG -#> .else DBGCCFLAGS = /NoList DBGLINKFLAGS = /NoMap DBG = -#> .endif -#> .ifdef SOCKET -#> SOCKDEF = ,VMS_DO_SOCKETS -#> SOCKLIB = SocketShr/Share # N.B. the targets for $(SOCKC) and $(SOCKH) assume that the permanent # copies live in [.vms], and the `clean' target will delete copies of # these files in the current default directory. -#> SOCKC = sockadapt.c -#> SOCKH = sockadapt.h -#> SOCKCLIS = ,$(SOCKC) -#> SOCKHLIS = ,$(SOCKH) -#> SOCKOBJ = ,sockadapt$(O) -#> SOCKPM = [.lib]Socket.pm -#> .else SOCKDEF = SOCKLIB = SOCKC = @@ -141,7 +79,6 @@ SOCKCLIS = SOCKHLIS = SOCKOBJ = SOCKPM = -#> .endif # C preprocessor manifest "DEBUGGING" ==> perl -D, not the VMS debugger CFLAGS = /Define=(DEBUGGING$(SOCKDEF)$(XTRADEF))$(XTRACCFLAGS)$(DBGCCFLAGS) @@ -168,13 +105,8 @@ MYEXT = DynaLoader # there are any object files specified # These must be built separately, or you must add rules below to build them myextobj = [.ext.dynaloader]dl_vms$(O), -#> .ifdef SOCKET -#> EXT = $(MYEXT) Socket -#> extobj = $(myextobj) [.ext.socket]socket$(O), -#> .else EXT = $(MYEXT) extobj = $(myextobj) -#> .endif #### End of system configuration section. #### @@ -207,19 +139,13 @@ ac6 = $(ARCHCORE)pp.h $(ARCHCORE)proto.h $(ARCHCORE)regcomp.h $(ARCHCORE)perlio. ac7 = $(ARCHCORE)regexp.h $(ARCHCORE)scope.h $(ARCHCORE)sv.h $(ARCHCORE)util.h ac8 = $(ARCHCORE)vmsish.h $(ARCHCORE)$(DBG)libperl$(OLB) $(ARCHCORE)perlshr_attr.opt ac9 = $(ARCHCORE)$(DBG)perlshr_bld.opt -#> .ifdef SOCKET -#> acs = $(ARCHCORE)$(SOCKH) -#> .else acs = -#> .endif CRTL = []crtl.opt CRTLOPTS =,$(CRTL)/Options .suffixes: -#> .ifdef LINK_ONLY -#> .else .suffixes: $(O) .c .xs .xs.c : @@ -232,7 +158,6 @@ CRTLOPTS =,$(CRTL)/Options .xs$(O) : $(XSUBPP) $< >$(MMS$SOURCE_NAME).c $(CC) $(CFLAGS) $(MMS$SOURCE_NAME).c -#> .endif all : base extras libmods utils podxform archcorefiles preplibrary perlpods @@ -284,11 +209,7 @@ perl : $(DBG)perl$(E) @ Continue $(DBG)perl$(E) : perlmain$(O), $(DBG)perlshr$(E), $(MINIPERL_EXE) @ $$@[.vms]genopt "PerlShr.Opt/Write" "|" "''f$$Environment("Default")'$(DBG)PerlShr$(E)/Share" -#> .ifdef gnuc -#> Link $(LINKFLAGS)/Exe=$@ perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option, crtl.opt/Option -#> .else Link $(LINKFLAGS)/Exe=$@ perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option -#> .endif $(DBG)perlshr$(E) : $(DBG)libperl$(OLB) $(extobj) $(DBG)perlshr_xtras.ts Link /NoTrace$(LINKFLAGS)/Share=$@ $(extobj) []$(DBG)perlshr_bld.opt/Option, perlshr_attr.opt/Option @@ -298,18 +219,8 @@ $(DBG)perlshr$(E) : $(DBG)libperl$(OLB) $(extobj) $(DBG)perlshr_xtras.ts # perlshr_gbl*.mar, perlshr_gbl*$(O) - VAX only # The song and dance with gen_shrfls.opt accomodates DCL's 255 character # line length limit. -#> .ifdef PIPES_BROKEN # This is a backup target used only with older versions of the DECCRTL which # can't deal with pipes properly. See ReadMe.VMS for details. -#> $(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL) -#> $(CC) $(CFLAGS)/NoObject/NoList/PreProcess=perl.i perl.h -#> @ $(MINIPERL) -e "print join('|',@ARGV),'|';" "~~NOCC~~perl.i~~$(CC)$(CFLAGS)" >gen_shrfls.opt -#> @ $(MINIPERL) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt -#> $(MINIPERL) [.vms]gen_shrfls.pl -f gen_shrfls.opt -#> @ Delete/NoLog/NoConfirm perl.i;, gen_shrfls.opt; -#> @ If f$$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;* -#> @ Copy _NLA0: $(DBG)perlshr_xtras.ts -#> .else $(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL) @ $(MINIPERL) -e "print join('|',@ARGV),'|';" "$(CC)$(CFLAGS)" >gen_shrfls.opt @ $(MINIPERL) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt @@ -317,7 +228,6 @@ $(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $( @ Delete/NoLog/NoConfirm gen_shrfls.opt; @ If f$$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;* @ Copy _NLA0: $(DBG)perlshr_xtras.ts -#> .endif $(ARCHDIR)config.pm : [.lib]config.pm Create/Directory $(ARCHDIR) @@ -657,30 +567,6 @@ printconfig : @ $$@[.vms]make_command $(MMS) $(MMSQUALIFIERS) $(MMSTARGETS) @ $$@[.vms]myconfig "$(CC)" "$(CFLAGS)" "$(LINKFLAGS)" "$(LIBS1)" "$(LIBS2)" "$(SOCKLIB)" "$(EXT)" "$(DBG)" -#> .ifdef SOCKET -#> -#> .ifdef LINK_ONLY -#> .else -#> $(SOCKOBJ) : $(SOCKC) $(SOCKH) -#> -#> [.ext.Socket]Socket$(O) : [.ext.Socket]Socket.c -#> $(CC) $(CFLAGS) /Object=$@ [.ext.Socket]Socket.c -#> -#> [.ext.Socket]Socket.c : [.ext.Socket]Socket.xs $(MINIPERL_EXE) -#> $(XSUBPP) [.ext.Socket]Socket.xs >$@ -#> .endif # !LINK_ONLY -#> -#> vmsish.h : $(SOCKH) -#> -#> $(SOCKC) : [.vms]$(SOCKC) -#> Copy/Log/NoConfirm [.vms]$(SOCKC) []$(SOCKC) -#> -#> $(SOCKH) : [.vms]$(SOCKH) -#> Copy/Log/NoConfirm [.vms]$(SOCKH) []$(SOCKH) -#> -#> [.lib]Socket.pm : [.ext.Socket]Socket.pm -#> Copy/Log/NoConfirm [.ext.Socket]Socket.pm $@ -#> .endif # The following three header files are generated automatically # keywords.h : keywords.pl @@ -712,11 +598,8 @@ perly.h : [.vms]perly_h.vms # rename y.tab.h perly.h # $(INSTPERL) [.vms]vms_yfix.pl perly.c perly.h [.vms]perly_c.vms [.vms]perly_h.vms -#> .ifdef LINK_ONLY -#> .else perly$(O) : perly.c, perly.h, $(h) $(CC) $(CFLAGS) perly.c -#> .endif test : all - @[.VMS]Test.Com "$(E)" @@ -810,11 +693,6 @@ $(ARCHCORE)util.h : util.h $(ARCHCORE)vmsish.h : vmsish.h @ If f$$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE) Copy/Log vmsish.h $@ -#> .ifdef SOCKET -#> $(ARCHCORE)$(SOCKH) : $(SOCKH) -#> @ If f$$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE) -#> Copy/Log $(SOCKH) $@ -#> .endif $(ARCHCORE)$(DBG)libperl$(OLB) : $(DBG)libperl$(OLB) $(DBG)perlshr_xtras.ts @ If f$$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE) Copy/Log $(DBG)libperl$(OLB) $@ @@ -828,8 +706,6 @@ $(ARCHAUTO)time.stamp : @ If f$$Search("$(ARCHDIR)auto.dir").eqs."" Then Create/Directory $(ARCHAUTO) @ If f$$Search("$@").eqs."" Then Copy/NoConfirm _NLA0: $(MMS$TARGET) -#> .ifdef LINK_ONLY -#> .else # AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE av$(O) : EXTERN.h av$(O) : av.c @@ -1502,7 +1378,6 @@ globals$(O) : scope.h globals$(O) : sv.h globals$(O) : vmsish.h globals$(O) : util.h -#> .endif # !LINK_ONLY config.h : [.vms]config.vms Copy/Log/NoConfirm [.vms]config.vms []config.h @@ -1566,11 +1441,6 @@ clean : tidy Set Default [.ext.Opcode] - $(MMS) clean Set Default [--] -#> .ifdef DECC -#> Set Default [.ext.POSIX] -#> - $(MMS) clean -#> Set Default [--] -#> .endif - If f$$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*/Exclude=PerlShr_*.Opt - If f$$Search("*$(O);*") .nes."" Then Delete/NoConfirm/Log *$(O);* - If f$$Search("Config.H").nes."" Then Delete/NoConfirm/Log Config.H;* @@ -1604,11 +1474,6 @@ realclean : clean Set Default [.ext.Opcode] - $(MMS) realclean Set Default [--] -#> .ifdef DECC -#> Set Default [.ext.POSIX] -#> - $(MMS) realclean -#> Set Default [--] -#> .endif - If f$$Search("*$(OLB)").nes."" Then Delete/NoConfirm/Log *$(OLB);* - If f$$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;* - $(MINIPERL) -e "use File::Path; rmtree(['lib/auto','lib/VMS','lib/$(ARCH)'],1,0);" |