This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
char vs U8 warnings
[perl5.git] / vms / descrip_mms.template
CommitLineData
97abc6ad
HM
1!GROK!THIS!
2# Descrip.MMS for perl5 on VMS
8f9bf0bf
CB
3# Last revised 8-Nov-1999 by Craig Berry craig.berry@metamor.com
4# Revised 18-Oct-1998 by Charles Bailey bailey@newman.upenn.edu
97abc6ad
HM
5#
6#: This file uses MMS syntax, and can be processed using DEC's MMS product,
7#: or the free MMK clone (available by ftp at ftp.spc.edu). If you want to
8#: a Unix-style MAKE tool, run this file through mms2make.pl, which should
9#: be found in the same directory as this file. (There should be a pre-made
10#: copy of Makefile for VAXC in this directory to allow you to build perl.)
11#:
12#: Lines beginning with "#:" will be removed by mms2make.pl when converting
13#: this file to MAKE syntax.
97abc6ad
HM
14#
15# tidy -- purge files generated by executing this file
16# clean -- remove all intermediate (e.g. object files, C files generated
17# during build) files generated by executing this file,
18# but leave `installable' files (images, library) intact
19# realclean -- remove all files generated by executing this file
20# cleansrc -- `realclean' + purge *.c,*.h,descrip.mms
21# crtl.opt -- compiler-specific linker options file (made automatically)
22#
23
24#### Start of system configuration section. ####
25
26~DECC~
27~GNUC~
28~ARCH-TYPE~ = 1
29~THREAD~
30~SOCKET~
429a5e67
DS
31~MALLOC~
32~CC~
33~MT~
97abc6ad
HM
34
35#: >>>>> Architecture-specific options <<<<<
36.ifdef AXE
37# File type to use for object files
38O = .abj
39# File type to use for object libraries
40OLB = .alb
41# File type to use for executable images
42E = .axe
43.else
44# File type to use for object files
45O = .obj
46# File type to use for object libraries
47OLB = .olb
48# File type to use for executable images
49E = .exe
50.endif
51
52.ifdef __AXP__
97abc6ad
HM
53ARCH = VMS_AXP
54OBJVAL = $(O)
55.else
56ARCH = VMS_VAX
57OBJVAL = $(MMS$TARGET_NAME)$(O)
58.endif
59
85988417 60PERL_VERSION = ~PV~
97abc6ad 61
429a5e67 62.ifdef MALLOC
b0d5070b
CB
63MALLOC_O = malloc$(O)
64MALLOC_C = malloc$(C)
429a5e67
DS
65.endif
66
97abc6ad
HM
67.ifdef DECC_SOCKETS
68SOCKET=1
69.endif
70
71.ifdef SOCKETSHR_SOCKETS
72SOCKET=1
73.endif
74
75# If they defined SOCKET but didn't choose a stack, default to SOCKETSHR
76.ifdef DECC_SOCKETS
77.else
78.ifdef SOCKETSHR_SOCKETS
79.else
80.ifdef SOCKET
81SOCKETSHR_SOCKETS=1
82.endif
83.endif
84.endif
85
86
87ARCHDIR = [.lib.$(ARCH).$(PERL_VERSION)]
88ARCHCORE = [.lib.$(ARCH).$(PERL_VERSION).CORE]
89ARCHAUTO = [.lib.$(ARCH).$(PERL_VERSION).auto]
90
91
92#: Backwards compatibility
93.ifdef DECC_PIPES_BROKEN
94PIPES_BROKEN = 1
95.endif
96
97.ifdef __DEBUG__
98NOX2P = 1
99.endif
100
101#: >>>>>Compiler-specific options <<<<<
102.ifdef GNUC
103.first
104 @ If F$TrnLnm("Sys").eqs."" Then Define/NoLog SYS GNU_CC_Include:[VMS]
105CC = gcc
106PIPES_BROKEN = 1
107# -fno-builtin avoids bug in gcc up to version 2.6.2 which can destroy
108# data when memcpy() is called on large (>64 kB) blocks of memory
109# (fixed in gcc 2.6.3)
110XTRACCFLAGS = /Obj=$(MMS$TARGET_NAME)$(O)/NoCase_Hack/Optimize=2
111DBGSPECFLAGS =
429a5e67 112XTRADEF =
97abc6ad
HM
113XTRAOBJS =
114LIBS1 = GNU_CC:[000000]GCCLIB.OLB/Library
115LIBS2 = Sys$Share:VAXCRTL/Shareable
116POSIX =
117.else
118XTRAOBJS =
119LIBS1 = $(XTRAOBJS)
120DBGSPECFLAGS = /Show=All
121.ifdef decc
122# Some versions of DECCRTL on AXP have a bug in chdir() which causes the change
123# to persist after the image exits, even when this was not requested, iff
124# SYSNAM is enabled. This is fixed in CSC Patch # AXPACRT04_061, but turning
125# off SYSNAM for the MM[SK] subprocess doesn't hurt anything, so we do it
126# just in case.
127.first
128 @ Set Process/Privilege=(NoSYSNAM)
129 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").nes."" Then Define/NoLog SYS DECC$System_Include
130.ifdef __AXP__
131 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS Sys$Library
132.else
133 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS DECC$Library_Include
134.endif
135
97abc6ad
HM
136XTRACCFLAGS = /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=$(OBJVAL)
137XTRADEF =
138POSIX = POSIX
139.else # VAXC
140.first
141 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("VAXC$Include").eqs."" Then Define/NoLog SYS Sys$Library
142 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("VAXC$Include").nes."" Then Define/NoLog SYS VAXC$Include
143
144XTRACCFLAGS = /Include=[]/Object=$(O)
145XTRADEF =
146LIBS2 = Sys$Share:VAXCRTL/Shareable
147POSIX =
148.endif
149.endif
150
151
152#: >>>>> Configuration options <<<<<
153#: __DEBUG__: builds images with full VMS debugger support
154.ifdef __DEBUG__
155DBGCCFLAGS = /List/Debug/NoOpt$(DBGSPECFLAGS)
156DBGLINKFLAGS = /Trace/Debug/Map/Full/Cross
157DBG = DBG
158.else
159DBGCCFLAGS = /NoList
160DBGLINKFLAGS = /NoTrace/NoMap
161DBG =
162.endif
163
164#: SOCKET: build in support for TCP/IP sockets
165#: By default, used SOCKETSHR library; see ReadMe.VMS
166#: for information on changing socket support
167.ifdef SOCKET
168.ifdef DECC_SOCKETS
429a5e67 169SOCKDEF =
97abc6ad
HM
170SOCKLIB =
171.else
429a5e67 172SOCKDEF =
97abc6ad
HM
173SOCKLIB = SocketShr/Share
174.endif
175# N.B. the targets for $(SOCKC) and $(SOCKH) assume that the permanent
176# copies live in [.vms], and the `clean' target will delete copies of
177# these files in the current default directory.
178SOCKC = sockadapt.c
179SOCKH = sockadapt.h
b0d5070b
CB
180SOCKARCH = $(ARCHCORE)$(SOCKH)
181SOCKOBJ = sockadapt$(O)
97abc6ad
HM
182SOCKPM = [.lib]Socket.pm
183.else
184SOCKDEF =
185SOCKLIB =
186SOCKC =
187SOCKH =
b0d5070b 188SOCKARCH =
97abc6ad
HM
189SOCKOBJ =
190SOCKPM =
191.endif
192
97abc6ad
HM
193.ifdef THREADED
194THREADDEF =
195THREAD = THREAD
196.endif
197
198.ifdef OLDTHREADED
429a5e67 199THREADDEF =
97abc6ad 200THREAD = THREAD
9ef4b0a6 201THRLIBS1 = sys$share:cma$lib_shr/share|sys$share:cma$rtl/share
97abc6ad 202.ifdef __AXP__
9ef4b0a6 203THRLIBS2 = sys$share:cma$open_lib_shr/share|sys$share:cma$open_rtl/share
97abc6ad
HM
204.endif
205.endif
206
207.ifdef FAKETHREADED
429a5e67 208THREADDEF =
97abc6ad
HM
209THREADH = fakethr.h
210acth = $(ARCHCORE)fakethr.h
211THREAD = THREAD
212.else
213THREADH =
214acth =
215.endif
216
217# C preprocessor manifest "DEBUGGING" ==> perl -D, not the VMS debugger
429a5e67 218CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)
3a385817
GS
219# Flags for a core compile
220X2PCFLAGS = $(CFLAGS)/Define=PERL_FOR_X2P
221# Flags for an x2p compile
222CORECFLAGS = $(CFLAGS)/Define=PERL_CORE
97abc6ad
HM
223LINKFLAGS = $(DBGLINKFLAGS)
224
225MAKE = $(MMS)
226MAKEFILE = Descrip.MMS # this file
227NOOP = continue
228
229# Macros to invoke a copy of miniperl during the build. Targets which
230# are built using these macros should depend on $(MINIPERL_EXE)
231MINIPERL_EXE = Sys$Disk:[]miniperl$(E)
232MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]"
29637182 233XSUBPP = $(MINIPERL) "-I[.ext.re]" [.lib.extutils]xsubpp -noprototypes
97abc6ad
HM
234# Macro to invoke a preexisting copy of Perl. This is used to regenerate
235# some header files when rebuilding Perl, but premade versions are provided
236# in the distribution, so it's OK if this doesn't work; it's here to make
237# life easier for those who modify Perl and rebuild it.
238INSTPERL = perl
239
cc391245
CB
240# Space-separated list of "dynamic" extensions which should be built for
241# run-time dynamic loading.
cc077a9f 242dynamic_ext = $extensions
cc391245 243
97abc6ad
HM
244# Space-separated list of "static" extensions to build into perlshr (case counts).
245MYEXT = DynaLoader
246# object files for these extensions; the trailing comma is required if
247# there are any object files specified
248# These must be built separately, or you must add rules below to build them
249myextobj = [.ext.dynaloader]dl_vms$(O),
250#: We include the Socket extension by default if we're building with socket
251#: support, since it's small and not really worth bothering to keep track
252#: of separately.
253.ifdef SOCKET
254EXT = $(MYEXT) Socket
255extobj = $(myextobj) [.ext.socket]socket$(O),
256.else
257EXT = $(MYEXT)
258extobj = $(myextobj)
259.endif
260
429a5e67
DS
261.ifdef LIBS2
262.else
263LIBS2=
264.endif
97abc6ad 265
9ef4b0a6
BH
266.ifdef THRLIBS1
267.else
268THRLIBS1=
269.endif
270
271.ifdef THRLIBS2
272.else
273THRLIBS2=
274.endif
275
276FULLLIBS2 = $(LIBS2)|$(THRLIBS1)|$(THRLIBS2)
277
97abc6ad
HM
278#### End of system configuration section. ####
279
b0d5070b
CB
280c0 = $(MALLOC_C) $(SOCKC) av.c deb.c doio.c doop.c dump.c globals.c gv.c
281c1 = hv.c mg.c miniperlmain.c op.c perl.c perlio.c perly.c pp.c pp_ctl.c
282c2 = pp_hot.c pp_sys.c regcomp.c regexec.c run.c scope.c sockadapt.c sv.c
283c3 = taint.c toke.c universal.c utf8.c util.c vms.c
284c = $(c0) $(c1) $(c2) $(c3)
285
286obj0 = $(MALLOC_O) $(SOCKOBJ) av$(O) deb$(O) doio$(O) doop$(O) dump$(O)
287obj1 = globals$(O) gv$(O) hv$(O) mg$(O) miniperlmain$(O) op$(O) perl$(O)
288obj2 = perlio$(O) perly$(O) pp$(O) pp_ctl$(O) pp_hot$(O) pp_sys$(O)
289obj3 = regcomp$(O) regexec$(O) run$(O) scope$(O) sockadapt$(O) sv$(O)
8f9bf0bf 290obj4 = taint$(O) toke$(O) universal$(O) utf8$(O) util$(O) vms$(O) xsutils$(O)
b0d5070b
CB
291obj = $(obj0) $(obj1) $(obj2) $(obj3) $(obj4)
292
8f9bf0bf
CB
293h0 = $(SOCKH) $(THREADH) av.h cc_runtime.h config.h cop.h cv.h embed.h
294h1 = embedvar.h extern.h form.h gv.h handy.h hv.h intern.h intrpvar.h
295h2 = iperlsys.h mg.h nostdio.h objxsub.h op.h opcode.h opnames.h
296h3 = patchlevel.h perl.h perlio.h perlsdio.h perlvars.h perly.h pp.h
297h4 = pp_proto.h proto.h regexp.h scope.h sv.h thrdvar.h thread.h utf8.h
298h5 = util.h vmsish.h warnings.h xsub.h
299h6 = regcomp.h regcomp.h
300h7 = keywords.h
b0d5070b 301h = $(h0) $(h1) $(h2) $(h3) $(h4) $(h5)
8f9bf0bf 302allh = $(h) $(h6) $(h7)
b0d5070b
CB
303
304ac0 = $(SOCKARCH) $(ARCHCORE)av.h $(ARCHCORE)cc_runtime.h
305ac1 = $(ARCHCORE)config.h $(ARCHCORE)cop.h $(ARCHCORE)cv.h $(ARCHCORE)embed.h
306ac2 = $(ARCHCORE)embedvar.h $(ARCHCORE)extern.h $(acth)
307ac3 = $(ARCHCORE)form.h $(ARCHCORE)gv.h $(ARCHCORE)handy.h $(ARCHCORE)hv.h
308ac4 = $(ARCHCORE)intern.h $(ARCHCORE)intrpvar.h $(ARCHCORE)iperlsys.h
309ac5 = $(ARCHCORE)keywords.h $(ARCHCORE)mg.h $(ARCHCORE)nostdio.h
310ac6 = $(ARCHCORE)op.h $(ARCHCORE)opcode.h $(ARCHCORE)patchlevel.h
311ac7 = $(ARCHCORE)perl.h $(ARCHCORE)perlio.h $(ARCHCORE)perlsdio.h
312ac8 = $(ARCHCORE)perlvars.h $(ARCHCORE)perly.h $(ARCHCORE)pp.h
313ac9 = $(ARCHCORE)pp_proto.h $(ARCHCORE)proto.h $(ARCHCORE)regcomp.h
314ac10 = $(ARCHCORE)regexp.h $(ARCHCORE)regnodes.h $(ARCHCORE)scope.h
424a8fe9 315ac11 = $(ARCHCORE)sv.h $(ARCHCORE)thrdvar.h $(ARCHCORE)opnames.h
b0d5070b 316ac12 = $(ARCHCORE)thread.h $(ARCHCORE)utf8.h $(ARCHCORE)util.h
424a8fe9 317ac13 = $(ARCHCORE)vmsish.h $(ARCHCORE)warnings.h $(ARCHCORE)xsub.h
25ea24bb
GS
318ac14 = $(ARCHCORE)perlshr_attr.opt $(ARCHCORE)perlshr_bld.opt
319ac = $(ac0) $(ac1) $(ac2) $(ac3) $(ac4) $(ac5) $(ac6) $(ac7) $(ac8) $(ac9) $(ac10) $(ac11) $(ac12) $(ac13) $(ac14)
c05f8f3d 320
97abc6ad
HM
321CRTL = []crtl.opt
322CRTLOPTS =,$(CRTL)/Options
323
324.SUFFIXES
325
326.ifdef LINK_ONLY
327.else
328.SUFFIXES $(O) .c .xs
329
330.xs.c :
331 $(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
332
333
334.c$(O) :
335 $(CC) $(CFLAGS) $(MMS$SOURCE)
336
337.xs$(O) :
338 $(XSUBPP) $(MMS$SOURCE) >$(MMS$SOURCE_NAME).c
339 $(CC) $(CFLAGS) $(MMS$SOURCE_NAME).c
340.endif
341
342# Modules which must be installed before we can build extensions
25ea24bb 343LIBPREREQ = $(ARCHDIR)Config.pm [.lib]DynaLoader.pm [.lib]XSLoader.pm [.lib]vmsish.pm [.lib.VMS]Filespec.pm [.lib.ExtUtils]XSSymSet.pm
97abc6ad 344
95667ae4 345utils1 = [.lib.pod]perldoc.com [.lib.ExtUtils]Miniperl.pm [.utils]c2ph.com [.utils]h2ph.com [.utils]h2xs.com [.lib]perlbug.com [.lib]perlcc.com [.utils]dprofpp.com
97abc6ad
HM
346utils2 = [.lib]splain.com [.utils]pl2pm.com
347
348.ifdef NOX2P
349all : base extras archcorefiles preplibrary perlpods
350 @ $(NOOP)
351.else
352all : base extras x2p archcorefiles preplibrary perlpods
353 @ $(NOOP)
354.endif
355base : miniperl perl
356 @ $(NOOP)
cc391245 357extras : dynext libmods utils podxform
97abc6ad
HM
358 @ $(NOOP)
359libmods : $(LIBPREREQ)
360 @ $(NOOP)
361utils : $(utils1) $(utils2)
362 @ $(NOOP)
363podxform : [.lib.pod]pod2text.com [.lib.pod]pod2html.com [.lib.pod]pod2latex.com [.lib.pod]pod2man.com
364 @ $(NOOP)
365x2p : [.x2p]a2p$(E) [.x2p]s2p.com [.x2p]find2perl.com
366 @ $(NOOP)
367
368pod1 = [.lib.pod]perl.pod [.lib.pod]perlapio.pod [.lib.pod]perlbook.pod [.lib.pod]perlbot.pod [.lib.pod]perlcall.pod
369pod2 = [.lib.pod]perldata.pod [.lib.pod]perldebug.pod [.lib.pod]perldelta.pod [.lib.pod]perldiag.pod [.lib.pod]perldsc.pod
370pod3 = [.lib.pod]perlembed.pod [.lib.pod]perlform.pod [.lib.pod]perlfunc.pod [.lib.pod]perlguts.pod
371pod4 = [.lib.pod]perlipc.pod [.lib.pod]perllocale.pod [.lib.pod]perllol.pod [.lib.pod]perlmod.pod [.lib.pod]perlobj.pod
a1e2a320
GS
372pod5 = [.lib.pod]perlop.pod [.lib.pod]perlpod.pod [.lib.pod]perlre.pod [.lib.pod]perlref.pod [.lib.pod]perlreftut.pod
373pod6 = [.lib.pod]perlrun.pod [.lib.pod]perlsec.pod [.lib.pod]perlstyle.pod [.lib.pod]perlsub.pod [.lib.pod]perlsyn.pod
97abc6ad
HM
374pod7 = [.lib.pod]perltie.pod [.lib.pod]perltoc.pod [.lib.pod]perltoot.pod
375pod8 = [.lib.pod]perltrap.pod [.lib.pod]perlvar.pod [.lib.pod]perlxs.pod [.lib.pod]perlxstut.pod
376
377perlpods : $(pod1) $(pod2) $(pod3) $(pod4) $(pod5) $(pod6) $(pod7) $(pod8) [.lib.pod]perlvms.pod
378 @ $(NOOP)
379
8f9bf0bf 380archcorefiles : $(ac) $(acth) $(ARCHAUTO)time.stamp
97abc6ad
HM
381 @ $(NOOP)
382
383miniperl : $(DBG)miniperl$(E)
384 @ Continue
385$(MINIPERL_EXE) : miniperlmain$(O), $(DBG)libperl$(OLB) $(CRTL)
386 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MMS$TARGET) miniperlmain$(O), $(DBG)libperl$(OLB)/Library/Include=globals $(CRTLOPTS)
387$(DBG)miniperl$(E) : miniperlmain$(O), $(DBG)libperl$(OLB) $(CRTL)
388 Link $(LINKFLAGS)/Trace/Exe=$(MMS$TARGET) miniperlmain$(O),$(DBG)libperl$(OLB)/Library/Include=globals $(CRTLOPTS)
389
390$(DBG)libperl$(OLB) : $(obj)
391 @ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
8f9bf0bf 392 Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
97abc6ad
HM
393
394perlmain.c : miniperlmain.c $(MINIPERL_EXE) [.vms]writemain.pl
395 $(MINIPERL) [.VMS]Writemain.pl "$(EXT)"
396
97abc6ad
HM
397.ifdef __DEBUG__
398# Link an extra perl that doesn't invoke the debugger
1f052492 399perl : $(DBG)perl$(E)
97abc6ad 400 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoCross/NoFull/Exe=N$(DBG)perl$(E) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
97abc6ad 401.else
1f052492 402perl : $(DBG)perl$(E)
97abc6ad
HM
403 @ Continue
404.endif
405
406$(DBG)perl$(E) : perlmain$(O), $(DBG)perlshr$(E), $(MINIPERL_EXE)
407 @ @[.vms]genopt "PerlShr.Opt/Write" "|" "''F$Environment("Default")'$(DBG)PerlShr$(E)/Share"
429a5e67
DS
408.ifdef MT
409 Link $(LINKFLAGS)/Exe=$(MMS$TARGET) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)/THREAD=(MULTI,UPCALL)
410.else
97abc6ad 411 Link $(LINKFLAGS)/Exe=$(MMS$TARGET) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
429a5e67 412.endif
97abc6ad 413
97abc6ad
HM
414$(DBG)perlshr$(E) : $(DBG)libperl$(OLB) $(extobj) $(DBG)perlshr_xtras.ts
415 Link $(LINKFLAGS)/Share=$(MMS$TARGET) $(extobj) []$(DBG)perlshr_bld.opt/Option, perlshr_attr.opt/Option
416
417# The following files are built in one go by gen_shrfls.pl:
418# perlshr_attr.opt, $(DBG)perlshr_bld.opt - VAX and AXP
419# perlshr_gbl*.mar, perlshr_gbl*$(O) - VAX only
8f9bf0bf 420# The song and dance with gen_shrfls.opt accommodates DCL's 255 character
97abc6ad
HM
421# line length limit.
422.ifdef PIPES_BROKEN
423# This is a backup target used only with older versions of the DECCRTL which
424# can't deal with pipes properly. See ReadMe.VMS for details.
425$(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL)
426 $(CC) $(CFLAGS)/NoObject/NoList/PreProcess=perl.i perl.h
427 @ $(MINIPERL) -e "print join('|',@ARGV),'|';" "~~NOCC~~perl.i~~$(CC)$(CFLAGS)" >gen_shrfls.opt
428 @ $(MINIPERL) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt
429 $(MINIPERL) [.vms]gen_shrfls.pl -f gen_shrfls.opt
430 @ Delete/NoLog/NoConfirm perl.i;, gen_shrfls.opt;
431 @ If F$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;*
432 @ Copy _NLA0: $(DBG)perlshr_xtras.ts
433.else
434$(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL)
435 @ $(MINIPERL) -e "print join('|',@ARGV),'|';" "$(CC)$(CFLAGS)" >gen_shrfls.opt
436 @ $(MINIPERL) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt
437 $(MINIPERL) [.vms]gen_shrfls.pl -f gen_shrfls.opt
438 @ Delete/NoLog/NoConfirm gen_shrfls.opt;
439 @ If F$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;*
440 @ Copy _NLA0: $(DBG)perlshr_xtras.ts
441.endif
442
443$(ARCHDIR)config.pm : [.lib]config.pm
444 Create/Directory $(ARCHDIR)
445 Copy $(MMS$SOURCE) $(MMS$TARGET)
446
cc391245 447[.lib]config.pm : config.h $(MINIPERL_EXE)
97abc6ad
HM
448 $(MINIPERL) ConfigPM.
449
429a5e67 450[.ext.dynaloader]dl_vms.c : [.ext.dynaloader]dl_vms.xs $(ARCHDIR)Config.pm [.lib.ExtUtils]XSSymSet.pm $(MINIPERL_EXE)
97abc6ad
HM
451 $(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
452
453[.ext.dynaloader]dl_vms$(O) : [.ext.dynaloader]dl_vms.c
454 $(CC) $(CFLAGS) /Include=([],[.ext.dynaloader])/Object=$(MMS$TARGET) $(MMS$SOURCE)
455
456[.lib]DynaLoader.pm : [.ext.dynaloader]dynaloader.pm
457 Copy/Log/NoConfirm [.ext.dynaloader]dynaloader.pm [.lib]DynaLoader.pm
458 @ If F$Search("[.lib]auto.dir").eqs."" Then Create/Directory [.lib.auto]
459 @ $(MINIPERL) -e "use AutoSplit; autosplit_lib_modules(@ARGV)" [.lib]DynaLoader.pm
460
25ea24bb
GS
461[.lib]XSLoader.pm : [.ext.dynaloader]xsloader.pm
462 Copy/Log/NoConfirm [.ext.dynaloader]xsloader.pm [.lib]XSLoader.pm
463 @ If F$Search("[.lib]auto.dir").eqs."" Then Create/Directory [.lib.auto]
464 @ $(MINIPERL) -e "use AutoSplit; autosplit_lib_modules(@ARGV)" [.lib]XSLoader.pm
465
429a5e67 466[.ext.dynaloader]dynaloader.pm : [.ext.dynaloader]dynaloader_pm.pl
97abc6ad
HM
467 $(MINIPERL) $(MMS$SOURCE)
468 @ Rename/Log dynaloader.pm [.ext.dynaloader]
469
25ea24bb
GS
470[.ext.dynaloader]xsloader.pm : [.ext.dynaloader]xsloader_pm.pl
471 $(MINIPERL) $(MMS$SOURCE)
472 @ Rename/Log xsloader.pm [.ext.dynaloader]
473
cc391245
CB
474dynext : $(LIBPREREQ) $(DBG)perlshr$(E)
475 @build_ext "$(dynamic_ext)" "$(MINIPERL_EXE)" "$(MMS)"
97abc6ad
HM
476
477[.lib]vmsish.pm : [.vms.ext]vmsish.pm
478 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
479
480[.lib.VMS]Filespec.pm : [.vms.ext]Filespec.pm
481 @ If F$Search("[.lib]VMS.Dir").eqs."" Then Create/Directory [.lib.VMS]
482 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
483
484[.lib.ExtUtils]XSSymSet.pm : [.vms.ext]XSSymSet.pm
485 @ If F$Search("[.lib]VMS.Dir").eqs."" Then Create/Directory [.lib.VMS]
486 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
487
488[.lib.pod]perldoc.com : [.utils]perldoc.PL $(ARCHDIR)Config.pm
489 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
490 $(MINIPERL) $(MMS$SOURCE)
491 Copy/Log [.utils]perldoc.com $(MMS$TARGET)
492
493[.lib.ExtUtils]Miniperl.pm : Minimod.PL miniperlmain.c $(ARCHDIR)Config.pm
494 $(MINIPERL) $(MMS$SOURCE) >$(MMS$TARGET)
495
496[.utils]c2ph.com : [.utils]c2ph.PL $(ARCHDIR)Config.pm
497 $(MINIPERL) $(MMS$SOURCE)
498
95667ae4
GS
499[.utils]dprofpp.com : [.utils]dprofpp.PL $(ARCHDIR)Config.pm
500 $(MINIPERL) $(MMS$SOURCE)
501
97abc6ad
HM
502[.utils]h2ph.com : [.utils]h2ph.PL $(ARCHDIR)Config.pm
503 $(MINIPERL) $(MMS$SOURCE)
504
505[.utils]h2xs.com : [.utils]h2xs.PL $(ARCHDIR)Config.pm
506 $(MINIPERL) $(MMS$SOURCE)
507
508[.lib]perlbug.com : [.utils]perlbug.PL $(ARCHDIR)Config.pm
509 $(MINIPERL) $(MMS$SOURCE)
510 Copy/Log [.utils]perlbug.com $(MMS$TARGET)
511
be46aa5a
HM
512[.lib]perlcc.com : [.utils]perlcc.PL $(ARCHDIR)Config.pm
513 $(MINIPERL) $(MMS$SOURCE)
514 Copy/Log [.utils]perlcc.com $(MMS$TARGET)
515
97abc6ad
HM
516[.utils]pl2pm.com : [.utils]pl2pm.PL $(ARCHDIR)Config.pm
517 $(MINIPERL) $(MMS$SOURCE)
518
519[.lib]splain.com : [.utils]splain.PL $(ARCHDIR)Config.pm
520 $(MINIPERL) $(MMS$SOURCE)
521 Copy/Log [.utils]splain.com $(MMS$TARGET)
522
523[.x2p]find2perl.com : [.x2p]find2perl.PL $(ARCHDIR)Config.pm
524 $(MINIPERL) $(MMS$SOURCE)
525
526[.x2p]s2p.com : [.x2p]s2p.PL $(ARCHDIR)Config.pm
527 $(MINIPERL) $(MMS$SOURCE)
528
529# Rename catches problem with some DECC versions in which object file is
530# placed in current default dir, not same one as source file.
531[.x2p]$(DBG)a2p$(E) : [.x2p]a2p$(O), [.x2p]hash$(O), [.x2p]str$(O), [.x2p]util$(O), [.x2p]walk$(O)
532 @ If F$Search("hash$(O)").nes."" Then Rename/NoLog hash$(O),str$(O),util$(O),walk$(O) [.x2p]
533 Link $(LINKFLAGS) /Exe=$(MMS$TARGET) $(MMS$SOURCE_LIST) $(CRTLOPTS)
534
8f9bf0bf 535# Accommodate buggy cpp in some version of DECC, which chokes on illegal
97abc6ad
HM
536# filespec "y.tab.c", and broken gcc cpp, which doesn't start #include ""
537# search in same dir as source file
b0d5070b 538[.x2p]a2p$(O) : [.x2p]a2p.c [.x2p]a2py.c [.x2p]INTERN.h [.x2p]a2p.h [.x2p]hash.h [.x2p]str.h config.h handy.h vmsish.h $(SOCKH) $(MINIPERL_EXE)
97abc6ad 539 $(MINIPERL) -pe "s/^#line\s+(\d+)\s+\Q""y.tab.c""/#line $1 ""y_tab.c""/;" $(MMS$SOURCE) >$(MMS$TARGET_NAME)_vms.c
3a385817 540 $(CC) $(X2PCFLAGS) /Object=$(MMS$TARGET)/Include=([.x2p],[]) $(MMS$TARGET_NAME)_vms.c
97abc6ad
HM
541 Delete/Log/NoConfirm $(MMS$TARGET_NAME)_vms.c;
542
543# gcc cpp broken -- doesn't look in directory of source file for #include ""
544.ifdef GNUC
545[.x2p]hash$(O) : [.x2p]hash.c
3a385817 546 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
547
548[.x2p]str$(O) : [.x2p]str.c
3a385817 549 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
550
551[.x2p]util$(O) : [.x2p]util.c
3a385817 552 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
553
554[.x2p]walk$(O) : [.x2p]walk.c
3a385817 555 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
556.endif
557
558[.lib.pod]pod2html.com : [.pod]pod2html.PL $(ARCHDIR)Config.pm
559 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
560 $(MINIPERL) $(MMS$SOURCE)
561 Copy/Log [.pod]pod2html.com $(MMS$TARGET)
562
563[.lib.pod]pod2latex.com : [.pod]pod2latex.PL $(ARCHDIR)Config.pm
564 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
565 $(MINIPERL) $(MMS$SOURCE)
566 Copy/Log [.pod]pod2latex.com $(MMS$TARGET)
567
568[.lib.pod]pod2man.com : [.pod]pod2man.PL $(ARCHDIR)Config.pm
569 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
570 $(MINIPERL) $(MMS$SOURCE)
571 Copy/Log [.pod]pod2man.com $(MMS$TARGET)
572
573[.lib.pod]pod2text.com : [.pod]pod2text.PL $(ARCHDIR)Config.pm
574 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
575 $(MINIPERL) $(MMS$SOURCE)
576 Copy/Log [.pod]pod2text.com $(MMS$TARGET)
577
578preplibrary : $(MINIPERL_EXE) $(LIBPREREQ) $(SOCKPM)
579 @ Write Sys$Output "Autosplitting Perl library . . ."
580 @ Create/Directory [.lib.auto]
581 @ $(MINIPERL) -e "use AutoSplit; autosplit_lib_modules(@ARGV)" [.lib]*.pm [.lib.*]*.pm
582
583[.lib.pod]perl.pod : [.pod]perl.pod
584 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
585 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
586
587[.lib.pod]perlapio.pod : [.pod]perlapio.pod
588 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
589 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
590
591[.lib.pod]perlbook.pod : [.pod]perlbook.pod
592 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
593 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
594
595[.lib.pod]perlbot.pod : [.pod]perlbot.pod
596 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
597 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
598
599[.lib.pod]perlcall.pod : [.pod]perlcall.pod
600 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
601 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
602
603[.lib.pod]perldata.pod : [.pod]perldata.pod
604 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
605 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
606
607[.lib.pod]perldebug.pod : [.pod]perldebug.pod
608 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
609 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
610
611[.lib.pod]perldelta.pod : [.pod]perldelta.pod
612 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
613 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
614
615[.lib.pod]perldiag.pod : [.pod]perldiag.pod
616 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
617 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
618
619[.lib.pod]perldsc.pod : [.pod]perldsc.pod
620 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
621 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
622
623[.lib.pod]perlembed.pod : [.pod]perlembed.pod
624 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
625 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
626
627[.lib.pod]perlform.pod : [.pod]perlform.pod
628 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
629 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
630
631[.lib.pod]perlfunc.pod : [.pod]perlfunc.pod
632 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
633 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
634
635[.lib.pod]perlguts.pod : [.pod]perlguts.pod
636 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
637 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
638
639[.lib.pod]perllocale.pod : [.pod]perllocale.pod
640 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
641 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
642
643[.lib.pod]perlipc.pod : [.pod]perlipc.pod
644 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
645 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
646
647[.lib.pod]perllol.pod : [.pod]perllol.pod
648 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
649 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
650
651[.lib.pod]perlmod.pod : [.pod]perlmod.pod
652 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
653 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
654
655[.lib.pod]perlobj.pod : [.pod]perlobj.pod
656 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
657 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
658
659[.lib.pod]perlop.pod : [.pod]perlop.pod
660 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
661 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
662
663[.lib.pod]perlpod.pod : [.pod]perlpod.pod
664 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
665 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
666
667[.lib.pod]perlre.pod : [.pod]perlre.pod
668 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
669 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
670
671[.lib.pod]perlref.pod : [.pod]perlref.pod
672 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
673 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
674
675[.lib.pod]perlrun.pod : [.pod]perlrun.pod
676 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
677 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
678
679[.lib.pod]perlsec.pod : [.pod]perlsec.pod
680 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
681 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
682
683[.lib.pod]perlstyle.pod : [.pod]perlstyle.pod
684 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
685 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
686
687[.lib.pod]perlsub.pod : [.pod]perlsub.pod
688 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
689 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
690
691[.lib.pod]perlsyn.pod : [.pod]perlsyn.pod
692 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
693 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
694
695[.lib.pod]perltie.pod : [.pod]perltie.pod
696 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
697 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
698
699[.lib.pod]perltoc.pod : [.pod]perltoc.pod
700 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
701 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
702
703[.lib.pod]perltoot.pod : [.pod]perltoot.pod
704 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
705 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
706
3937c24e
HM
707[.lib.pod]perlreftut.pod : [.pod]perlreftut.pod
708 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
709 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
710
97abc6ad
HM
711[.lib.pod]perltrap.pod : [.pod]perltrap.pod
712 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
713 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
714
715[.lib.pod]perlvar.pod : [.pod]perlvar.pod
716 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
717 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
718
719[.lib.pod]perlxs.pod : [.pod]perlxs.pod
720 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
721 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
722
723[.lib.pod]perlxstut.pod : [.pod]perlxstut.pod
724 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
725 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
726
727[.lib.pod]perlvms.pod : [.vms]perlvms.pod
728 @ If F$Search("[.lib]pod.dir").eqs."" Then Create/Directory [.lib.pod]
729 @ Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
730
731printconfig :
732 @ @[.vms]make_command $(MMS) $(MMSQUALIFIERS) $(MMSTARGETS)
9ef4b0a6 733 @ @[.vms]myconfig "$(CC)" "$(CFLAGS)" "$(LINKFLAGS)" "$(LIBS1)" "$(FULLLIBS2)" "$(SOCKLIB)" "$(EXT)" "$(DBG)"
97abc6ad
HM
734
735.ifdef SOCKET
736
737.ifdef LINK_ONLY
738.else
739[.ext.Socket]Socket$(O) : [.ext.Socket]Socket.c
740 $(CC) $(CFLAGS) /Object=$(MMS$TARGET) $(MMS$SOURCE)
741
742[.ext.Socket]Socket.c : [.ext.Socket]Socket.xs [.lib.ExtUtils]XSSymSet.pm $(MINIPERL_EXE)
743 $(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
744.endif # !LINK_ONLY
745
746vmsish.h : $(SOCKH)
747
424a8fe9 748$(SOCKOBJ) : $(SOCKC) EXTERN.h perl.h config.h embed.h perlsdio.h handy.h vmsish.h regexp.h sv.h util.h form.h gv.h cv.h opcode.h opnames.h op.h cop.h av.h hv.h mg.h scope.h perly.h thread.h pp.h proto.h embedvar.h perlvars.h thrdvar.h intrpvar.h perlio.h
97abc6ad
HM
749
750$(SOCKC) : [.vms]$(SOCKC)
751 Copy/Log/NoConfirm [.vms]$(SOCKC) []$(SOCKC)
752
753$(SOCKH) : [.vms]$(SOCKH)
754 Copy/Log/NoConfirm [.vms]$(SOCKH) []$(SOCKH)
755
756[.lib]Socket.pm : [.ext.Socket]Socket.pm
757 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
758.endif
759
424a8fe9
CB
760# The following files are generated automatically
761# keywords.h: keywords.pl
762# opcode.h: opcode.pl
763# opnames.h: opcode.pl
764# pp_proto.h: opcode.pl
765# pp.sym: opcode.pl
766# embed.h: embed.pl [* needs pp.sym generated by opcode.pl! *]
767# embedvar.h: embed.pl [* needs pp.sym generated by opcode.pl! *]
768# ext/ByteLoader/byterun.h: bytecode.pl
769# ext/ByteLoader/byterun.c: bytecode.pl
770# ext/B/Asmdata.pm: bytecode.pl
771# global.sym: embed.pl
772# regnodes.h: regcomp.pl
773# warnings.h lib/warnings.pm: warnings.pl
97abc6ad
HM
774# The correct versions should be already supplied with the perl kit,
775# in case you don't have perl available.
776# To force them to run, type
777# MMS regen_headers
778regen_headers :
779 $(INSTPERL) keywords.pl
780 $(INSTPERL) opcode.pl
781 $(INSTPERL) embed.pl
cc391245
CB
782 $(INSTPERL) bytecode.pl
783 $(INSTPERL) regcomp.pl
424a8fe9 784 $(INSTPERL) warnings.pl
97abc6ad
HM
785
786# VMS uses modified perly.[ch] with tags for globaldefs if using DEC compiler
787perly.c : [.vms]perly_c.vms
788 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
789perly.h : [.vms]perly_h.vms
790 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
791
97abc6ad
HM
792.ifdef LINK_ONLY
793.else
8f9bf0bf 794perly$(O) : perly.c, perly.h, $(allh)
97abc6ad
HM
795.endif
796
797[.t.lib]vmsfspec.t : [.vms.ext]filespec.t
798 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
799
800[.t.lib]vmsish.t : [.vms.ext]vmsish.t
801 Copy/Log/NoConfirm $(MMS$SOURCE) $(MMS$TARGET)
802
803test : all [.t.lib]vmsfspec.t [.t.lib]vmsish.t
3eeba6fb 804 - @[.VMS]Test.Com "$(E)" "$(__DEBUG__)"
97abc6ad 805
3a385817
GS
806# install ought not need a source, but it doesn't work if one's not
807# there. Go figure...
808install : $(MINIPERL_EXE)
29637182 809 If F$TrnLnm("Sys") .nes. "" Then Deass SYS
97abc6ad
HM
810 $(MINIPERL) installperl
811
812archify : all
813 @ Write Sys$Output "Moving files to architecture-specific locations for $(ARCH)"
814 archroot = "$(ARCHAUTO)" - "]" + "...]"
815 Backup/Log/Verify [.lib.auto...]*.*;/Exclude=(*.al,*.ix) 'archroot'/New_Version
816 Delete/Log/NoConfirm [.lib.auto...]*.*;*/exclude=(*.al,*.ix,*.dir)
817 Delete/Log/NoConfirm [.lib]Config.pm;*
818 Copy/Log/NoConfirm *$(E);,[.x2p]a2p$(E); $(ARCHDIR)
819 Delete/Log/NoConfirm Perl*$(E);*,[.x2p]a2p$(E);*
820 @ Write Sys$Output "Architecture-specific setup completed."
821 @ Write Sys$Output "Before building for another architecture, be sure to"
822 @ Write Sys$Output " 1. $(MMS)$(MMSQUALIFIERS) clean"
823 @ Write Sys$Output " 2. Delete Miniperl$(E)"
824
825# CORE subset for MakeMaker, so we can build Perl without sources
826# Should move to VMS installperl when we get one
b0d5070b
CB
827.ifdef SOCKET
828$(ARCHCORE)$(sockh) : $(sockh)
97abc6ad
HM
829 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
830 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
831.endif
832$(ARCHCORE)av.h : av.h
97abc6ad
HM
833 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
834 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b 835$(ARCHCORE)cc_runtime.h : cc_runtime.h
97abc6ad
HM
836 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
837 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
838$(ARCHCORE)config.h : config.h
839 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
840 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
841$(ARCHCORE)cop.h : cop.h
842 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
843 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
844$(ARCHCORE)cv.h : cv.h
845 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
846 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
847$(ARCHCORE)embed.h : embed.h
848 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
849 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
850$(ARCHCORE)embedvar.h : embedvar.h
851 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
852 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
853$(ARCHCORE)extern.h : extern.h
854 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
855 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
856.ifdef FAKETHREADED
857$(ARCHCORE)fakethr.h : fakethr.h
858 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
859 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
860.endif
861$(ARCHCORE)form.h : form.h
862 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
863 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
864$(ARCHCORE)gv.h : gv.h
865 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
866 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
867$(ARCHCORE)handy.h : handy.h
868 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
869 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
870$(ARCHCORE)hv.h : hv.h
871 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
872 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
873$(ARCHCORE)intern.h : intern.h
874 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
875 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
876$(ARCHCORE)intrpvar.h : intrpvar.h
877 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
878 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
879$(ARCHCORE)iperlsys.h : iperlsys.h
880 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
881 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
882$(ARCHCORE)keywords.h : keywords.h
883 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
884 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
885$(ARCHCORE)mg.h : mg.h
886 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
887 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
888$(ARCHCORE)nostdio.h : nostdio.h
889 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
890 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
891$(ARCHCORE)op.h : op.h
892 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
893 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
894$(ARCHCORE)opcode.h : opcode.h
895 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
896 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
424a8fe9
CB
897$(ARCHCORE)opnames.h : opnames.h
898 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
899 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
900$(ARCHCORE)patchlevel.h : patchlevel.h
901 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
902 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
903$(ARCHCORE)perl.h : perl.h
904 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
905 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b 906$(ARCHCORE)perlio.h : perlio.h
3a385817
GS
907 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
908 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
909$(ARCHCORE)perlsdio.h : perlsdio.h
910 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
911 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
912$(ARCHCORE)perlvars.h : perlvars.h
913 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
914 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
915$(ARCHCORE)perly.h : perly.h
916 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
917 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
918$(ARCHCORE)pp.h : pp.h
919 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
920 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
cc391245
CB
921$(ARCHCORE)pp_proto.h : pp_proto.h
922 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
923 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
924$(ARCHCORE)proto.h : proto.h
925 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
926 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
927$(ARCHCORE)regcomp.h : regcomp.h
928 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
929 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
930$(ARCHCORE)regexp.h : regexp.h
931 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
932 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b
CB
933$(ARCHCORE)regnodes.h : regnodes.h
934 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
935 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
936$(ARCHCORE)scope.h : scope.h
937 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
938 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
939$(ARCHCORE)sv.h : sv.h
940 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
941 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
942$(ARCHCORE)thrdvar.h : thrdvar.h
943 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
944 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
945$(ARCHCORE)thread.h : thread.h
946 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
947 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b 948$(ARCHCORE)utf8.h : utf8.h
97abc6ad
HM
949 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
950 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b 951$(ARCHCORE)util.h : util.h
3937c24e
HM
952 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
953 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
954$(ARCHCORE)vmsish.h : vmsish.h
955 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
956 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
424a8fe9 957$(ARCHCORE)warnings.h : warnings.h
cc391245
CB
958 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
959 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
b0d5070b 960$(ARCHCORE)xsub.h : xsub.h
97abc6ad
HM
961 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
962 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
97abc6ad
HM
963$(ARCHCORE)$(DBG)libperl$(OLB) : $(DBG)libperl$(OLB) $(DBG)perlshr_xtras.ts
964 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
965 Copy/Log $(MMS$SOURCE) $(MMS$TARGET)
966$(ARCHCORE)perlshr_attr.opt : $(DBG)perlshr_xtras.ts
967 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
968 Copy/Log perlshr_attr.opt $(MMS$TARGET)
969$(ARCHCORE)$(DBG)perlshr_bld.opt : $(DBG)perlshr_xtras.ts
970 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
971 Copy/Log $(DBG)perlshr_bld.opt $(MMS$TARGET)
972$(ARCHAUTO)time.stamp :
973 @ If F$Search("$(ARCHDIR)auto.dir").eqs."" Then Create/Directory $(ARCHAUTO)
974 @ If F$Search("$(MMS$TARGET)").eqs."" Then Copy/NoConfirm _NLA0: $(MMS$TARGET)
975
976.ifdef LINK_ONLY
977.else
978# We need an action line here for broken older versions of MMS which
979# otherwise conclude that they should be compiling [.x2p]utils.c :-(
3a385817
GS
980#util$(O) : util.c
981# $(CC) $(CORECFLAGS) $(MMS$SOURCE)
97abc6ad 982# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
b0d5070b 983.ifdef SOCKET
8f9bf0bf 984$(SOCKOBJ) : $(SOCKC) $(h)
3a385817 985 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
b0d5070b 986.endif
8f9bf0bf 987av$(O) : av.c $(h)
3a385817 988 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 989deb$(O) : deb.c $(h)
3a385817 990 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 991doio$(O) : doio.c $(h)
3a385817 992 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 993doop$(O) : doop.c $(h)
3a385817 994 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 995dump$(O) : dump.c $(h) $(h6)
3a385817 996 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 997globals$(O) : globals.c $(h)
3a385817 998 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 999gv$(O) : gv.c $(h)
3a385817 1000 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1001hv$(O) : hv.c $(h)
3a385817 1002 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1003mg$(O) : mg.c $(h)
3a385817 1004 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1005miniperlmain$(O) : miniperlmain.c $(h)
3a385817 1006 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1007op$(O) : op.c $(h)
3a385817 1008 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1009perl$(O) : perl.c $(h)
3a385817 1010 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1011perlio$(O) : perlio.c $(h)
3a385817 1012 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1013perlmain$(O) : perlmain.c $(h)
3a385817 1014 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1015perly$(O) : perly.c $(h)
3a385817 1016 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1017pp$(O) : pp.c $(h)
3a385817 1018 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1019pp_ctl$(O) : pp_ctl.c $(h)
3a385817 1020 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1021pp_hot$(O) : pp_hot.c $(h)
3a385817 1022 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1023pp_sys$(O) : pp_sys.c $(h)
3a385817 1024 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1025regcomp$(O) : regcomp.c $(h) $(h6)
3a385817 1026 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1027regexec$(O) : regexec.c $(h) $(h6)
3a385817 1028 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1029run$(O) : run.c $(h)
3a385817 1030 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1031scope$(O) : scope.c $(h)
3a385817 1032 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1033sv$(O) : sv.c $(h)
3a385817 1034 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1035taint$(O) : taint.c $(h)
3a385817 1036 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1037toke$(O) : toke.c $(h) $(h7)
3a385817 1038 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1039universal$(O) : universal.c $(h)
3a385817 1040 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1041utf8$(O) : utf8.c $(h)
3a385817 1042 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1043util$(O) : util.c $(h)
3937c24e 1044 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8f9bf0bf 1045vms$(O) : vms.c $(h)
3a385817
GS
1046 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1047
b0d5070b 1048[.x2p]hash$(O) : [.x2p]hash.c [.x2p]EXTERN.h [.x2p]a2p.h [.x2p]hash.h [.x2p]str.h [.x2p]util.h config.h handy.h vmsish.h $(SOCKH)
3a385817
GS
1049 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
1050
b0d5070b 1051[.x2p]str$(O) : [.x2p]str.c [.x2p]EXTERN.h [.x2p]a2p.h [.x2p]hash.h [.x2p]str.h [.x2p]util.h config.h handy.h vmsish.h $(SOCKH)
3a385817
GS
1052 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
1053
b0d5070b 1054[.x2p]util$(O) : [.x2p]util.c [.x2p]EXTERN.h [.x2p]INTERN.h [.x2p]a2p.h [.x2p]hash.h [.x2p]str.h [.x2p]util.h config.h handy.h vmsish.h $(SOCKH)
3a385817
GS
1055 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
1056
b0d5070b 1057[.x2p]walk$(O) : [.x2p]walk.c [.x2p]EXTERN.h [.x2p]a2p.h [.x2p]hash.h [.x2p]str.h [.x2p]util.h config.h handy.h vmsish.h $(SOCKH)
3a385817
GS
1058 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
1059
97abc6ad
HM
1060# End of automatically generated make dependencies
1061.endif # !LINK_ONLY
1062
1063vmsish.h : [.vms]vmsish.h
1064 Copy/Log/NoConfirm [.vms]vmsish.h []vmsish.h
1065
1066vms.c : [.vms]vms.c
1067 Copy/Log/Noconfirm [.vms]vms.c []
1068
1069$(CRTL) : $(MAKEFILE)
9ef4b0a6 1070 @ @[.vms]genopt "$(CRTL)/Write" "|" "$(LIBS1)|$(FULLLIBS2)|$(SOCKLIB)"
97abc6ad
HM
1071
1072
1073cleanlis :
1074 - If F$Search("*.Lis").nes."" Then Delete/NoConfirm/Log *.Lis;*
1075 - If F$Search("*.CPP").nes."" Then Delete/NoConfirm/Log *.CPP;*
1076 - If F$Search("*.Map").nes."" Then Delete/NoConfirm/Log *.Map;*
1077
1078tidy : cleanlis
1079 - If F$Search("[...]*.Opt;-1").nes."" Then Purge/NoConfirm/Log [...]*.Opt
1080 - If F$Search("[...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [...]*$(O)
1081 - If F$Search("[...]*$(E);-1").nes."" Then Purge/NoConfirm/Log [...]*$(E)
1082 - If F$Search("Config.H;-1").nes."" Then Purge/NoConfirm/Log Config.H
1083 - If F$Search("Config.SH;-1").nes."" Then Purge/NoConfirm/Log Config.SH
1084 - If F$Search("perly.c;-1").nes."" Then Purge/NoConfirm/Log perly.c
1085 - If F$Search("perly.h;-1").nes."" Then Purge/NoConfirm/Log perly.h
1086 - If F$Search("VMSish.H;-1").nes."" Then Purge/NoConfirm/Log VMSish.H
1087 - If F$Search("VMS.C;-1") .nes."" Then Purge/NoConfirm/Log VMS.C
1088 - If F$Search("Perlmain.C;-1") .nes."" Then Purge/NoConfirm/Log Perlmain.C
97abc6ad
HM
1089 - If F$Search("Perlshr_Gbl*.Mar;-1") .nes."" Then Purge/NoConfirm/Log Perlshr_Gbl*.Mar
1090 - If F$Search("[.Ext.DynaLoader]DL_VMS$(O);-1").nes."" Then Purge/NoConfirm/Log [.Ext.DynaLoader]DL_VMS$(O)
1091 - If F$Search("[.Ext.DynaLoader]DL_VMS.C;-1").nes."" Then Purge/NoConfirm/Log [.Ext.DynaLoader]DL_VMS.C
1092 - If F$Search("[.Ext.Socket]Socket.C;-1").nes."" Then Purge/NoConfirm/Log [.Ext.DynaLoader]DL_VMS.C
1093 - If F$Search("[.Ext.Opcode...];-1").nes."" Then Purge/NoConfirm/Log [.Ext.Opcode]
1094 - If F$Search("[.VMS.Ext...]*.C;-1").nes."" Then Purge/NoConfirm/Log [.VMS.Ext...]*.C
1095 - If F$Search("[.VMS.Ext...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [.VMS.Ext...]*$(O)
1096 - If F$Search("[.Lib.Auto...]*.al;-1").nes."" Then Purge/NoConfirm/Log [.Lib.Auto...]*.al
1097 - If F$Search("[.Lib.Auto...]autosplit.ix;-1").nes."" Then Purge/NoConfirm/Log [.Lib.Auto...]autosplit.ix
1098 - If F$Search("[.Lib]DynaLoader.pm;-1").nes."" Then Purge/NoConfirm/Log [.Lib]DynaLoader.pm
25ea24bb 1099 - If F$Search("[.Lib]XSLoader.pm;-1").nes."" Then Purge/NoConfirm/Log [.Lib]XSLoader.pm
97abc6ad
HM
1100 - If F$Search("[.Lib]Socket.pm;-1").nes."" Then Purge/NoConfirm/Log [.Lib]Socket.pm
1101 - If F$Search("[.Lib]Config.pm;-1").nes."" Then Purge/NoConfirm/Log [.Lib]Config.pm
1102 - If F$Search("$(ARCHDIR)Config.pm;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config.pm
1103 - If F$Search("[.lib.ExtUtils]Miniperl.pm").nes."" Then Purge/NoConfirm/Log [.lib.ExtUtils]Miniperl.pm
1104 - If F$Search("[.lib.ExtUtils]XSSymSet.pm").nes."" Then Purge/NoConfirm/Log [.lib.ExtUtils]XSSymSet.pm
1105 - If F$Search("[.Lib.VMS]*.*;-1").nes."" Then Purge/NoConfirm/Log [.Lib.VMS]*.*
1106 - If F$Search("[.Lib.Pod]*.Pod;-1").nes."" Then Purge/NoConfirm/Log [.Lib.Pod]*.Pod
1107 - If F$Search("$(ARCHCORE)*.*").nes."" Then Purge/NoConfirm/Log $(ARCHCORE)*.*
1108 - If F$Search("[.lib]*.com;-1").nes."" Then Purge/NoConfirm/Log [.lib]*.com
1109 - If F$Search("[.pod]*.com;-1").nes."" Then Purge/NoConfirm/Log [.pod]*.com
1110 - If F$Search("[.utils]*.com;-1").nes."" Then Purge/NoConfirm/Log [.utils]*.com
1111 - If F$Search("[.x2p]*.com;-1").nes."" Then Purge/NoConfirm/Log [.x2p]*.com
1112 - If F$Search("[.lib.pod]*.com;-1").nes."" Then Purge/NoConfirm/Log [.lib.pod]*.com
1113
1114clean : tidy
cc391245 1115 - @build_ext "$(dynamic_ext)" "$(MINIPERL_EXE)" "$(MMS)" clean
97abc6ad
HM
1116 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*/Exclude=PerlShr_*.Opt
1117 - If F$Search("[...]*$(O);*") .nes."" Then Delete/NoConfirm/Log [...]*$(O);*
97abc6ad
HM
1118 - If F$Search(F$Parse("Sys$Disk:[]","$(SOCKH)")).nes."" Then Delete/NoConfirm/Log $(SOCKH);*
1119 - If F$Search(F$Parse("Sys$Disk:[]","$(SOCKC)")).nes."" Then Delete/NoConfirm/Log $(SOCKC);*
1120 - If F$Search("perly.c").nes."" Then Delete/NoConfirm/Log perly.c;*
52a043e6 1121 - Copy [.vms]perly_c.vms []perly.c
97abc6ad 1122 - If F$Search("perly.h").nes."" Then Delete/NoConfirm/Log perly.h;*
52a043e6 1123 - Copy [.vms]perly_h.vms []perly.h
97abc6ad
HM
1124 - If F$Search("VMSish.H").nes."" Then Delete/NoConfirm/Log VMSish.H;*
1125 - If F$Search("VMS.C") .nes."" Then Delete/NoConfirm/Log VMS.C;*
1126 - If F$Search("Perlmain.C") .nes."" Then Delete/NoConfirm/Log Perlmain.C;*
97abc6ad
HM
1127 - If F$Search("Perlshr_Gbl*.Mar") .nes."" Then Delete/NoConfirm/Log Perlshr_Gbl*.Mar;*
1128 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
1129 - If F$Search("[.Ext.DynaLoader]DL_VMS$(O)").nes."" Then Delete/NoConfirm/Log [.Ext.DynaLoader]DL_VMS$(O);*
1130 - If F$Search("[.Ext.DynaLoader]DL_VMS.C").nes."" Then Delete/NoConfirm/Log [.Ext.DynaLoader]DL_VMS.C;*
52a043e6 1131 - If F$Search("[.Ext.DynaLoader]DynaLoader.pm").nes."" Then Delete/NoConfirm/Log [.Ext.DynaLoader]DynaLoader.pm;*
25ea24bb 1132 - If F$Search("[.Ext.DynaLoader]XSLoader.pm").nes."" Then Delete/NoConfirm/Log [.Ext.DynaLoader]XSLoader.pm;*
97abc6ad
HM
1133 - If F$Search("[.Ext.Socket]Socket$(O)").nes."" Then Delete/NoConfirm/Log [.Ext.Socket]Socket$(O);*
1134 - If F$Search("[.Ext.Socket]Socket.C").nes."" Then Delete/NoConfirm/Log [.Ext.Socket]Socket.C;*
1135 - If F$Search("[.VMS.Ext...]*.C").nes."" Then Delete/NoConfirm/Log [.VMS.Ext...]*.C;*
1136 - If F$Search("[.VMS.Ext...]*$(O)").nes."" Then Delete/NoConfirm/Log [.VMS.Ext...]*$(O);*
1137 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
1138
cc391245
CB
1139realclean : clean
1140 - @build_ext "$(dynamic_ext)" "$(MINIPERL_EXE)" "$(MMS)" realclean
97abc6ad
HM
1141 - If F$Search("*$(OLB)").nes."" Then Delete/NoConfirm/Log *$(OLB);*
1142 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*
f24bbd7d
HM
1143 - If F$Search("Config.H").nes."" Then Delete/NoConfirm/Log Config.H;*
1144 - If F$Search("Config.SH").nes."" Then Delete/NoConfirm/Log Config.SH;*
52a043e6 1145 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" config
cc391245
CB
1146 - If F$Search("Descrip.MMS").nes."" Then Delete/NoConfirm/Log Descrip.MMS;*
1147 - If F$Search("Build_Ext.Com").nes."" Then Delete/NoConfirm/Log Build_Ext.Com;*
97abc6ad 1148 - $(MINIPERL) -e "use File::Path; rmtree(['lib/auto','lib/VMS','lib/$(ARCH)'],1,0);"
25ea24bb 1149 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
97abc6ad 1150 - If F$Search("[.Lib]DynaLoader.pm").nes."" Then Delete/NoConfirm/Log [.Lib]DynaLoader.pm;*
25ea24bb 1151 - If F$Search("[.Lib]XSLoader.pm").nes."" Then Delete/NoConfirm/Log [.Lib]XSLoader.pm;*
97abc6ad
HM
1152 - If F$Search("[.Lib]Socket.pm").nes."" Then Delete/NoConfirm/Log [.Lib]Socket.pm;*
1153 - If F$Search("[.Lib]Config.pm").nes."" Then Delete/NoConfirm/Log [.Lib]Config.pm;*
1154 - If F$Search("[.Lib]*.com").nes."" Then Delete/NoConfirm/Log [.Lib]*.com;*
52a043e6 1155 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
97abc6ad
HM
1156 - If F$Search("[.utils]*.com").nes."" Then Delete/NoConfirm/Log [.utils]*.com;*
1157 - If F$Search("[.x2p]*.com").nes."" Then Delete/NoConfirm/Log [.x2p]*.com;*
1158 - If F$Search("$(ARCHDIR)Config.pm").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config.pm;*
1159 - If F$Search("[.lib.ExtUtils]Miniperl.pm").nes."" Then Delete/NoConfirm/Log [.lib.ExtUtils]Miniperl.pm;*
1160 - If F$Search("[.lib.ExtUtils]XSSymSet.pm").nes."" Then Delete/NoConfirm/Log [.lib.ExtUtils]XSSymSet.pm;*
1161 - If F$Search("[.lib.pod]*.pod").nes."" Then Delete/NoConfirm/Log [.lib.pod]*.pod;*
1162 - If F$Search("[.lib.pod]perldoc.com").nes."" Then Delete/NoConfirm/Log [.lib.pod]perldoc.com;*
1163 - If F$Search("[.lib.pod]pod2*.com").nes."" Then Delete/NoConfirm/Log [.lib.pod]pod2*.com;*
1164 - If F$Search("[.t.lib]vms*.t").nes."" Then Delete/NoConfirm/Log [.t.lib]vms*.t;*
1165 - If F$Search("[...]*$(E)").nes."" Then Delete/NoConfirm/Log [...]*$(E);*
52a043e6 1166 - If F$Search("[.vms]Perl_Setup.Com").nes."" Then Delete/NoConfirm/Log [.vms]Perl_Setup.Com;*
97abc6ad
HM
1167
1168cleansrc : clean
cc391245 1169!GROK!THIS!
97abc6ad
HM
1170 - If F$Search("*.C;-1").nes."" Then Purge/NoConfirm/Log *.C
1171 - If F$Search("*.H;-1").nes."" Then Purge/NoConfirm/Log *.H
1172 - If F$Search("*.VMS;-1").nes."" Then Purge/NoConfirm/Log *.VMS
1173 - If F$Search("[.VMS]$(MAKEFILE);-1").nes."" Then Purge/NoConfirm/Log [.VMS]$(MAKEFILE)
1174 - If F$Search("[.VMS]*.C;-1").nes."" Then Purge/NoConfirm/Log [.VMS]*.C
1175 - If F$Search("[.VMS]*.H;-1").nes."" Then Purge/NoConfirm/Log [.VMS]*.H
1176 - If F$Search("[.VMS]*.Pl;-1").nes."" Then Purge/NoConfirm/Log [.VMS]*.Pl
1177 - If F$Search("[.VMS]*.VMS;-1").nes."" Then Purge/NoConfirm/Log [.VMS]*.VMS
1178 - If F$Search("[.VMS...]*.pm;-1").nes."" Then Purge/NoConfirm/Log [.VMS...]*.pm
1179 - If F$Search("[.VMS...]*.xs;-1").nes."" Then Purge/NoConfirm/Log [.VMS...]*.xs