This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Convert some macros to use inRANGE
[perl5.git] / vms / descrip_mms.template
CommitLineData
97abc6ad
HM
1!GROK!THIS!
2# Descrip.MMS for perl5 on VMS
1f74f634 3# Last revised 5-Dec-2001 by Craig Berry -- craigberry@mac.com
97abc6ad
HM
4#
5#: This file uses MMS syntax, and can be processed using DEC's MMS product,
6#: or the free MMK clone (available by ftp at ftp.spc.edu). If you want to
7#: a Unix-style MAKE tool, run this file through mms2make.pl, which should
b4bc034f 8#: be found in the same directory as this file.
97abc6ad
HM
9#:
10#: Lines beginning with "#:" will be removed by mms2make.pl when converting
11#: this file to MAKE syntax.
97abc6ad
HM
12#
13# tidy -- purge files generated by executing this file
14# clean -- remove all intermediate (e.g. object files, C files generated
15# during build) files generated by executing this file,
c2b27382 16# but leave 'installable' files (images, library) intact
97abc6ad 17# realclean -- remove all files generated by executing this file
c2b27382 18# cleansrc -- 'realclean' + purge *.c,*.h,descrip.mms
97abc6ad
HM
19# crtl.opt -- compiler-specific linker options file (made automatically)
20#
21
22#### Start of system configuration section. ####
23
24~DECC~
7558ebc2 25~DECCXX~
97abc6ad
HM
26~GNUC~
27~ARCH-TYPE~ = 1
28~THREAD~
29~SOCKET~
429a5e67
DS
30~MALLOC~
31~CC~
3f39e13a
CB
32~MTK~
33~MTU~
498336ed 34~FLAGS~
e0261ef8 35~LARGEFILE~
44caa20c 36~ARCHNAME~
9152021d 37~USEVMSDEBUG~
b545184e 38~PREFIX~
97abc6ad
HM
39
40#: >>>>> Architecture-specific options <<<<<
86da1428
CB
41.ifdef IXE
42O = .ibj
43OLB = .ilb
44E = .ixe
45.else
97abc6ad
HM
46.ifdef AXE
47# File type to use for object files
48O = .abj
49# File type to use for object libraries
50OLB = .alb
51# File type to use for executable images
52E = .axe
53.else
54# File type to use for object files
55O = .obj
56# File type to use for object libraries
57OLB = .olb
58# File type to use for executable images
59E = .exe
60.endif
86da1428 61.endif
97abc6ad 62
86da1428 63.ifdef __IA64__
86da1428
CB
64OBJVAL = $(O)
65.else
97abc6ad 66.ifdef __AXP__
97abc6ad
HM
67OBJVAL = $(O)
68.else
97abc6ad
HM
69OBJVAL = $(MMS$TARGET_NAME)$(O)
70.endif
86da1428 71.endif
97abc6ad 72
85988417 73PERL_VERSION = ~PV~
97abc6ad 74
429a5e67 75.ifdef MALLOC
b0d5070b
CB
76MALLOC_O = malloc$(O)
77MALLOC_C = malloc$(C)
429a5e67
DS
78.endif
79
97abc6ad
HM
80.ifdef DECC_SOCKETS
81SOCKET=1
82.endif
83
44caa20c
CB
84ARCHDIR = [.lib.$(ARCHNAME).$(PERL_VERSION)]
85ARCHCORE = [.lib.$(ARCHNAME).$(PERL_VERSION).CORE]
86ARCHAUTO = [.lib.$(ARCHNAME).$(PERL_VERSION).auto]
97abc6ad 87
97abc6ad
HM
88#: >>>>>Compiler-specific options <<<<<
89.ifdef GNUC
90.first
91 @ If F$TrnLnm("Sys").eqs."" Then Define/NoLog SYS GNU_CC_Include:[VMS]
92CC = gcc
97abc6ad
HM
93# -fno-builtin avoids bug in gcc up to version 2.6.2 which can destroy
94# data when memcpy() is called on large (>64 kB) blocks of memory
95# (fixed in gcc 2.6.3)
96XTRACCFLAGS = /Obj=$(MMS$TARGET_NAME)$(O)/NoCase_Hack/Optimize=2
97DBGSPECFLAGS =
429a5e67 98XTRADEF =
97abc6ad
HM
99XTRAOBJS =
100LIBS1 = GNU_CC:[000000]GCCLIB.OLB/Library
101LIBS2 = Sys$Share:VAXCRTL/Shareable
102POSIX =
103.else
104XTRAOBJS =
105LIBS1 = $(XTRAOBJS)
6fb2e99a 106DBGSPECFLAGS = /Show=(expansion,include)/machine
97abc6ad
HM
107# Some versions of DECCRTL on AXP have a bug in chdir() which causes the change
108# to persist after the image exits, even when this was not requested, iff
109# SYSNAM is enabled. This is fixed in CSC Patch # AXPACRT04_061, but turning
110# off SYSNAM for the MM[SK] subprocess doesn't hurt anything, so we do it
111# just in case.
112.first
97abc6ad
HM
113 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").nes."" Then Define/NoLog SYS DECC$System_Include
114.ifdef __AXP__
787c52d8 115 @ Set Process/Privilege=(NoSYSNAM)
97abc6ad
HM
116 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS Sys$Library
117.else
118 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").eqs."" Then Define/NoLog SYS DECC$Library_Include
119.endif
120
7558ebc2
PP
121.ifdef DECCXX
122XTRACCFLAGS = /Include=[]/Standard=ANSI/Prefix=All/Obj=$(OBJVAL)
123.else
97abc6ad 124XTRACCFLAGS = /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=$(OBJVAL)
7558ebc2 125.endif
97abc6ad
HM
126XTRADEF =
127POSIX = POSIX
97abc6ad
HM
128.endif
129
97abc6ad
HM
130#: >>>>> Configuration options <<<<<
131#: __DEBUG__: builds images with full VMS debugger support
132.ifdef __DEBUG__
133DBGCCFLAGS = /List/Debug/NoOpt$(DBGSPECFLAGS)
7ced74dd 134DBGLINKFLAGS = /Trace/Debug/Map=$(MMS$TARGET_NAME).MAP/Full/Cross
97abc6ad
HM
135DBG = DBG
136.else
137DBGCCFLAGS = /NoList
138DBGLINKFLAGS = /NoTrace/NoMap
139DBG =
140.endif
141
97abc6ad
HM
142.ifdef THREADED
143THREADDEF =
144THREAD = THREAD
145.endif
146
147.ifdef OLDTHREADED
429a5e67 148THREADDEF =
97abc6ad 149THREAD = THREAD
9ef4b0a6 150THRLIBS1 = sys$share:cma$lib_shr/share|sys$share:cma$rtl/share
97abc6ad 151.ifdef __AXP__
9ef4b0a6 152THRLIBS2 = sys$share:cma$open_lib_shr/share|sys$share:cma$open_rtl/share
97abc6ad
HM
153.endif
154.endif
155
3f39e13a
CB
156.ifdef MTU
157.ifdef MTK
158MTHREADLINKFLAGS = /THREADS=(MULTIPLE_KERNEL,UPCALLS)
159.else
160MTHREADLINKFLAGS = /THREADS=UPCALLS
161.endif
162.else
163MTHREADLINKFLAGS =
164.endif
165
97abc6ad 166# C preprocessor manifest "DEBUGGING" ==> perl -D, not the VMS debugger
e0261ef8 167.IFDEF LARGEFILE
96021e87 168CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=$(LARGEFILE)
96021e87 169CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=(PERL_CORE,$(LARGEFILE))
e0261ef8 170.ELSE
498336ed 171CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)
e0261ef8
CB
172CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=PERL_CORE
173.ENDIF
174
97abc6ad
HM
175LINKFLAGS = $(DBGLINKFLAGS)
176
177MAKE = $(MMS)
178MAKEFILE = Descrip.MMS # this file
179NOOP = continue
180
181# Macros to invoke a copy of miniperl during the build. Targets which
182# are built using these macros should depend on $(MINIPERL_EXE)
183MINIPERL_EXE = Sys$Disk:[]miniperl$(E)
f6b3c354 184MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]"
dfe814dc 185MINIPERLQ = MCR $(MINIPERL_EXE) ""-I[.lib]""
29637182 186XSUBPP = $(MINIPERL) "-I[.ext.re]" [.lib.extutils]xsubpp -noprototypes
97abc6ad
HM
187# Macro to invoke a preexisting copy of Perl. This is used to regenerate
188# some header files when rebuilding Perl, but premade versions are provided
189# in the distribution, so it's OK if this doesn't work; it's here to make
190# life easier for those who modify Perl and rebuild it.
191INSTPERL = perl
7eb47696
NC
192# Macros to invoke a copy of perl during the build. Targets which
193# are built using these macros should depend on $(PERL_EXE) EXT
bfeb8220
CB
194.IFDEF __DEBUG__
195PERL_EXE = Sys$Disk:[]n$(DBG)perl$(E)
196.ELSE
7eb47696 197PERL_EXE = Sys$Disk:[]perl$(E)
bfeb8220 198.ENDIF
7eb47696 199PERL = MCR $(PERL_EXE) "-I[.lib]"
97abc6ad
HM
200
201# Space-separated list of "static" extensions to build into perlshr (case counts).
202MYEXT = DynaLoader
203# object files for these extensions; the trailing comma is required if
204# there are any object files specified
205# These must be built separately, or you must add rules below to build them
859ef0cd 206myextobj = DynaLoader$(O),
97abc6ad
HM
207EXT = $(MYEXT)
208extobj = $(myextobj)
97abc6ad 209
429a5e67
DS
210.ifdef LIBS2
211.else
212LIBS2=
213.endif
97abc6ad 214
9ef4b0a6
BH
215.ifdef THRLIBS1
216.else
217THRLIBS1=
218.endif
219
220.ifdef THRLIBS2
221.else
222THRLIBS2=
223.endif
224
225FULLLIBS2 = $(LIBS2)|$(THRLIBS1)|$(THRLIBS2)
226
97abc6ad
HM
227#### End of system configuration section. ####
228
a55c5245 229c0 = $(MALLOC_C) av.c caretx.c deb.c doio.c doop.c dquote.c dump.c globals.c gv.c hv.c mro_core.c
7ee2227d 230c1 = mg.c locale.c mathoms.c miniperlmain.c numeric.c op.c pad.c perl.c perlapi.c perlio.c
10bc17b6 231c2 = perly.c pp.c pp_ctl.c pp_hot.c pp_pack.c pp_sort.c pp_sys.c regcomp.c regexec.c reentr.c
f832b29a 232c3 = run.c scope.c sv.c taint.c time64.c toke.c universal.c utf8.c util.c vms.c keywords.c
b0d5070b
CB
233c = $(c0) $(c1) $(c2) $(c3)
234
5c9818e9 235obj0 = perl$(O)
495173e1 236obj1 = $(MALLOC_O) av$(O) caretx$(O) deb$(O) doio$(O) doop$(O) dquote$(O) dump$(O) mro_core$(O) globals$(O) gv$(O) hv$(O)
cfc889ad 237obj2 = keywords$(O) locale$(O) mathoms$(O) mg$(O) miniperlmain$(O) numeric$(O) op$(O) pad$(O) perlapi$(O) perlio$(O)
5c9818e9 238obj3 = perly$(O) pp$(O) pp_ctl$(O) pp_hot$(O) reentr$(O) pp_pack$(O) pp_sort$(O) pp_sys$(O) regcomp$(O)
f832b29a 239obj4 = regexec$(O) run$(O) scope$(O) sv$(O) taint$(O) time64$(O) toke$(O) universal$(O) utf8$(O) util$(O) vms$(O)
5c9818e9
CB
240
241mini_obj = perlmini$(O) $(obj1) $(obj2) $(obj3) $(obj4)
b0d5070b
CB
242obj = $(obj0) $(obj1) $(obj2) $(obj3) $(obj4)
243
63e9201e 244h0 = av.h config.h cop.h cv.h embed.h embedvar.h
02e4b6fe 245h1 = EXTERN.h form.h gv.h handy.h hv.h l1_char_class_tab.h INTERN.h intrpvar.h
8b09643d
NC
246h2 = iperlsys.h keywords.h mydtrace.h mg.h mg_vtable.h nostdio.h op.h
247h3 = op_reg_common.h opcode.h opnames.h overload.h pad.h parser.h patchlevel.h
248h4 = perl.h perlapi.h perlio.h perlsdio.h perlvars.h perly.h
66b82e1f 249h5 = pp.h pp_proto.h proto.h regcomp.h regexp.h regnodes.h scope.h
ef4abe76
NC
250h6 = sv.h thread.h utf8.h util.h vmsish.h warnings.h xsub.h
251h = $(h0) $(h1) $(h2) $(h3) $(h4) $(h5) $(h6)
787c52d8 252
787c52d8 253acopt = $(ARCHCORE)perlshr_attr.opt $(ARCHCORE)$(DBG)perlshr_bld.opt
5c0877fa 254ac = archcore_includes.ts $(acopt)
c05f8f3d 255
9387abf8
NC
256generated_headers = uudmap.h bitcount.h mg_data.h
257
97abc6ad
HM
258CRTL = []crtl.opt
259CRTLOPTS =,$(CRTL)/Options
260
261.SUFFIXES
262
263.ifdef LINK_ONLY
264.else
265.SUFFIXES $(O) .c .xs
266
267.xs.c :
268 $(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
269
97abc6ad
HM
270.c$(O) :
271 $(CC) $(CFLAGS) $(MMS$SOURCE)
272
273.xs$(O) :
274 $(XSUBPP) $(MMS$SOURCE) >$(MMS$SOURCE_NAME).c
275 $(CC) $(CFLAGS) $(MMS$SOURCE_NAME).c
276.endif
277
7056a12d
CB
278# Unicode data files generated by mktables
279unidatafiles = lib/unicore/Decomposition.pl lib/unicore/TestProp.pl \
280 lib/unicore/CombiningClass.pl lib/unicore/Name.pl \
281 lib/unicore/UCD.pl lib/unicore/Name.pm \
282 lib/unicore/Heavy.pl lib/unicore/mktables.lst
283
ca12659b
NC
284# Directories of Unicode data files generated by mktables
285unidatadirs = lib/unicore/To lib/unicore/lib
286
97abc6ad 287# Modules which must be installed before we can build extensions
611495fa 288LIBPREREQ = $(ARCHDIR)Config.pm $(ARCHDIR)Config_heavy.pl $(ARCHDIR)vmspipe.com
97abc6ad 289
2560602c 290utils1 = [.utils]perldoc.com [.utils]h2ph.com
c9dab4e9 291utils2 = [.utils]h2xs.com [.utils]libnetcfg.com [.lib]perlbug.com [.utils]json_pp.com
d658129c 292utils3 = [.utils]perlivp.com [.lib]splain.com [.utils]pl2pm.com [.utils]xsubpp.com [.utils]pod2html.com [.utils]instmodsh.com
bb4e9162 293utils4 = [.utils]enc2xs.com [.utils]piconv.com [.utils]cpan.com [.utils]prove.com [.utils]ptar.com [.utils]ptardiff.com [.utils]shasum.com
59658819 294utils5 = [.utils]corelist.com [.utils]ptargrep.com [.utils]zipdetails.com [.utils]encguess.com
97abc6ad 295
bfeb8220 296all : base extras archcorefiles preplibrary [.pod]perltoc.pod
1b2d7687
PP
297 @ QUALIFIERS := $(MMSQUALIFIERS)
298 @ QUALIFIERS = QUALIFIERS - """" - """"
dfe814dc 299 @ write sys$output " "
1b2d7687 300 @ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
9c3905ef 301
5c9818e9 302git_version.h : $(MINIPERL_EXE) make_patchnum.pl
16ad9bfa 303 $(MINIPERL) make_patchnum.pl
05b0cfd1 304
f952ce75 305base : miniperl git_version.h nonxsext perl
97abc6ad 306 @ $(NOOP)
33c64ab2 307extras : dynext libmods utils extra.pods
97abc6ad
HM
308 @ $(NOOP)
309libmods : $(LIBPREREQ)
310 @ $(NOOP)
bb4e9162 311utils : $(utils1) $(utils2) $(utils3) $(utils4) $(utils5)
97abc6ad 312 @ $(NOOP)
414b89cc
CB
313extra.pods : miniperl
314 @ @extra_pods.com
97abc6ad 315
ab6f2e91 316PERLDELTA_CURRENT = [.pod]perl52910delta.pod
600dcb9e
CB
317
318$(PERLDELTA_CURRENT) : [.pod]perldelta.pod
c6568584 319 Copy/NoConfirm/Log $(MMS$SOURCE) $(PERLDELTA_CURRENT)
1400179b 320
6e2c8928
NC
321[.pod]perlmodlib.pod : [.pod]perlmodlib.pl MANIFEST $(MINIPERL_EXE)
322 $(MINIPERL) [.pod]perlmodlib.pl "-q"
323
54df2684
NC
324[.pod]perlapi.pod : [.pod]perlintern.pod
325 @ $(NOOP)
326
30a06a3a
CB
327[.pod]perlintern.pod : embed.fnc autodoc.pl $(MINIPERL_EXE)
328 $(MINIPERL) autodoc.pl
329
600dcb9e 330[.pod]perltoc.pod : $(PERLDELTA_CURRENT) [.pod]perlapi.pod [.pod]perlintern.pod [.pod]perlmodlib.pod extra.pods $(PERL_EXE)
bfeb8220 331 @ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
b78c1104 332 $(PERL) "-f" [.pod]buildtoc "-q"
97abc6ad 333
7e2254de 334archcorefiles : $(ac) $(ARCHAUTO)time.stamp
97abc6ad
HM
335 @ $(NOOP)
336
cb251201
NC
337# See the comment in Makefile.SH explaining this seemingly cranky ordering
338$(MINIPERL_EXE) : [.lib]buildcustomize.pl
339 @ $(NOOP)
5e4c4c91 340
93d6612c 341vmspipe.com : [.vms]vmspipe.com
1f74f634 342 Copy/NoConfirm/Log $(MMS$SOURCE) []
93d6612c
CB
343
344miniperl : $(DBG)miniperl$(E) vmspipe.com
97abc6ad 345 @ Continue
cb251201 346
2d11a7e9 347[.lib]buildcustomize.pl : miniperlmain$(O), $(DBG)libperlmini$(OLB) $(CRTL) write_buildcustomize.pl
cb251201 348 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MINIPERL_EXE) miniperlmain$(O), $(DBG)libperlmini$(OLB)/Library/Include=globals $(CRTLOPTS)
b78ac715 349 $(MINIPERL) "-f" write_buildcustomize.pl
cb251201 350
5c9818e9
CB
351$(DBG)miniperl$(E) : miniperlmain$(O), $(DBG)libperlmini$(OLB) $(CRTL)
352 Link $(LINKFLAGS)/Trace/Exe=$(MMS$TARGET) miniperlmain$(O), $(DBG)libperlmini$(OLB)/Library/Include=globals $(CRTLOPTS)
97abc6ad
HM
353
354$(DBG)libperl$(OLB) : $(obj)
355 @ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
8f9bf0bf 356 Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
97abc6ad 357
5c9818e9
CB
358$(DBG)libperlmini$(OLB) : $(mini_obj)
359 @ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
360 Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
361
7b4d95f7 362perlmain.c : miniperlmain.c $(MINIPERL_EXE) nonxsext
b4999888 363 $(MINIPERL) -"MExtUtils::Miniperl" -e "writemain(\'perlmain.c', @ARGV)" "$(EXT)"
97abc6ad 364
97abc6ad
HM
365.ifdef __DEBUG__
366# Link an extra perl that doesn't invoke the debugger
1f052492 367perl : $(DBG)perl$(E)
3f39e13a 368 Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/NoDebug/Trace/NoMap/NoCross/NoFull/Exe=N$(DBG)perl$(E) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
97abc6ad 369.else
1f052492 370perl : $(DBG)perl$(E)
97abc6ad
HM
371 @ Continue
372.endif
373
374$(DBG)perl$(E) : perlmain$(O), $(DBG)perlshr$(E), $(MINIPERL_EXE)
375 @ @[.vms]genopt "PerlShr.Opt/Write" "|" "''F$Environment("Default")'$(DBG)PerlShr$(E)/Share"
3f39e13a 376 Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/Exe=$(MMS$TARGET) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
97abc6ad 377
97abc6ad
HM
378$(DBG)perlshr$(E) : $(DBG)libperl$(OLB) $(extobj) $(DBG)perlshr_xtras.ts
379 Link $(LINKFLAGS)/Share=$(MMS$TARGET) $(extobj) []$(DBG)perlshr_bld.opt/Option, perlshr_attr.opt/Option
380
5c9818e9
CB
381perlmini.c : perl.c
382 @ IF F$SEARCH("$(MMS$TARGET)") .NES. "" THEN DELETE/NOCONFIRM/LOG $(MMS$TARGET);*
383 @ COPY/NOCONFIRM _NLA0: $(MMS$TARGET)
384 @ SET FILE /ATTRIBUTES=RFM:STMLF $(MMS$TARGET)
385 @ OPEN/APPEND perlmini $(MMS$TARGET)
386 @ WRITE perlmini "#define PERL_IS_MINIPERL"
387 @ CLOSE perlmini
388 @ APPEND/NOCONFIRM/LOG $(MMS$SOURCE) $(MMS$TARGET)
389
390perlmini$(O) : perlmini.c
391 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
392
6f83ef0e 393bitcount.h mg_data.h : uudmap.h
45b279ec 394 @ $(NOOP)
6999193b 395
92d23424 396uudmap.h : generate_uudmap$(E)
9387abf8 397 MCR SYS$DISK:[]generate_uudmap$(E) $(generated_headers)
9444d213 398
c3301a92 399generate_uudmap$(E) : generate_uudmap$(O) $(CRTL)
9444d213
NC
400 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MMS$TARGET) generate_uudmap$(O) $(CRTLOPTS)
401
6f83ef0e 402generate_uudmap$(O) : generate_uudmap.c mg_raw.h
b50d78f7
CB
403 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
404
97abc6ad 405# The following files are built in one go by gen_shrfls.pl:
054a3baf 406# perlshr_attr.opt, $(DBG)perlshr_bld.opt - AXP and IA64
93ea32b8 407# The song and dance with gen_shrfls.opt accommodates DCL's line length limit.
97abc6ad 408$(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL)
93ea32b8 409 @ $(MINIPERL) makedef.pl "PLATFORM=vms" > makedef.lis
b3ecbfd3
CB
410 @ $(MINIPERLQ) -e "print join('|',@ARGV),'|';" "$(CC)$(CFLAGS)" >gen_shrfls.opt
411 @ $(MINIPERLQ) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt
97abc6ad
HM
412 $(MINIPERL) [.vms]gen_shrfls.pl -f gen_shrfls.opt
413 @ Delete/NoLog/NoConfirm gen_shrfls.opt;
414 @ If F$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;*
415 @ Copy _NLA0: $(DBG)perlshr_xtras.ts
97abc6ad 416
1f74f634 417$(ARCHDIR)Config.pm : [.lib]Config.pm
97abc6ad 418 Create/Directory $(ARCHDIR)
1f74f634 419 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
97abc6ad 420
2d9d8159
NC
421$(ARCHDIR)Config_heavy.pl : [.lib]Config_heavy.pl
422 Create/Directory $(ARCHDIR)
423 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
424
1f74f634 425[.lib]Config.pm : config.h $(MINIPERL_EXE)
97abc6ad
HM
426 $(MINIPERL) ConfigPM.
427
93d6612c 428$(ARCHDIR)vmspipe.com : vmspipe.com
1f74f634 429 Copy $(MMS$SOURCE) $(ARCHDIR)
93d6612c 430
3dc3a597 431unidatafiles.ts : $(MINIPERL_EXE) [.lib]Config.pm [.lib.unicore]mktables nonxsext
3df51b85 432 $(MINIPERL) [.lib.unicore]mktables "-C" [.lib.unicore] "-P" [.pod] "-makelist" "-maketest" "-p"
23b62609
CB
433 @ If F$Search("$(MMS$TARGET)").nes."" Then Delete/NoLog/NoConfirm $(MMS$TARGET);*
434 @ Copy/NoConfirm _NLA0: $(MMS$TARGET)
ca12659b 435
2d11a7e9 436DynaLoader$(O) : [.lib]buildcustomize.pl $(ARCHDIR)Config.pm $(MINIPERL_EXE)
859ef0cd 437 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "DynaLoader"
25ea24bb 438
859ef0cd 439dynext : $(LIBPREREQ) $(DBG)perlshr$(E) unidatafiles.ts DynaLoader$(O) preplibrary makeppport $(MINIPERL_EXE)
a34ce875
NC
440 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--dynamic" "--static"
441
291c8c21 442nonxsext : $(LIBPREREQ) preplibrary $(MINIPERL_EXE) [.pod]perlfunc.pod
a34ce875 443 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--nonxs"
97abc6ad 444
4403bf93 445[.utils]perldoc.com : [.utils]perldoc.PL $(ARCHDIR)Config.pm
08da30e0 446 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad 447
cdf8b154 448[.utils]perlivp.com : [.utils]perlivp.PL $(ARCHDIR)Config.pm
08da30e0 449 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
cdf8b154 450
2bfebb05 451[.utils]cpan.com : [.utils]cpan.PL $(ARCHDIR)Config.pm
08da30e0 452 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
2bfebb05 453
4b618757 454[.utils]prove.com : [.utils]prove.PL $(ARCHDIR)Config.pm
08da30e0 455 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
291d3373
RGS
456
457[.utils]ptar.com : [.utils]ptar.PL $(ARCHDIR)Config.pm
08da30e0 458 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
4b618757 459
b8669316 460[.utils]ptardiff.com : [.utils]ptardiff.PL $(ARCHDIR)Config.pm
08da30e0 461 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
b8669316 462
deabda19
CBW
463[.utils]ptargrep.com : [.utils]ptargrep.PL $(ARCHDIR)Config.pm
464 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
465
3ddf9550 466[.utils]shasum.com : [.utils]shasum.PL $(ARCHDIR)Config.pm
08da30e0 467 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
3ddf9550 468
6efb3e4d 469[.utils]corelist.com : [.utils]corelist.PL $(ARCHDIR)Config.pm
08da30e0 470 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
6efb3e4d 471
d9f91944
CB
472[.utils]json_pp.com : [.utils]json_pp.PL $(ARCHDIR)Config.pm
473 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
474
14d70106 475[.utils]enc2xs.com : [.utils]enc2xs.PL $(ARCHDIR)Config.pm
08da30e0 476 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
59658819
CBW
477
478[.utils]encguess.com : [.utils]encguess.PL $(ARCHDIR)Config.pm
479 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
14d70106 480
97abc6ad 481[.utils]h2ph.com : [.utils]h2ph.PL $(ARCHDIR)Config.pm
08da30e0 482 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
483
484[.utils]h2xs.com : [.utils]h2xs.PL $(ARCHDIR)Config.pm
08da30e0 485 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad 486
88be34b6 487[.utils]instmodsh.com : [.utils]instmodsh.PL $(ARCHDIR)Config.pm
08da30e0 488 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
88be34b6 489
5fa137f1 490[.utils]libnetcfg.com : [.utils]libnetcfg.PL $(ARCHDIR)Config.pm
08da30e0 491 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
5fa137f1 492
97abc6ad 493[.lib]perlbug.com : [.utils]perlbug.PL $(ARCHDIR)Config.pm
08da30e0 494 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
1f74f634 495 Copy/NoConfirm/Log [.utils]perlbug.com [.lib]
97abc6ad 496
14d70106 497[.utils]piconv.com : [.utils]piconv.PL $(ARCHDIR)Config.pm
08da30e0 498 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
14d70106 499
97abc6ad 500[.utils]pl2pm.com : [.utils]pl2pm.PL $(ARCHDIR)Config.pm
08da30e0 501 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
502
503[.lib]splain.com : [.utils]splain.PL $(ARCHDIR)Config.pm
08da30e0 504 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
1f74f634 505 Copy/NoConfirm/Log [.utils]splain.com [.lib]
97abc6ad 506
798fd3e2 507[.utils]xsubpp.com : [.utils]xsubpp.PL $(ARCHDIR)Config.pm nonxsext
08da30e0 508 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
5fa137f1 509
08ad9465
CBW
510[.utils]zipdetails.com : [.utils]zipdetails.PL $(ARCHDIR)Config.pm nonxsext
511 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
512
d658129c
FR
513[.utils]pod2html.com : [.utils]pod2html.PL $(ARCHDIR)Config.pm nonxsext
514 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
515
9b5878df 516preplibrary : $(MINIPERL_EXE) $(LIBPREREQ)
c43be3e8 517 @ $(NOOP)
97abc6ad 518
d1a21686 519makeppport : $(MINIPERL_EXE) $(ARCHDIR)Config.pm nonxsext
42e07562
MHM
520 $(MINIPERL) mkppport
521
bfeb8220 522install.html : [.pod]perltoc.pod
b545184e 523 @ @perl_setup.com "$(PREFIX)"
c645ec3f
GS
524 @ If F$Search("perl_root:[lib]html.dir").eqs."" Then Create/Directory perl_root:[lib.html]
525 $(MINIPERL) installhtml. "--podroot=. --recurse --htmldir=/perl_root/lib/html --htmlroot=.. --verbose"
b4bc034f 526
97abc6ad
HM
527printconfig :
528 @ @[.vms]make_command $(MMS) $(MMSQUALIFIERS) $(MMSTARGETS)
046cc26c 529 @ @[.vms]myconfig "$(CC)" "$(CFLAGS)" "$(LINKFLAGS)" "$(LIBS1)" "$(FULLLIBS2)" "$(EXT)" "$(DBG)"
97abc6ad 530
424a8fe9 531# The following files are generated automatically
d500e60d 532# embed.pl: proto.h embed.h embedvar.h perlapi.h perlapi.c
897d3989 533# opcode.pl: opcode.h opnames.h pp_proto.h
5f286eee
CB
534# regcomp.pl: regnodes.h
535# warnings.pl: warnings.h lib/warnings.pm
97abc6ad
HM
536# The correct versions should be already supplied with the perl kit,
537# in case you don't have perl available.
5f286eee
CB
538# To force them to be regenerated, run
539# perl regen.pl
540# with your existing copy of perl
541# (make regen_headers is kept for backwards compatibility)
542
543regen :
544 $(INSTPERL) regen.pl
545
97abc6ad 546regen_headers :
5f286eee 547 $(INSTPERL) regen.pl -v
97abc6ad 548
97abc6ad
HM
549.ifdef LINK_ONLY
550.else
787c52d8 551perly$(O) : perly.c, perly.h, $(h)
97abc6ad
HM
552.endif
553
7558ebc2
PP
554check : test
555 @ Continue
556
2d11a7e9 557test : all
20533b5a 558 @ PERL_TEST_DRIVER == "TEST."
97386f52 559 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
40996b78
AT
560 @ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
561
2d11a7e9 562test_harness : all
20533b5a 563 @ PERL_TEST_DRIVER == "harness."
97386f52 564 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
dfe814dc 565 @ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
97abc6ad 566
2d11a7e9 567minitest : $(MINITEST_EXE) unidatafiles.ts
68ccb645 568 @ PERL_TEST_DRIVER == "minitest"
97386f52 569 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
68ccb645 570
3a385817
GS
571# install ought not need a source, but it doesn't work if one's not
572# there. Go figure...
5ea6993d 573install : $(PERL_EXE)
b545184e 574 @ @perl_setup.com "$(PREFIX)"
29637182 575 If F$TrnLnm("Sys") .nes. "" Then Deass SYS
5ea6993d
CB
576 @ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
577 $(PERL) installperl
97abc6ad
HM
578
579archify : all
44caa20c 580 @ Write Sys$Output "Moving files to architecture-specific locations for $(ARCHNAME)"
97abc6ad
HM
581 archroot = "$(ARCHAUTO)" - "]" + "...]"
582 Backup/Log/Verify [.lib.auto...]*.*;/Exclude=(*.al,*.ix) 'archroot'/New_Version
583 Delete/Log/NoConfirm [.lib.auto...]*.*;*/exclude=(*.al,*.ix,*.dir)
584 Delete/Log/NoConfirm [.lib]Config.pm;*
2d9d8159 585 Delete/Log/NoConfirm [.lib]Config_heavy.pl;*
e5a8a0fb
LT
586 Copy/Log/NoConfirm *$(E);, $(ARCHDIR)
587 Delete/Log/NoConfirm Perl*$(E);*
1b2d7687
PP
588 @ QUALIFIERS := $(MMSQUALIFIERS)
589 @ QUALIFIERS = QUALIFIERS - """" - """"
97abc6ad
HM
590 @ Write Sys$Output "Architecture-specific setup completed."
591 @ Write Sys$Output "Before building for another architecture, be sure to"
1b2d7687 592 @ Write Sys$Output " 1. $(MMS)''QUALIFIERS' clean"
97abc6ad
HM
593 @ Write Sys$Output " 2. Delete Miniperl$(E)"
594
595# CORE subset for MakeMaker, so we can build Perl without sources
5c0877fa
CB
596
597archcore_includes.ts :
97abc6ad 598 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
5c0877fa
CB
599 Copy/NoConfirm/Log *.h $(ARCHCORE)
600 @ Copy _NLA0: $(MMS$TARGET)
97abc6ad
HM
601$(ARCHCORE)$(DBG)libperl$(OLB) : $(DBG)libperl$(OLB) $(DBG)perlshr_xtras.ts
602 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
1f74f634 603 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHCORE)
97abc6ad
HM
604$(ARCHCORE)perlshr_attr.opt : $(DBG)perlshr_xtras.ts
605 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
d510da7a 606 Copy/NoConfirm/Log perlshr_attr.opt $(ARCHCORE)
97abc6ad
HM
607$(ARCHCORE)$(DBG)perlshr_bld.opt : $(DBG)perlshr_xtras.ts
608 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
1f74f634 609 Copy/NoConfirm/Log $(DBG)perlshr_bld.opt $(ARCHCORE)
97abc6ad
HM
610$(ARCHAUTO)time.stamp :
611 @ If F$Search("$(ARCHDIR)auto.dir").eqs."" Then Create/Directory $(ARCHAUTO)
612 @ If F$Search("$(MMS$TARGET)").eqs."" Then Copy/NoConfirm _NLA0: $(MMS$TARGET)
613
614.ifdef LINK_ONLY
615.else
e5a8a0fb 616# We need(ed?) an action line here for broken older versions of MMS which
97abc6ad 617# otherwise conclude that they should be compiling [.x2p]utils.c :-(
3a385817
GS
618#util$(O) : util.c
619# $(CC) $(CORECFLAGS) $(MMS$SOURCE)
97abc6ad 620# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
1f74f634
CB
621av$(O) : av.c $(h)
622 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
878cc5f0
CB
623caretx$(O) : caretx.c $(h)
624 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634
CB
625deb$(O) : deb.c $(h)
626 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
627doio$(O) : doio.c $(h)
628 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
629doop$(O) : doop.c $(h)
630 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
a55c5245
JH
631dquote$(O) : dquote.c $(h)
632 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 633dump$(O) : dump.c $(h)
3a385817 634 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
9387abf8 635globals$(O) : globals.c $(generated_headers) $(h)
b50d78f7 636 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 637gv$(O) : gv.c $(h)
3a385817 638 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
8b371338 639mro_core$(O) : mro_core.c $(h)
e1a479c5 640 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 641hv$(O) : hv.c $(h)
3a385817 642 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
cfc889ad
CB
643keywords$(O) : keywords.c $(h)
644 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 645locale$(O) : locale.c $(h)
3a385817 646 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 647malloc$(O) : malloc.c $(h)
3a385817 648 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
9fcbb300
JM
649mathoms$(O) : mathoms.c $(h)
650 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 651mg$(O) : mg.c $(h)
3a385817 652 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 653miniperlmain$(O) : miniperlmain.c $(h)
3a385817 654 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 655numeric$(O) : numeric.c $(h)
cfbf4ea5 656 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 657pad$(O) : pad.c $(h)
b0bfe279 658 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 659op$(O) : op.c $(h)
3a385817 660 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
05b0cfd1 661perl$(O) : perl.c git_version.h $(h)
3a385817 662 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 663perlapi$(O) : perlapi.c $(h)
cfbf4ea5 664 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 665perlio$(O) : perlio.c config.h $(h)
3a385817 666 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
5c9818e9 667perlmain$(O) : perlmain.c $(h)
3a385817 668 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 669perly$(O) : perly.c $(h)
b0bfe279 670 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 671pp$(O) : pp.c $(h)
3a385817 672 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 673pp_ctl$(O) : pp_ctl.c $(h)
3a385817 674 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 675pp_hot$(O) : pp_hot.c $(h)
3a385817 676 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 677pp_pack$(O) : pp_pack.c $(h)
3a385817 678 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 679pp_sort$(O) : pp_sort.c $(h)
3a385817 680 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 681pp_sys$(O) : pp_sys.c $(h)
3a385817 682 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 683reentr$(O) : reentr.c $(h)
3a385817 684 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 685regcomp$(O) : regcomp.c $(h)
3a385817 686 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 687regexec$(O) : regexec.c $(h)
3a385817 688 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 689run$(O) : run.c $(h)
3a385817 690 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 691scope$(O) : scope.c $(h)
3a385817 692 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
94a11853 693sv$(O) : sv.c $(h)
3a385817 694 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 695taint$(O) : taint.c $(h)
3a385817 696 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
f832b29a
JH
697time64$(O) : time64.c $(h)
698 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 699toke$(O) : toke.c $(h)
3a385817 700 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 701universal$(O) : universal.c $(h)
3a385817 702 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 703utf8$(O) : utf8.c $(h)
3a385817 704 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 705util$(O) : util.c $(h)
3937c24e 706 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 707vms$(O) : vms.c $(h)
3a385817
GS
708 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
709
97abc6ad
HM
710# End of automatically generated make dependencies
711.endif # !LINK_ONLY
712
713vmsish.h : [.vms]vmsish.h
1f74f634 714 Copy/Log/NoConfirm [.vms]vmsish.h []
97abc6ad
HM
715
716vms.c : [.vms]vms.c
717 Copy/Log/Noconfirm [.vms]vms.c []
718
719$(CRTL) : $(MAKEFILE)
046cc26c 720 @ @[.vms]genopt "$(CRTL)/Write" "|" "$(LIBS1)|$(FULLLIBS2)"
97abc6ad 721
dfe814dc
PP
722ok : $(utils)
723 $(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)"
724
725okfile : $(utils)
726 $(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)" "-F" perl.ok
727
728nok : $(utils)
729 @ write sys$output " "
730 @ write sys$output " Please type the command:"
731 @ write sys$output " "
732 @ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"""
733
734nokfile : $(utils)
735 @ write sys$output " "
736 @ write sys$output " Please type the command:"
737 @ write sys$output " "
738 @ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"" ""-F"" perl.nok"
739
97abc6ad
HM
740cleanlis :
741 - If F$Search("*.Lis").nes."" Then Delete/NoConfirm/Log *.Lis;*
742 - If F$Search("*.CPP").nes."" Then Delete/NoConfirm/Log *.CPP;*
743 - If F$Search("*.Map").nes."" Then Delete/NoConfirm/Log *.Map;*
744
59d8d783 745cleantest :
31e425b5 746 - If F$Search("[.t]Perl$(E)").nes."" Then Delete/NoConfirm/Log [.t]Perl$(E);*
59d8d783 747 - If F$Search("[.t]VMSPIPE.COM").nes."" Then Delete/NoConfirm/Log [.t]VMSPIPE.COM;*
59d8d783 748
97abc6ad
HM
749tidy : cleanlis
750 - If F$Search("[...]*.Opt;-1").nes."" Then Purge/NoConfirm/Log [...]*.Opt
751 - If F$Search("[...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [...]*$(O)
752 - If F$Search("[...]*$(E);-1").nes."" Then Purge/NoConfirm/Log [...]*$(E)
97386f52
CB
753 - If F$Search("config.h;-1").nes."" Then Purge/NoConfirm/Log config.h
754 - If F$Search("config.sh;-1").nes."" Then Purge/NoConfirm/Log config.sh
755 - If F$Search("vmsish.h;-1").nes."" Then Purge/NoConfirm/Log vmsish.h
756 - If F$Search("vms.c;-1") .nes."" Then Purge/NoConfirm/Log vms.c
757 - If F$Search("perlmain.c;-1") .nes."" Then Purge/NoConfirm/Log perlmain.c
9444d213 758 - If F$Search("uudmap.h;-1") .nes."" Then Purge/NoConfirm/Log uudmap.h
efa50c51 759 - If F$Search("bitcount.h;-1") .nes."" Then Purge/NoConfirm/Log bitcount.h
6f83ef0e 760 - If F$Search("mg_data.h;-1") .nes."" Then Purge/NoConfirm/Log mg_data.h
97abc6ad 761 - If F$Search("Perlshr_Gbl*.Mar;-1") .nes."" Then Purge/NoConfirm/Log Perlshr_Gbl*.Mar
9c8fb6b6 762 - If F$Search("[.ext.Opcode...];-1").nes."" Then Purge/NoConfirm/Log [.ext.Opcode]
97386f52
CB
763 - If F$Search("[.lib.auto...]*.al;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]*.al
764 - If F$Search("[.lib.auto...]autosplit.ix;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]autosplit.ix
97386f52 765 - If F$Search("[.lib]Config.pm;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config.pm
97abc6ad 766 - If F$Search("$(ARCHDIR)Config.pm;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config.pm
97386f52 767 - If F$Search("[.lib]Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config_heavy.pl
2d9d8159 768 - If F$Search("$(ARCHDIR)Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config_heavy.pl
97386f52 769 - If F$Search("[.lib.VMS]*.*;-1").nes."" Then Purge/NoConfirm/Log [.lib.VMS]*.*
97abc6ad
HM
770 - If F$Search("$(ARCHCORE)*.*").nes."" Then Purge/NoConfirm/Log $(ARCHCORE)*.*
771 - If F$Search("[.lib]*.com;-1").nes."" Then Purge/NoConfirm/Log [.lib]*.com
772 - If F$Search("[.pod]*.com;-1").nes."" Then Purge/NoConfirm/Log [.pod]*.com
773 - If F$Search("[.utils]*.com;-1").nes."" Then Purge/NoConfirm/Log [.utils]*.com
5e4c4c91 774 - If F$Search("[.lib]buildcustomize.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]buildcustomize.pl
97abc6ad 775
6e2cec71 776clean : tidy cleantest
c091f99a 777 - $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=clean"
97abc6ad
HM
778 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*/Exclude=PerlShr_*.Opt
779 - If F$Search("[...]*$(O);*") .nes."" Then Delete/NoConfirm/Log [...]*$(O);*
97386f52
CB
780 - If F$Search("vmsish.h").nes."" Then Delete/NoConfirm/Log vmsish.h;*
781 - If F$Search("vms.c") .nes."" Then Delete/NoConfirm/Log vms.c;*
782 - If F$Search("perlmain.c") .nes."" Then Delete/NoConfirm/Log perlmain.c;*
5c9818e9 783 - If F$Search("perlmini.c") .nes."" Then Delete/NoConfirm/Log perlmini.c;*
c3301a92 784 - If F$Search("uudmap.h") .nes."" Then Delete/NoConfirm/Log uudmap.h;*
efa50c51 785 - If F$Search("bitcount.h") .nes."" Then Delete/NoConfirm/Log bitcount.h;*
c73002c3 786 - If F$Search("mg_data.h") .nes."" Then Delete/NoConfirm/Log mg_data.h;*
97abc6ad
HM
787 - If F$Search("Perlshr_Gbl*.Mar") .nes."" Then Delete/NoConfirm/Log Perlshr_Gbl*.Mar;*
788 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
97abc6ad 789 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
60f0ee9d 790 - If F$Search("[.pod]roffitall").nes."" Then Delete/NoConfirm/Log [.pod]roffitall;*
600dcb9e 791 - If F$Search("$(PERLDELTA_CURRENT)").nes."" Then Delete/NoConfirm/Log $(PERLDELTA_CURRENT);*
db34a22a 792 - If F$Search("[.pod]perlapi.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlapi.pod;*
344af494 793 - If F$Search("[.pod]perlintern.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlintern.pod;*
6e2c8928 794 - If F$Search("[.pod]perlmodlib.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlmodlib.pod;*
7eb47696 795 - If F$Search("[.pod]perltoc.pod").nes."" Then Delete/NoConfirm/Log [.pod]perltoc.pod;*
524ce141 796 - If F$Search("[.pod]perluniprops.pod").nes."" Then Delete/NoConfirm/Log [.pod]perluniprops.pod;*
414b89cc 797 - @extra_pods CLEAN
05b0cfd1
CB
798 - If F$Search("[.lib]Config_git.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_git.pl;*
799 - If F$Search("git_version.h").nes."" Then Delete/NoConfirm/Log git_version.h;*
97abc6ad 800
cc391245 801realclean : clean
c091f99a 802 - $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=realclean"
42e07562 803 - $(MINIPERL) mkppport "--clean"
97abc6ad
HM
804 - If F$Search("*$(OLB)").nes."" Then Delete/NoConfirm/Log *$(OLB);*
805 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*
97386f52
CB
806 - If F$Search("config.h").nes."" Then Delete/NoConfirm/Log config.h;*
807 - If F$Search("config.sh").nes."" Then Delete/NoConfirm/Log config.sh;*
52a043e6 808 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" config
7056a12d 809 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" $(unidatafiles)
ca12659b 810 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" $(unidatadirs)
cc391245 811 - If F$Search("Descrip.MMS").nes."" Then Delete/NoConfirm/Log Descrip.MMS;*
414b89cc 812 - If F$Search("extra_pods.Com").nes."" Then Delete/NoConfirm/Log extra_pods.Com;*
96021e87 813 - If F$Search("extra.pods").nes."" Then Delete/NoConfirm/Log extra.pods;*
b2790d5e 814 - $(MINIPERL) -e "use File::Path; rmtree(['[.CXX_REPOSITORY]', 'lib/auto','lib/VMS','lib/$(ARCHNAME)'],1,0);"
25ea24bb 815 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
97386f52
CB
816 - If F$Search("[.lib]Config.pm").nes."" Then Delete/NoConfirm/Log [.lib]Config.pm;*
817 - If F$Search("[.lib]Config_heavy.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_heavy.pl;*
818 - If F$Search("[.lib]*.com").nes."" Then Delete/NoConfirm/Log [.lib]*.com;*
781f5a38 819 - If F$Search("[.lib...].exists").nes."" Then Delete/NoConfirm/Log [.lib...].exists;*
52a043e6 820 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
97abc6ad 821 - If F$Search("[.utils]*.com").nes."" Then Delete/NoConfirm/Log [.utils]*.com;*
97abc6ad 822 - If F$Search("$(ARCHDIR)Config.pm").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config.pm;*
2d9d8159 823 - If F$Search("$(ARCHDIR)Config_heavy.pl").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config_heavy.pl;*
4403bf93 824 - If F$Search("[.utils]perldoc.com").nes."" Then Delete/NoConfirm/Log [.utils]perldoc.com;*
cdf8b154 825 - If F$Search("[.utils]perlivp.com").nes."" Then Delete/NoConfirm/Log [.utils]perlivp.com;*
97abc6ad 826 - If F$Search("[...]*$(E)").nes."" Then Delete/NoConfirm/Log [...]*$(E);*
b2790d5e 827 - If F$Search("Perl_Setup.Com").nes."" Then Delete/NoConfirm/Log Perl_Setup.Com;*
dfe814dc 828 - If F$Search("[.t]rantests.").nes."" Then Delete/NoConfirm/Log [.t]rantests.;*
0279961e 829 - If F$Search("[.t]test_state.").nes."" Then Delete/NoConfirm/Log [.t]test_state.;*
d6521b56 830 - If F$Search("vmspipe.com").nes."" Then Delete/NoConfirm/Log vmspipe.com;*
ac2c13e8 831 - If F$Search("[.lib]buildcustomize.pl").nes."" Then Delete/NoConfirm/Log [.lib]buildcustomize.pl;*
b2790d5e 832 - If F$Search("[.lib]config.pod").nes."" Then Delete/NoConfirm/Log [.lib]config.pod;*
97abc6ad
HM
833
834cleansrc : clean
97386f52
CB
835 - If F$Search("*.c;-1").nes."" Then Purge/NoConfirm/Log *.c
836 - If F$Search("*.h;-1").nes."" Then Purge/NoConfirm/Log *.h
837 - If F$Search("*.vms;-1").nes."" Then Purge/NoConfirm/Log *.vms
838 - If F$Search("[.vms]$(MAKEFILE);-1").nes."" Then Purge/NoConfirm/Log [.vms]$(MAKEFILE)
839 - If F$Search("[.vms]*.c;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.c
840 - If F$Search("[.vms]*.h;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.h
841 - If F$Search("[.vms]*.pl;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.pl
842 - If F$Search("[.vms]*.vms;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.vms
843 - If F$Search("[.vms...]*.pm;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.pm
844 - If F$Search("[.vms...]*.xs;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.xs
12bc563b 845!GROK!THIS!