1!GROK!THIS!
2# Descrip.MMS for perl5 on VMS
3# Last revised 5-Dec-2001 by Craig Berry -- craigberry@mac.com
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
8#: be found in the same directory as this file.
9#:
10#: Lines beginning with "#:" will be removed by mms2make.pl when converting
11#: this file to MAKE syntax.
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,
16#	             but leave 'installable' files (images, library) intact
17#	realclean -- remove all files generated by executing this file
18#	cleansrc  -- 'realclean' + purge *.c,*.h,descrip.mms
19#	crtl.opt  -- compiler-specific linker options file (made automatically)
20#
21
22#### Start of system configuration section. ####
23
24~DECC~
25~DECCXX~
26~GNUC~
27~ARCH-TYPE~ = 1
28~THREAD~
29~SOCKET~
30~MALLOC~
31~CC~
32~MTK~
33~MTU~
34~FLAGS~
35~LARGEFILE~
36~ARCHNAME~
37~USEVMSDEBUG~
38~PREFIX~
39
40#: >>>>> Architecture-specific options <<<<<
41.ifdef IXE
42O = .ibj
43OLB = .ilb
44E = .ixe
45.else
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
61.endif
62
63.ifdef __IA64__
64OBJVAL = $(O)
65.else
66.ifdef __AXP__
67OBJVAL = $(O)
68.else
69OBJVAL = $(MMS$TARGET_NAME)$(O)
70.endif
71.endif
72
73PERL_VERSION = ~PV~
74
75.ifdef MALLOC
76MALLOC_O = malloc$(O)
77MALLOC_C = malloc$(C)
78.endif
79
80.ifdef DECC_SOCKETS
81SOCKET=1
82.endif
83
84ARCHDIR =  [.lib.$(ARCHNAME).$(PERL_VERSION)]
85ARCHCORE = [.lib.$(ARCHNAME).$(PERL_VERSION).CORE]
86ARCHAUTO = [.lib.$(ARCHNAME).$(PERL_VERSION).auto]
87
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
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 =
98XTRADEF =
99XTRAOBJS =
100LIBS1 = GNU_CC:[000000]GCCLIB.OLB/Library
101LIBS2 = Sys$Share:VAXCRTL/Shareable
102POSIX =
103.else
104XTRAOBJS =
105LIBS1 = $(XTRAOBJS)
106DBGSPECFLAGS = /Show=(expansion,include)/machine
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
113	@ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").nes."" Then Define/NoLog SYS DECC$System_Include
114.ifdef __AXP__
115	@ Set Process/Privilege=(NoSYSNAM)
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
121.ifdef DECCXX
122XTRACCFLAGS = /Include=[]/Standard=ANSI/Prefix=All/Obj=$(OBJVAL)
123.else
124XTRACCFLAGS = /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=$(OBJVAL)
125.endif
126XTRADEF =
127POSIX = POSIX
128.endif
129
130#: >>>>> Configuration options <<<<<
131#: __DEBUG__: builds images with full VMS debugger support
132.ifdef __DEBUG__
133DBGCCFLAGS = /List/Debug/NoOpt$(DBGSPECFLAGS)
134DBGLINKFLAGS = /Trace/Debug/Map/Full/Cross
135DBG = DBG
136.else
137DBGCCFLAGS = /NoList
138DBGLINKFLAGS = /NoTrace/NoMap
139DBG =
140.endif
141
142.ifdef THREADED
143THREADDEF =
144THREAD = THREAD
145.endif
146
147.ifdef OLDTHREADED
148THREADDEF =
149THREAD = THREAD
150THRLIBS1 = sys$share:cma$lib_shr/share|sys$share:cma$rtl/share
151.ifdef __AXP__
152THRLIBS2 = sys$share:cma$open_lib_shr/share|sys$share:cma$open_rtl/share
153.endif
154.endif
155
156.ifdef MTU
157.ifdef MTK
158MTHREADLINKFLAGS = /THREADS=(MULTIPLE_KERNEL,UPCALLS)
159.else
160MTHREADLINKFLAGS = /THREADS=UPCALLS
161.endif
162.else
163MTHREADLINKFLAGS =
164.endif
165
166# C preprocessor manifest "DEBUGGING" ==> perl -D, not the VMS debugger
167.IFDEF LARGEFILE
168CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=$(LARGEFILE)
169X2PCFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=(PERL_FOR_X2P,$(LARGEFILE))
170CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=(PERL_CORE,$(LARGEFILE))
171.ELSE
172CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)
173X2PCFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=PERL_FOR_X2P
174CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=PERL_CORE
175.ENDIF
176
177LINKFLAGS = $(DBGLINKFLAGS)
178
179MAKE = $(MMS)
180MAKEFILE = Descrip.MMS   # this file
181NOOP = continue
182
183# Macros to invoke a copy of miniperl during the build.  Targets which
184# are built using these macros should depend on $(MINIPERL_EXE)
185MINIPERL_EXE = Sys$Disk:[]miniperl$(E)
186MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]"
187MINIPERLQ = MCR $(MINIPERL_EXE) ""-I[.lib]""
188XSUBPP = $(MINIPERL) "-I[.ext.re]" [.lib.extutils]xsubpp -noprototypes
189# Macro to invoke a preexisting copy of Perl.  This is used to regenerate
190# some header files when rebuilding Perl, but premade versions are provided
191# in the distribution, so it's OK if this doesn't work; it's here to make
192# life easier for those who modify Perl and rebuild it.
193INSTPERL = perl
194# Macros to invoke a copy of perl during the build.  Targets which
195# are built using these macros should depend on $(PERL_EXE) EXT
196.IFDEF __DEBUG__
197PERL_EXE = Sys$Disk:[]n$(DBG)perl$(E)
198.ELSE
199PERL_EXE = Sys$Disk:[]perl$(E)
200.ENDIF
201PERL = MCR $(PERL_EXE) "-I[.lib]"
202
203# Space-separated list of "static" extensions to build into perlshr (case counts).
204MYEXT = DynaLoader
205# object files for these extensions; the trailing comma is required if
206# there are any object files specified
207# These must be built separately, or you must add rules below to build them
208myextobj = DynaLoader$(O),
209EXT = $(MYEXT)
210extobj = $(myextobj)
211
212.ifdef LIBS2
213.else
214LIBS2=
215.endif
216
217.ifdef THRLIBS1
218.else
219THRLIBS1=
220.endif
221
222.ifdef THRLIBS2
223.else
224THRLIBS2=
225.endif
226
227FULLLIBS2 = $(LIBS2)|$(THRLIBS1)|$(THRLIBS2)
228
229#### End of system configuration section. ####
230
231c0 = $(MALLOC_C) av.c caretx.c deb.c doio.c doop.c dump.c globals.c gv.c hv.c mro.c
232c1 = mg.c locale.c mathoms.c miniperlmain.c numeric.c op.c pad.c perl.c perlapi.c perlio.c
233c2 = 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
234c3 = run.c scope.c sv.c taint.c toke.c universal.c utf8.c util.c vms.c keywords.c
235c = $(c0) $(c1) $(c2) $(c3)
236
237obj0 = perl$(O)
238obj1 = $(MALLOC_O) av$(O) caretx$(O) deb$(O) doio$(O) doop$(O) dump$(O) mro$(O) globals$(O) gv$(O) hv$(O)
239obj2 = keywords$(O) locale$(O) mathoms$(O) mg$(O) miniperlmain$(O) numeric$(O) op$(O) pad$(O) perlapi$(O) perlio$(O)
240obj3 = perly$(O) pp$(O) pp_ctl$(O) pp_hot$(O) reentr$(O) pp_pack$(O) pp_sort$(O) pp_sys$(O) regcomp$(O)
241obj4 = regexec$(O) run$(O) scope$(O) sv$(O) taint$(O) toke$(O) universal$(O) utf8$(O) util$(O) vms$(O)
242
243mini_obj = perlmini$(O) $(obj1) $(obj2) $(obj3) $(obj4)
244obj = $(obj0) $(obj1) $(obj2) $(obj3) $(obj4)
245
246h0 = av.h config.h cop.h cv.h embed.h embedvar.h
247h1 = EXTERN.h form.h gv.h handy.h hv.h l1_char_class_tab.h INTERN.h intrpvar.h
248h2 = iperlsys.h keywords.h mydtrace.h mg.h mg_vtable.h nostdio.h op.h
249h3 = op_reg_common.h opcode.h opnames.h overload.h pad.h parser.h patchlevel.h
250h4 = perl.h perlapi.h perlio.h perlsdio.h perlvars.h perly.h
251h5 = pp.h pp_proto.h proto.h regcomp.h regexp.h regnodes.h scope.h
252h6 = sv.h thread.h utf8.h util.h vmsish.h warnings.h xsub.h
253h = $(h0) $(h1) $(h2) $(h3) $(h4) $(h5) $(h6)
254
255acopt = $(ARCHCORE)perlshr_attr.opt $(ARCHCORE)$(DBG)perlshr_bld.opt
256ac = archcore_includes.ts $(acopt)
257
258generated_headers = uudmap.h bitcount.h mg_data.h
259
260CRTL = []crtl.opt
261CRTLOPTS =,$(CRTL)/Options
262
263.SUFFIXES
264
265.ifdef LINK_ONLY
266.else
267.SUFFIXES $(O) .c .xs
268
269.xs.c :
270	$(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
271
272.c$(O) :
273	$(CC) $(CFLAGS) $(MMS$SOURCE)
274
275.xs$(O) :
276	$(XSUBPP) $(MMS$SOURCE) >$(MMS$SOURCE_NAME).c
277	$(CC) $(CFLAGS) $(MMS$SOURCE_NAME).c
278.endif
279
280# Directories of Unicode data files generated by mktables
281unidatadirs = lib/unicore/To lib/unicore/lib
282
283# Modules which must be installed before we can build extensions
284LIBPREREQ = $(ARCHDIR)Config.pm $(ARCHDIR)Config_heavy.pl $(ARCHDIR)vmspipe.com
285
286utils1 = [.utils]perldoc.com [.utils]c2ph.com [.utils]h2ph.com
287utils2 = [.utils]h2xs.com [.utils]libnetcfg.com [.lib]perlbug.com [.utils]json_pp.com
288utils3 = [.utils]perlivp.com [.lib]splain.com [.utils]pl2pm.com [.utils]xsubpp.com [.utils]pod2html.com [.utils]instmodsh.com
289utils4 = [.utils]enc2xs.com [.utils]piconv.com [.utils]cpan.com [.utils]prove.com [.utils]ptar.com [.utils]ptardiff.com [.utils]shasum.com
290utils5 = [.utils]corelist.com [.utils]config_data.com [.utils]ptargrep.com [.utils]zipdetails.com
291
292.ifdef NOX2P
293all : base extras archcorefiles preplibrary [.pod]perltoc.pod
294	@ QUALIFIERS := $(MMSQUALIFIERS)
295	@ QUALIFIERS = QUALIFIERS - """" - """"
296	@ write sys$output " "
297	@ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
298.else
299all : base extras x2p archcorefiles preplibrary [.pod]perltoc.pod
300	@ QUALIFIERS := $(MMSQUALIFIERS)
301	@ QUALIFIERS = QUALIFIERS - """" - """"
302	@ write sys$output " "
303	@ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
304.endif
305
306git_version.h : $(MINIPERL_EXE) make_patchnum.pl
307        $(MINIPERL) make_patchnum.pl
308
309base : miniperl git_version.h nonxsext perl
310	@ $(NOOP)
311extras : dynext libmods utils extra.pods
312	@ $(NOOP)
313libmods : $(LIBPREREQ)
314	@ $(NOOP)
315utils : $(utils1) $(utils2) $(utils3) $(utils4) $(utils5)
316	@ $(NOOP)
317x2p : [.x2p]$(DBG)a2p$(E) [.x2p]s2p.com [.x2p]find2perl.com
318	@ $(NOOP)
319extra.pods : miniperl
320	@ @extra_pods.com
321
322PERLDELTA_CURRENT = [.pod]perl5202delta.pod
323
324$(PERLDELTA_CURRENT) : [.pod]perldelta.pod
325	Copy/NoConfirm/Log $(MMS$SOURCE) $(PERLDELTA_CURRENT)
326
327[.pod]perlmodlib.pod : [.pod]perlmodlib.pl MANIFEST $(MINIPERL_EXE)
328	$(MINIPERL) [.pod]perlmodlib.pl "-q"
329
330[.pod]perlapi.pod : [.pod]perlintern.pod
331	@ $(NOOP)
332
333[.pod]perlintern.pod : embed.fnc autodoc.pl $(MINIPERL_EXE)
334	$(MINIPERL) autodoc.pl
335
336[.pod]perltoc.pod : $(PERLDELTA_CURRENT) [.pod]perlapi.pod [.pod]perlintern.pod  [.pod]perlmodlib.pod extra.pods $(PERL_EXE)
337	@ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
338	$(PERL) "-f" [.pod]buildtoc "-q"
339
340archcorefiles : $(ac) $(ARCHAUTO)time.stamp
341	@ $(NOOP)
342
343# See the comment in Makefile.SH explaining this seemingly cranky ordering
344$(MINIPERL_EXE) : [.lib]buildcustomize.pl
345	@ $(NOOP)
346
347vmspipe.com : [.vms]vmspipe.com
348	Copy/NoConfirm/Log $(MMS$SOURCE) []
349
350miniperl : $(DBG)miniperl$(E)  vmspipe.com
351	@ Continue
352
353[.lib]buildcustomize.pl :  miniperlmain$(O), $(DBG)libperlmini$(OLB) $(CRTL) write_buildcustomize.pl
354	Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MINIPERL_EXE) miniperlmain$(O), $(DBG)libperlmini$(OLB)/Library/Include=globals $(CRTLOPTS)
355       $(MINIPERL) "-f" write_buildcustomize.pl
356
357$(DBG)miniperl$(E) :  miniperlmain$(O), $(DBG)libperlmini$(OLB) $(CRTL)
358	Link $(LINKFLAGS)/Trace/Exe=$(MMS$TARGET) miniperlmain$(O), $(DBG)libperlmini$(OLB)/Library/Include=globals  $(CRTLOPTS)
359
360$(DBG)libperl$(OLB) : $(obj)
361	@ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
362	Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
363
364$(DBG)libperlmini$(OLB) : $(mini_obj)
365	@ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
366	Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
367
368perlmain.c : miniperlmain.c $(MINIPERL_EXE) nonxsext
369	$(MINIPERL) -"MExtUtils::Miniperl" -e "writemain(\'perlmain.c', @ARGV)" "$(EXT)"
370
371.ifdef __DEBUG__
372# Link an extra perl that doesn't invoke the debugger
373perl : $(DBG)perl$(E)
374	Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/NoDebug/Trace/NoMap/NoCross/NoFull/Exe=N$(DBG)perl$(E) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
375.else
376perl : $(DBG)perl$(E)
377	@ Continue
378.endif
379
380$(DBG)perl$(E) : perlmain$(O), $(DBG)perlshr$(E), $(MINIPERL_EXE)
381	@ @[.vms]genopt "PerlShr.Opt/Write" "|" "''F$Environment("Default")'$(DBG)PerlShr$(E)/Share"
382	Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/Exe=$(MMS$TARGET) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
383
384$(DBG)perlshr$(E) : $(DBG)libperl$(OLB) $(extobj) $(DBG)perlshr_xtras.ts
385	Link $(LINKFLAGS)/Share=$(MMS$TARGET) $(extobj) []$(DBG)perlshr_bld.opt/Option, perlshr_attr.opt/Option
386
387perlmini.c : perl.c
388	@ IF F$SEARCH("$(MMS$TARGET)") .NES. "" THEN DELETE/NOCONFIRM/LOG $(MMS$TARGET);*
389	@ COPY/NOCONFIRM _NLA0: $(MMS$TARGET)
390	@ SET FILE /ATTRIBUTES=RFM:STMLF $(MMS$TARGET)
391	@ OPEN/APPEND perlmini $(MMS$TARGET)
392	@ WRITE perlmini "#define PERL_IS_MINIPERL"
393	@ CLOSE perlmini
394	@ APPEND/NOCONFIRM/LOG $(MMS$SOURCE) $(MMS$TARGET)
395
396perlmini$(O) : perlmini.c
397	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
398
399bitcount.h mg_data.h : uudmap.h
400	@ $(NOOP)
401
402uudmap.h : generate_uudmap$(E)
403	MCR SYS$DISK:[]generate_uudmap$(E) $(generated_headers)
404
405generate_uudmap$(E) : generate_uudmap$(O) $(CRTL)
406	Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MMS$TARGET) generate_uudmap$(O) $(CRTLOPTS)
407
408generate_uudmap$(O) : generate_uudmap.c mg_raw.h
409        $(CC) $(CORECFLAGS) $(MMS$SOURCE)
410
411# The following files are built in one go by gen_shrfls.pl:
412#  perlshr_attr.opt, $(DBG)perlshr_bld.opt - VAX and AXP
413#  perlshr_gbl*.mar, perlshr_gbl*$(O) - VAX only
414# The song and dance with gen_shrfls.opt accommodates DCL's line length limit.
415$(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL)
416	@ $(MINIPERL) makedef.pl "PLATFORM=vms" > makedef.lis
417	@ $(MINIPERLQ) -e "print join('|',@ARGV),'|';" "$(CC)$(CFLAGS)" >gen_shrfls.opt
418	@ $(MINIPERLQ) -e "print join('|',@ARGV);" "$(O)" "$(DBG)" "$(OLB)" "$(EXT)" "$(CRTL)" >>gen_shrfls.opt
419	$(MINIPERL) [.vms]gen_shrfls.pl -f gen_shrfls.opt
420	@ Delete/NoLog/NoConfirm gen_shrfls.opt;
421	@ If F$Search("$(DBG)perlshr_xtras.ts").nes."" Then Delete/NoLog/NoConfirm $(DBG)perlshr_xtras.ts;*
422	@ Copy _NLA0: $(DBG)perlshr_xtras.ts
423
424$(ARCHDIR)Config.pm : [.lib]Config.pm
425	Create/Directory $(ARCHDIR)
426	Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
427
428$(ARCHDIR)Config_heavy.pl : [.lib]Config_heavy.pl
429	Create/Directory $(ARCHDIR)
430	Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
431
432[.lib]Config.pm : config.h $(MINIPERL_EXE)
433	$(MINIPERL) ConfigPM.
434
435$(ARCHDIR)vmspipe.com : vmspipe.com
436        Copy $(MMS$SOURCE) $(ARCHDIR)
437
438unidatafiles.ts : $(MINIPERL_EXE) [.lib]Config.pm [.lib.unicore]mktables nonxsext
439	$(MINIPERL) [.lib.unicore]mktables "-C" [.lib.unicore] "-P" [.pod] "-makelist" "-maketest" "-p"
440	@ If F$Search("$(MMS$TARGET)").nes."" Then Delete/NoLog/NoConfirm $(MMS$TARGET);*
441	@ Copy/NoConfirm _NLA0: $(MMS$TARGET)
442
443DynaLoader$(O) : [.lib]buildcustomize.pl $(ARCHDIR)Config.pm $(MINIPERL_EXE)
444	$(MINIPERL) make_ext.pl "MAKE=$(MMS)" "DynaLoader"
445
446dynext : $(LIBPREREQ) $(DBG)perlshr$(E) unidatafiles.ts DynaLoader$(O) preplibrary makeppport $(MINIPERL_EXE)
447       $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--dynamic" "--static"
448
449nonxsext : $(LIBPREREQ) preplibrary $(MINIPERL_EXE) [.pod]perlfunc.pod
450       $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--nonxs"
451
452[.utils]perldoc.com : [.utils]perldoc.PL $(ARCHDIR)Config.pm
453	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
454
455[.utils]perlivp.com : [.utils]perlivp.PL $(ARCHDIR)Config.pm
456	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
457
458[.utils]cpan.com : [.utils]cpan.PL $(ARCHDIR)Config.pm
459	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
460
461[.utils]prove.com : [.utils]prove.PL $(ARCHDIR)Config.pm
462	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
463
464[.utils]ptar.com : [.utils]ptar.PL $(ARCHDIR)Config.pm
465	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
466
467[.utils]ptardiff.com : [.utils]ptardiff.PL $(ARCHDIR)Config.pm
468	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
469
470[.utils]ptargrep.com : [.utils]ptargrep.PL $(ARCHDIR)Config.pm
471	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
472
473[.utils]shasum.com : [.utils]shasum.PL $(ARCHDIR)Config.pm
474	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
475
476[.utils]config_data.com : [.utils]config_data.PL $(ARCHDIR)Config.pm
477	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
478
479[.utils]corelist.com : [.utils]corelist.PL $(ARCHDIR)Config.pm
480	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
481
482[.utils]c2ph.com : [.utils]c2ph.PL $(ARCHDIR)Config.pm
483	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
484
485[.utils]json_pp.com : [.utils]json_pp.PL $(ARCHDIR)Config.pm
486	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
487
488[.utils]enc2xs.com : [.utils]enc2xs.PL $(ARCHDIR)Config.pm
489	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
490
491[.utils]h2ph.com : [.utils]h2ph.PL $(ARCHDIR)Config.pm
492	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
493
494[.utils]h2xs.com : [.utils]h2xs.PL $(ARCHDIR)Config.pm
495	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
496
497[.utils]instmodsh.com : [.utils]instmodsh.PL $(ARCHDIR)Config.pm
498	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
499
500[.utils]libnetcfg.com : [.utils]libnetcfg.PL $(ARCHDIR)Config.pm
501       $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
502
503[.lib]perlbug.com : [.utils]perlbug.PL $(ARCHDIR)Config.pm
504	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
505	Copy/NoConfirm/Log [.utils]perlbug.com [.lib]
506
507[.utils]piconv.com : [.utils]piconv.PL $(ARCHDIR)Config.pm
508	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
509
510[.utils]pl2pm.com : [.utils]pl2pm.PL $(ARCHDIR)Config.pm
511	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
512
513[.lib]splain.com : [.utils]splain.PL $(ARCHDIR)Config.pm
514	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
515	Copy/NoConfirm/Log [.utils]splain.com [.lib]
516
517[.x2p]find2perl.com : [.x2p]find2perl.PL $(ARCHDIR)Config.pm
518	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
519
520[.x2p]s2p.com : [.x2p]s2p.PL $(ARCHDIR)Config.pm
521	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
522
523[.utils]xsubpp.com : [.utils]xsubpp.PL $(ARCHDIR)Config.pm nonxsext
524	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
525
526[.utils]zipdetails.com : [.utils]zipdetails.PL $(ARCHDIR)Config.pm nonxsext
527	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
528
529[.utils]pod2html.com : [.utils]pod2html.PL $(ARCHDIR)Config.pm nonxsext
530	$(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
531
532# Rename catches problem with some DECC versions in which object file is
533# placed in current default dir, not same one as source file.
534[.x2p]$(DBG)a2p$(E) : [.x2p]a2p$(O), [.x2p]hash$(O), [.x2p]str$(O), [.x2p]util$(O), [.x2p]walk$(O)
535	@ If F$Search("hash$(O)").nes."" Then Rename/NoLog hash$(O),str$(O),util$(O),walk$(O) [.x2p]
536	Link $(LINKFLAGS) /Exe=$(MMS$TARGET) $(MMS$SOURCE_LIST) $(CRTLOPTS)
537
538# Accommodate buggy cpp in some version of DECC, which chokes on illegal
539# filespec "y.tab.c", and broken gcc cpp, which doesn't start #include ""
540# search in same dir as source file
541[.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 $(MINIPERL_EXE)
542	$(MINIPERL) -pe "s/^#line\s+(\d+)\s+\Q""y.tab.c""/#line $1 ""y_tab.c""/;" $(MMS$SOURCE) >$(MMS$TARGET_NAME)_vms.c
543	$(CC) $(X2PCFLAGS) /Object=$(MMS$TARGET)/Include=([.x2p],[],"./x2p") $(MMS$TARGET_NAME)_vms.c
544	Delete/Log/NoConfirm $(MMS$TARGET_NAME)_vms.c;
545
546# gcc cpp broken -- doesn't look in directory of source file for #include ""
547.ifdef GNUC
548[.x2p]hash$(O) : [.x2p]hash.c
549	$(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
550
551[.x2p]str$(O) : [.x2p]str.c
552	$(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
553
554[.x2p]util$(O) : [.x2p]util.c
555	$(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
556
557[.x2p]walk$(O) : [.x2p]walk.c
558	$(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
559.endif
560
561preplibrary : $(MINIPERL_EXE) $(LIBPREREQ)
562	@ $(NOOP)
563
564makeppport : $(MINIPERL_EXE) $(ARCHDIR)Config.pm nonxsext
565	$(MINIPERL) mkppport
566
567install.html : [.pod]perltoc.pod
568	@ @perl_setup.com "$(PREFIX)"
569	@ If F$Search("perl_root:[lib]html.dir").eqs."" Then Create/Directory perl_root:[lib.html]
570	$(MINIPERL) installhtml. "--podroot=. --recurse --htmldir=/perl_root/lib/html --htmlroot=.. --verbose"
571
572printconfig :
573        @ @[.vms]make_command $(MMS) $(MMSQUALIFIERS) $(MMSTARGETS)
574        @ @[.vms]myconfig "$(CC)" "$(CFLAGS)" "$(LINKFLAGS)" "$(LIBS1)" "$(FULLLIBS2)" "$(EXT)" "$(DBG)"
575
576# The following files are generated automatically
577#       embed.pl:       proto.h embed.h embedvar.h perlapi.h perlapi.c
578#       opcode.pl:      opcode.h opnames.h pp_proto.h
579#       regcomp.pl:     regnodes.h
580#       warnings.pl:    warnings.h lib/warnings.pm
581# The correct versions should be already supplied with the perl kit,
582# in case you don't have perl available.
583# To force them to be regenerated, run
584#       perl regen.pl
585# with your existing copy of perl
586# (make regen_headers is kept for backwards compatibility)
587
588regen :
589	$(INSTPERL) regen.pl
590
591regen_headers :
592	$(INSTPERL) regen.pl -v
593
594.ifdef LINK_ONLY
595.else
596perly$(O) : perly.c, perly.h, $(h)
597.endif
598
599check : test
600	@ Continue
601
602test : all
603	@ PERL_TEST_DRIVER == "TEST."
604	- @[.vms]test.com "$(E)" "$(__DEBUG__)"
605	@ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
606
607test_harness : all
608	@ PERL_TEST_DRIVER == "harness."
609	- @[.vms]test.com "$(E)" "$(__DEBUG__)"
610	@ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
611
612minitest : $(MINITEST_EXE) unidatafiles.ts
613	@ PERL_TEST_DRIVER == "minitest"
614	- @[.vms]test.com "$(E)" "$(__DEBUG__)"
615
616# install ought not need a source, but it doesn't work if one's not
617# there. Go figure...
618install : $(PERL_EXE)
619	@ @perl_setup.com "$(PREFIX)"
620	If F$TrnLnm("Sys") .nes. "" Then Deass SYS
621	@ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
622	$(PERL) installperl
623
624archify : all
625	@ Write Sys$Output "Moving files to architecture-specific locations for $(ARCHNAME)"
626	archroot = "$(ARCHAUTO)" - "]" + "...]"
627	Backup/Log/Verify [.lib.auto...]*.*;/Exclude=(*.al,*.ix) 'archroot'/New_Version
628	Delete/Log/NoConfirm [.lib.auto...]*.*;*/exclude=(*.al,*.ix,*.dir)
629	Delete/Log/NoConfirm [.lib]Config.pm;*
630	Delete/Log/NoConfirm [.lib]Config_heavy.pl;*
631	Copy/Log/NoConfirm *$(E);,[.x2p]$(DBG)a2p$(E); $(ARCHDIR)
632	Delete/Log/NoConfirm Perl*$(E);*,[.x2p]$(DBG)a2p$(E);*
633	@ QUALIFIERS := $(MMSQUALIFIERS)
634	@ QUALIFIERS = QUALIFIERS - """" - """"
635	@ Write Sys$Output "Architecture-specific setup completed."
636	@ Write Sys$Output "Before building for another architecture, be sure to"
637	@ Write Sys$Output "    1. $(MMS)''QUALIFIERS' clean"
638	@ Write Sys$Output "    2. Delete Miniperl$(E)"
639
640# CORE subset for MakeMaker, so we can build Perl without sources
641
642archcore_includes.ts :
643	@ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
644	Copy/NoConfirm/Log *.h $(ARCHCORE)
645	@ Copy _NLA0: $(MMS$TARGET)
646$(ARCHCORE)$(DBG)libperl$(OLB) : $(DBG)libperl$(OLB) $(DBG)perlshr_xtras.ts
647	@ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
648	Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHCORE)
649$(ARCHCORE)perlshr_attr.opt : $(DBG)perlshr_xtras.ts
650	@ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
651	Copy/NoConfirm/Log perlshr_attr.opt $(ARCHCORE)
652$(ARCHCORE)$(DBG)perlshr_bld.opt : $(DBG)perlshr_xtras.ts
653	@ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
654	Copy/NoConfirm/Log $(DBG)perlshr_bld.opt $(ARCHCORE)
655$(ARCHAUTO)time.stamp :
656	@ If F$Search("$(ARCHDIR)auto.dir").eqs."" Then Create/Directory $(ARCHAUTO)
657	@ If F$Search("$(MMS$TARGET)").eqs."" Then Copy/NoConfirm _NLA0: $(MMS$TARGET)
658
659.ifdef LINK_ONLY
660.else
661# We need an action line here for broken older versions of MMS which
662# otherwise conclude that they should be compiling [.x2p]utils.c :-(
663#util$(O) : util.c
664#	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
665# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
666av$(O) : av.c $(h)
667	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
668caretx$(O) : caretx.c $(h)
669	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
670deb$(O) : deb.c $(h)
671	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
672doio$(O) : doio.c $(h)
673	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
674doop$(O) : doop.c $(h)
675	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
676dump$(O) : dump.c $(h)
677	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
678globals$(O) : globals.c $(generated_headers) $(h)
679        $(CC) $(CORECFLAGS) $(MMS$SOURCE)
680gv$(O) : gv.c $(h)
681	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
682mro$(O) : mro.c $(h)
683	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
684hv$(O) : hv.c $(h)
685	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
686keywords$(O) : keywords.c $(h)
687	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
688locale$(O) : locale.c $(h)
689	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
690malloc$(O) : malloc.c $(h)
691	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
692mathoms$(O) : mathoms.c $(h)
693	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
694mg$(O) : mg.c $(h)
695	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
696miniperlmain$(O) : miniperlmain.c $(h)
697	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
698numeric$(O) : numeric.c $(h)
699	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
700pad$(O) : pad.c $(h)
701	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
702op$(O) : op.c $(h)
703	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
704perl$(O) : perl.c git_version.h $(h)
705	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
706perlapi$(O) : perlapi.c $(h)
707	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
708perlio$(O) : perlio.c config.h $(h)
709	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
710perlmain$(O) : perlmain.c $(h)
711	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
712perly$(O) : perly.c $(h)
713	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
714pp$(O) : pp.c $(h)
715	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
716pp_ctl$(O) : pp_ctl.c $(h)
717	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
718pp_hot$(O) : pp_hot.c $(h)
719	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
720pp_pack$(O) : pp_pack.c $(h)
721	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
722pp_sort$(O) : pp_sort.c $(h)
723	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
724pp_sys$(O) : pp_sys.c $(h)
725	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
726reentr$(O) : reentr.c $(h)
727	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
728regcomp$(O) : regcomp.c $(h)
729	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
730regexec$(O) : regexec.c $(h)
731	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
732run$(O) : run.c $(h)
733	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
734scope$(O) : scope.c $(h)
735	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
736sv$(O) : sv.c $(h)
737	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
738taint$(O) : taint.c $(h)
739	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
740toke$(O) : toke.c $(h)
741	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
742universal$(O) : universal.c $(h)
743	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
744utf8$(O) : utf8.c $(h)
745	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
746util$(O) : util.c $(h)
747	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
748vms$(O) : vms.c $(h)
749	$(CC) $(CORECFLAGS) $(MMS$SOURCE)
750
751[.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
752	$(CC) $(X2PCFLAGS) $(MMS$SOURCE)
753
754[.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
755	$(CC) $(X2PCFLAGS) $(MMS$SOURCE)
756
757[.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
758	$(CC) $(X2PCFLAGS) $(MMS$SOURCE)
759
760[.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
761	$(CC) $(X2PCFLAGS) $(MMS$SOURCE)
762
763# End of automatically generated make dependencies
764.endif # !LINK_ONLY
765
766vmsish.h : [.vms]vmsish.h
767	Copy/Log/NoConfirm [.vms]vmsish.h []
768
769vms.c : [.vms]vms.c
770	Copy/Log/Noconfirm [.vms]vms.c []
771
772$(CRTL) : $(MAKEFILE)
773	@ @[.vms]genopt "$(CRTL)/Write" "|" "$(LIBS1)|$(FULLLIBS2)"
774
775ok : $(utils)
776	$(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)"
777
778okfile : $(utils)
779	$(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)" "-F" perl.ok
780
781nok : $(utils)
782	@ write sys$output " "
783	@ write sys$output " Please type the command:"
784	@ write sys$output " "
785	@ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"""
786
787nokfile : $(utils)
788	@ write sys$output " "
789	@ write sys$output " Please type the command:"
790	@ write sys$output " "
791	@ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"" ""-F"" perl.nok"
792
793cleanlis :
794	- If F$Search("*.Lis").nes."" Then Delete/NoConfirm/Log *.Lis;*
795	- If F$Search("*.CPP").nes."" Then Delete/NoConfirm/Log *.CPP;*
796	- If F$Search("*.Map").nes."" Then Delete/NoConfirm/Log *.Map;*
797
798cleantest :
799        - If F$Search("[.t]Perl$(E)").nes."" Then Delete/NoConfirm/Log [.t]Perl$(E);*
800        - If F$Search("[.t]VMSPIPE.COM").nes."" Then Delete/NoConfirm/Log [.t]VMSPIPE.COM;*
801
802tidy : cleanlis
803	- If F$Search("[...]*.Opt;-1").nes."" Then Purge/NoConfirm/Log [...]*.Opt
804	- If F$Search("[...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [...]*$(O)
805	- If F$Search("[...]*$(E);-1").nes."" Then Purge/NoConfirm/Log [...]*$(E)
806	- If F$Search("config.h;-1").nes."" Then Purge/NoConfirm/Log config.h
807	- If F$Search("config.sh;-1").nes."" Then Purge/NoConfirm/Log config.sh
808	- If F$Search("vmsish.h;-1").nes."" Then Purge/NoConfirm/Log vmsish.h
809	- If F$Search("vms.c;-1")   .nes."" Then Purge/NoConfirm/Log vms.c
810	- If F$Search("perlmain.c;-1")   .nes."" Then Purge/NoConfirm/Log perlmain.c
811	- If F$Search("uudmap.h;-1")   .nes."" Then Purge/NoConfirm/Log uudmap.h
812	- If F$Search("bitcount.h;-1")   .nes."" Then Purge/NoConfirm/Log bitcount.h
813	- If F$Search("mg_data.h;-1")   .nes."" Then Purge/NoConfirm/Log mg_data.h
814	- If F$Search("Perlshr_Gbl*.Mar;-1")   .nes."" Then Purge/NoConfirm/Log Perlshr_Gbl*.Mar
815	- If F$Search("[.ext.Opcode...];-1").nes."" Then Purge/NoConfirm/Log [.ext.Opcode]
816	- If F$Search("[.lib.auto...]*.al;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]*.al
817	- If F$Search("[.lib.auto...]autosplit.ix;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]autosplit.ix
818	- If F$Search("[.lib]Config.pm;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config.pm
819	- If F$Search("$(ARCHDIR)Config.pm;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config.pm
820	- If F$Search("[.lib]Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config_heavy.pl
821	- If F$Search("$(ARCHDIR)Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config_heavy.pl
822	- If F$Search("[.lib.VMS]*.*;-1").nes."" Then Purge/NoConfirm/Log [.lib.VMS]*.*
823	- If F$Search("$(ARCHCORE)*.*").nes."" Then Purge/NoConfirm/Log $(ARCHCORE)*.*
824	- If F$Search("[.lib]*.com;-1").nes."" Then Purge/NoConfirm/Log [.lib]*.com
825	- If F$Search("[.pod]*.com;-1").nes."" Then Purge/NoConfirm/Log [.pod]*.com
826	- If F$Search("[.utils]*.com;-1").nes."" Then Purge/NoConfirm/Log [.utils]*.com
827	- If F$Search("[.x2p]*.com;-1").nes."" Then Purge/NoConfirm/Log [.x2p]*.com
828	- If F$Search("[.lib]buildcustomize.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]buildcustomize.pl
829
830clean : tidy cleantest
831      	- $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=clean"
832	- If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*/Exclude=PerlShr_*.Opt
833	- If F$Search("[...]*$(O);*") .nes."" Then Delete/NoConfirm/Log [...]*$(O);*
834	- If F$Search("vmsish.h").nes."" Then Delete/NoConfirm/Log vmsish.h;*
835	- If F$Search("vms.c")   .nes."" Then Delete/NoConfirm/Log vms.c;*
836	- If F$Search("perlmain.c")   .nes."" Then Delete/NoConfirm/Log perlmain.c;*
837	- If F$Search("perlmini.c")   .nes."" Then Delete/NoConfirm/Log perlmini.c;*
838	- If F$Search("uudmap.h")   .nes."" Then Delete/NoConfirm/Log uudmap.h;*
839	- If F$Search("bitcount.h")   .nes."" Then Delete/NoConfirm/Log bitcount.h;*
840	- If F$Search("mg_data.h")   .nes."" Then Delete/NoConfirm/Log mg_data.h;*
841	- If F$Search("Perlshr_Gbl*.Mar")   .nes."" Then Delete/NoConfirm/Log Perlshr_Gbl*.Mar;*
842	- If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
843	- If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
844	- If F$Search("[.pod]roffitall").nes."" Then Delete/NoConfirm/Log [.pod]roffitall;*
845	- If F$Search("$(PERLDELTA_CURRENT)").nes."" Then Delete/NoConfirm/Log $(PERLDELTA_CURRENT);*
846	- If F$Search("[.pod]perlapi.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlapi.pod;*
847	- If F$Search("[.pod]perlintern.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlintern.pod;*
848	- If F$Search("[.pod]perlmodlib.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlmodlib.pod;*
849	- If F$Search("[.pod]perltoc.pod").nes."" Then Delete/NoConfirm/Log [.pod]perltoc.pod;*
850	- If F$Search("[.pod]perluniprops.pod").nes."" Then Delete/NoConfirm/Log [.pod]perluniprops.pod;*
851	- @extra_pods CLEAN
852	- If F$Search("[.lib]Config_git.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_git.pl;*
853	- If F$Search("git_version.h").nes."" Then Delete/NoConfirm/Log git_version.h;*
854
855realclean : clean
856      	- $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=realclean"
857	- $(MINIPERL) mkppport "--clean"
858	- If F$Search("*$(OLB)").nes."" Then Delete/NoConfirm/Log *$(OLB);*
859	- If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*
860	- If F$Search("config.h").nes."" Then Delete/NoConfirm/Log config.h;*
861	- If F$Search("config.sh").nes."" Then Delete/NoConfirm/Log config.sh;*
862	- $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" config
863	- If F$Search("[.lib.unicore...]*.pl").nes."" Then Delete/NoConfirm/Log [.lib.unicore...]*.pl;*
864	- If F$Search("[.lib.unicore]Properties.").nes."" Then Delete/NoConfirm/Log [.lib.unicore]Properties.;*
865	- $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" $(unidatadirs)
866	- If F$Search("Descrip.MMS").nes."" Then Delete/NoConfirm/Log Descrip.MMS;*
867	- If F$Search("extra_pods.Com").nes."" Then Delete/NoConfirm/Log extra_pods.Com;*
868	- If F$Search("extra.pods").nes."" Then Delete/NoConfirm/Log extra.pods;*
869	- $(MINIPERL) -e "use File::Path; rmtree(['[.CXX_REPOSITORY]', 'lib/auto','lib/VMS','lib/$(ARCHNAME)'],1,0);"
870	- If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
871	- If F$Search("[.lib]Config.pm").nes."" Then Delete/NoConfirm/Log [.lib]Config.pm;*
872	- If F$Search("[.lib]Config_heavy.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_heavy.pl;*
873	- If F$Search("[.lib]*.com").nes."" Then Delete/NoConfirm/Log [.lib]*.com;*
874	- If F$Search("[.lib...].exists").nes."" Then Delete/NoConfirm/Log [.lib...].exists;*
875	- If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
876	- If F$Search("[.utils]*.com").nes."" Then Delete/NoConfirm/Log [.utils]*.com;*
877	- If F$Search("[.x2p]*.com").nes."" Then Delete/NoConfirm/Log [.x2p]*.com;*
878	- If F$Search("$(ARCHDIR)Config.pm").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config.pm;*
879	- If F$Search("$(ARCHDIR)Config_heavy.pl").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config_heavy.pl;*
880	- If F$Search("[.utils]perldoc.com").nes."" Then Delete/NoConfirm/Log [.utils]perldoc.com;*
881	- If F$Search("[.utils]perlivp.com").nes."" Then Delete/NoConfirm/Log [.utils]perlivp.com;*
882	- If F$Search("[...]*$(E)").nes."" Then Delete/NoConfirm/Log [...]*$(E);*
883	- If F$Search("Perl_Setup.Com").nes."" Then Delete/NoConfirm/Log Perl_Setup.Com;*
884	- If F$Search("[.t]rantests.").nes."" Then Delete/NoConfirm/Log [.t]rantests.;*
885	- If F$Search("[.t]test_state.").nes."" Then Delete/NoConfirm/Log [.t]test_state.;*
886	- If F$Search("vmspipe.com").nes."" Then Delete/NoConfirm/Log vmspipe.com;*
887	- If F$Search("[.lib]buildcustomize.pl").nes."" Then Delete/NoConfirm/Log [.lib]buildcustomize.pl;*
888	- If F$Search("[.lib]config.pod").nes."" Then Delete/NoConfirm/Log [.lib]config.pod;*
889
890cleansrc : clean
891	- If F$Search("*.c;-1").nes."" Then Purge/NoConfirm/Log *.c
892	- If F$Search("*.h;-1").nes."" Then Purge/NoConfirm/Log *.h
893	- If F$Search("*.vms;-1").nes."" Then Purge/NoConfirm/Log *.vms
894	- If F$Search("[.vms]$(MAKEFILE);-1").nes."" Then Purge/NoConfirm/Log [.vms]$(MAKEFILE)
895	- If F$Search("[.vms]*.c;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.c
896	- If F$Search("[.vms]*.h;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.h
897	- If F$Search("[.vms]*.pl;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.pl
898	- If F$Search("[.vms]*.vms;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.vms
899	- If F$Search("[.vms...]*.pm;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.pm
900	- If F$Search("[.vms...]*.xs;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.xs
901!GROK!THIS!
902