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