This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate macro for OpenVMS debugger [perl #118447].
[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~
97abc6ad
HM
38
39#: >>>>> Architecture-specific options <<<<<
86da1428
CB
40.ifdef IXE
41O = .ibj
42OLB = .ilb
43E = .ixe
44.else
97abc6ad
HM
45.ifdef AXE
46# File type to use for object files
47O = .abj
48# File type to use for object libraries
49OLB = .alb
50# File type to use for executable images
51E = .axe
52.else
53# File type to use for object files
54O = .obj
55# File type to use for object libraries
56OLB = .olb
57# File type to use for executable images
58E = .exe
59.endif
86da1428 60.endif
97abc6ad 61
86da1428 62.ifdef __IA64__
86da1428
CB
63OBJVAL = $(O)
64.else
97abc6ad 65.ifdef __AXP__
97abc6ad
HM
66OBJVAL = $(O)
67.else
97abc6ad
HM
68OBJVAL = $(MMS$TARGET_NAME)$(O)
69.endif
86da1428 70.endif
97abc6ad 71
85988417 72PERL_VERSION = ~PV~
97abc6ad 73
429a5e67 74.ifdef MALLOC
b0d5070b
CB
75MALLOC_O = malloc$(O)
76MALLOC_C = malloc$(C)
429a5e67
DS
77.endif
78
97abc6ad
HM
79.ifdef DECC_SOCKETS
80SOCKET=1
81.endif
82
44caa20c
CB
83ARCHDIR = [.lib.$(ARCHNAME).$(PERL_VERSION)]
84ARCHCORE = [.lib.$(ARCHNAME).$(PERL_VERSION).CORE]
85ARCHAUTO = [.lib.$(ARCHNAME).$(PERL_VERSION).auto]
97abc6ad 86
97abc6ad
HM
87#: >>>>>Compiler-specific options <<<<<
88.ifdef GNUC
89.first
90 @ If F$TrnLnm("Sys").eqs."" Then Define/NoLog SYS GNU_CC_Include:[VMS]
91CC = gcc
97abc6ad
HM
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)
95XTRACCFLAGS = /Obj=$(MMS$TARGET_NAME)$(O)/NoCase_Hack/Optimize=2
96DBGSPECFLAGS =
429a5e67 97XTRADEF =
97abc6ad
HM
98XTRAOBJS =
99LIBS1 = GNU_CC:[000000]GCCLIB.OLB/Library
100LIBS2 = Sys$Share:VAXCRTL/Shareable
101POSIX =
102.else
103XTRAOBJS =
104LIBS1 = $(XTRAOBJS)
6fb2e99a 105DBGSPECFLAGS = /Show=(expansion,include)/machine
97abc6ad
HM
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
97abc6ad
HM
112 @ If F$TrnLnm("Sys").eqs."" .and. F$TrnLnm("DECC$System_Include").nes."" Then Define/NoLog SYS DECC$System_Include
113.ifdef __AXP__
787c52d8 114 @ Set Process/Privilege=(NoSYSNAM)
97abc6ad
HM
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
7558ebc2
PP
120.ifdef DECCXX
121XTRACCFLAGS = /Include=[]/Standard=ANSI/Prefix=All/Obj=$(OBJVAL)
122.else
97abc6ad 123XTRACCFLAGS = /Include=[]/Standard=Relaxed_ANSI/Prefix=All/Obj=$(OBJVAL)
7558ebc2 124.endif
97abc6ad
HM
125XTRADEF =
126POSIX = POSIX
97abc6ad
HM
127.endif
128
97abc6ad
HM
129#: >>>>> Configuration options <<<<<
130#: __DEBUG__: builds images with full VMS debugger support
131.ifdef __DEBUG__
132DBGCCFLAGS = /List/Debug/NoOpt$(DBGSPECFLAGS)
133DBGLINKFLAGS = /Trace/Debug/Map/Full/Cross
134DBG = DBG
135.else
136DBGCCFLAGS = /NoList
137DBGLINKFLAGS = /NoTrace/NoMap
138DBG =
139.endif
140
97abc6ad
HM
141.ifdef THREADED
142THREADDEF =
143THREAD = THREAD
144.endif
145
146.ifdef OLDTHREADED
429a5e67 147THREADDEF =
97abc6ad 148THREAD = THREAD
9ef4b0a6 149THRLIBS1 = sys$share:cma$lib_shr/share|sys$share:cma$rtl/share
97abc6ad 150.ifdef __AXP__
9ef4b0a6 151THRLIBS2 = sys$share:cma$open_lib_shr/share|sys$share:cma$open_rtl/share
97abc6ad
HM
152.endif
153.endif
154
3f39e13a
CB
155.ifdef MTU
156.ifdef MTK
157MTHREADLINKFLAGS = /THREADS=(MULTIPLE_KERNEL,UPCALLS)
158.else
159MTHREADLINKFLAGS = /THREADS=UPCALLS
160.endif
161.else
162MTHREADLINKFLAGS =
163.endif
164
97abc6ad 165# C preprocessor manifest "DEBUGGING" ==> perl -D, not the VMS debugger
e0261ef8 166.IFDEF LARGEFILE
96021e87
JM
167CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=$(LARGEFILE)
168X2PCFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=(PERL_FOR_X2P,$(LARGEFILE))
169CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=(PERL_CORE,$(LARGEFILE))
e0261ef8 170.ELSE
498336ed 171CFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)
e0261ef8
CB
172X2PCFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=PERL_FOR_X2P
173CORECFLAGS = $(XTRACCFLAGS)$(DBGCCFLAGS)$(FLAGS)/Define=PERL_CORE
174.ENDIF
175
97abc6ad
HM
176LINKFLAGS = $(DBGLINKFLAGS)
177
178MAKE = $(MMS)
179MAKEFILE = Descrip.MMS # this file
180NOOP = 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)
184MINIPERL_EXE = Sys$Disk:[]miniperl$(E)
f6b3c354 185MINIPERL = MCR $(MINIPERL_EXE) "-I[.lib]"
dfe814dc 186MINIPERLQ = MCR $(MINIPERL_EXE) ""-I[.lib]""
29637182 187XSUBPP = $(MINIPERL) "-I[.ext.re]" [.lib.extutils]xsubpp -noprototypes
97abc6ad
HM
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.
192INSTPERL = perl
7eb47696
NC
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
bfeb8220
CB
195.IFDEF __DEBUG__
196PERL_EXE = Sys$Disk:[]n$(DBG)perl$(E)
197.ELSE
7eb47696 198PERL_EXE = Sys$Disk:[]perl$(E)
bfeb8220 199.ENDIF
7eb47696 200PERL = MCR $(PERL_EXE) "-I[.lib]"
97abc6ad
HM
201
202# Space-separated list of "static" extensions to build into perlshr (case counts).
203MYEXT = 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
859ef0cd 207myextobj = DynaLoader$(O),
97abc6ad
HM
208EXT = $(MYEXT)
209extobj = $(myextobj)
97abc6ad 210
429a5e67
DS
211.ifdef LIBS2
212.else
213LIBS2=
214.endif
97abc6ad 215
9ef4b0a6
BH
216.ifdef THRLIBS1
217.else
218THRLIBS1=
219.endif
220
221.ifdef THRLIBS2
222.else
223THRLIBS2=
224.endif
225
226FULLLIBS2 = $(LIBS2)|$(THRLIBS1)|$(THRLIBS2)
227
97abc6ad
HM
228#### End of system configuration section. ####
229
046cc26c 230c0 = $(MALLOC_C) av.c deb.c doio.c doop.c dump.c globals.c gv.c hv.c mro.c
7ee2227d 231c1 = mg.c locale.c mathoms.c miniperlmain.c numeric.c op.c pad.c perl.c perlapi.c perlio.c
10bc17b6 232c2 = 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
26ea9e12 233c3 = run.c scope.c sv.c taint.c toke.c universal.c utf8.c util.c vms.c keywords.c
b0d5070b
CB
234c = $(c0) $(c1) $(c2) $(c3)
235
5c9818e9 236obj0 = perl$(O)
046cc26c 237obj1 = $(MALLOC_O) av$(O) deb$(O) doio$(O) doop$(O) dump$(O) mro$(O) globals$(O) gv$(O) hv$(O)
cfc889ad 238obj2 = keywords$(O) locale$(O) mathoms$(O) mg$(O) miniperlmain$(O) numeric$(O) op$(O) pad$(O) perlapi$(O) perlio$(O)
5c9818e9 239obj3 = perly$(O) pp$(O) pp_ctl$(O) pp_hot$(O) reentr$(O) pp_pack$(O) pp_sort$(O) pp_sys$(O) regcomp$(O)
48462a74 240obj4 = regexec$(O) run$(O) scope$(O) sv$(O) taint$(O) toke$(O) universal$(O) utf8$(O) util$(O) vms$(O)
5c9818e9
CB
241
242mini_obj = perlmini$(O) $(obj1) $(obj2) $(obj3) $(obj4)
b0d5070b
CB
243obj = $(obj0) $(obj1) $(obj2) $(obj3) $(obj4)
244
63e9201e 245h0 = av.h config.h cop.h cv.h embed.h embedvar.h
02e4b6fe 246h1 = EXTERN.h form.h gv.h handy.h hv.h l1_char_class_tab.h INTERN.h intrpvar.h
8b09643d
NC
247h2 = iperlsys.h keywords.h mydtrace.h mg.h mg_vtable.h nostdio.h op.h
248h3 = op_reg_common.h opcode.h opnames.h overload.h pad.h parser.h patchlevel.h
249h4 = perl.h perlapi.h perlio.h perlsdio.h perlvars.h perly.h
66b82e1f 250h5 = pp.h pp_proto.h proto.h regcomp.h regexp.h regnodes.h scope.h
ef4abe76
NC
251h6 = sv.h thread.h utf8.h util.h vmsish.h warnings.h xsub.h
252h = $(h0) $(h1) $(h2) $(h3) $(h4) $(h5) $(h6)
787c52d8 253
787c52d8 254acopt = $(ARCHCORE)perlshr_attr.opt $(ARCHCORE)$(DBG)perlshr_bld.opt
5c0877fa 255ac = archcore_includes.ts $(acopt)
c05f8f3d 256
9387abf8
NC
257generated_headers = uudmap.h bitcount.h mg_data.h
258
97abc6ad
HM
259CRTL = []crtl.opt
260CRTLOPTS =,$(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
97abc6ad
HM
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
ca12659b
NC
279# Directories of Unicode data files generated by mktables
280unidatadirs = lib/unicore/To lib/unicore/lib
281
97abc6ad 282# Modules which must be installed before we can build extensions
7353f64c 283LIBPREREQ = $(ARCHDIR)Config.pm $(ARCHDIR)Config_heavy.pl [.lib.VMS]Filespec.pm $(ARCHDIR)vmspipe.com [.lib]buildcustomize.pl
97abc6ad 284
4403bf93 285utils1 = [.utils]perldoc.com [.lib.ExtUtils]Miniperl.pm [.utils]c2ph.com [.utils]h2ph.com
c9dab4e9 286utils2 = [.utils]h2xs.com [.utils]libnetcfg.com [.lib]perlbug.com [.utils]json_pp.com
d658129c 287utils3 = [.utils]perlivp.com [.lib]splain.com [.utils]pl2pm.com [.utils]xsubpp.com [.utils]pod2html.com [.utils]instmodsh.com
bb4e9162 288utils4 = [.utils]enc2xs.com [.utils]piconv.com [.utils]cpan.com [.utils]prove.com [.utils]ptar.com [.utils]ptardiff.com [.utils]shasum.com
fb598ba5 289utils5 = [.utils]corelist.com [.utils]config_data.com [.utils]ptargrep.com [.utils]zipdetails.com
97abc6ad
HM
290
291.ifdef NOX2P
bfeb8220 292all : base extras archcorefiles preplibrary [.pod]perltoc.pod
1b2d7687
PP
293 @ QUALIFIERS := $(MMSQUALIFIERS)
294 @ QUALIFIERS = QUALIFIERS - """" - """"
dfe814dc 295 @ write sys$output " "
1b2d7687 296 @ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
97abc6ad 297.else
bfeb8220 298all : base extras x2p archcorefiles preplibrary [.pod]perltoc.pod
1b2d7687
PP
299 @ QUALIFIERS := $(MMSQUALIFIERS)
300 @ QUALIFIERS = QUALIFIERS - """" - """"
dfe814dc 301 @ write sys$output " "
1b2d7687 302 @ write sys$output " Everything is up to date. '$(MMS)''QUALIFIERS' test' to run test suite."
97abc6ad 303.endif
9c3905ef 304
5c9818e9 305git_version.h : $(MINIPERL_EXE) make_patchnum.pl
16ad9bfa 306 $(MINIPERL) make_patchnum.pl
05b0cfd1 307
f952ce75 308base : miniperl git_version.h nonxsext perl
97abc6ad 309 @ $(NOOP)
33c64ab2 310extras : dynext libmods utils extra.pods
97abc6ad
HM
311 @ $(NOOP)
312libmods : $(LIBPREREQ)
313 @ $(NOOP)
bb4e9162 314utils : $(utils1) $(utils2) $(utils3) $(utils4) $(utils5)
97abc6ad 315 @ $(NOOP)
71a0fcfa 316x2p : [.x2p]$(DBG)a2p$(E) [.x2p]s2p.com [.x2p]find2perl.com
97abc6ad 317 @ $(NOOP)
414b89cc
CB
318extra.pods : miniperl
319 @ @extra_pods.com
97abc6ad 320
583aa5c2 321PERLDELTA_CURRENT = [.pod]perl5191delta.pod
600dcb9e
CB
322
323$(PERLDELTA_CURRENT) : [.pod]perldelta.pod
c6568584 324 Copy/NoConfirm/Log $(MMS$SOURCE) $(PERLDELTA_CURRENT)
1400179b 325
6e2c8928
NC
326[.pod]perlmodlib.pod : [.pod]perlmodlib.pl MANIFEST $(MINIPERL_EXE)
327 $(MINIPERL) [.pod]perlmodlib.pl "-q"
328
54df2684
NC
329[.pod]perlapi.pod : [.pod]perlintern.pod
330 @ $(NOOP)
331
30a06a3a
CB
332[.pod]perlintern.pod : embed.fnc autodoc.pl $(MINIPERL_EXE)
333 $(MINIPERL) autodoc.pl
334
600dcb9e 335[.pod]perltoc.pod : $(PERLDELTA_CURRENT) [.pod]perlapi.pod [.pod]perlintern.pod [.pod]perlmodlib.pod extra.pods $(PERL_EXE)
bfeb8220 336 @ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
b78c1104 337 $(PERL) "-f" [.pod]buildtoc "-q"
97abc6ad 338
7e2254de 339archcorefiles : $(ac) $(ARCHAUTO)time.stamp
97abc6ad
HM
340 @ $(NOOP)
341
cb251201
NC
342# See the comment in Makefile.SH explaining this seemingly cranky ordering
343$(MINIPERL_EXE) : [.lib]buildcustomize.pl
344 @ $(NOOP)
5e4c4c91 345
93d6612c 346vmspipe.com : [.vms]vmspipe.com
1f74f634 347 Copy/NoConfirm/Log $(MMS$SOURCE) []
93d6612c
CB
348
349miniperl : $(DBG)miniperl$(E) vmspipe.com
97abc6ad 350 @ Continue
cb251201
NC
351
352[.lib]buildcustomize.pl : miniperlmain$(O), $(DBG)libperlmini$(OLB) $(CRTL) write_buildcustomize.pl [.lib.VMS]Filespec.pm
353 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MINIPERL_EXE) miniperlmain$(O), $(DBG)libperlmini$(OLB)/Library/Include=globals $(CRTLOPTS)
b78ac715 354 $(MINIPERL) "-f" write_buildcustomize.pl
cb251201 355
5c9818e9
CB
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)
97abc6ad
HM
358
359$(DBG)libperl$(OLB) : $(obj)
360 @ If F$Search("$(MMS$TARGET)").eqs."" Then Library/Object/Create $(MMS$TARGET)
8f9bf0bf 361 Library/Object/Replace $(MMS$TARGET) $(MMS$SOURCE_LIST)
97abc6ad 362
5c9818e9
CB
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
116e14c1
CB
367perlmain.c : miniperlmain.c $(MINIPERL_EXE) [.lib.ExtUtils]Miniperl.pm
368 $(MINIPERL) -"MExtUtils::Miniperl" -e "writemain(@ARGV)" "$(EXT)" > perlmain.c
97abc6ad 369
97abc6ad
HM
370.ifdef __DEBUG__
371# Link an extra perl that doesn't invoke the debugger
1f052492 372perl : $(DBG)perl$(E)
3f39e13a 373 Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/NoDebug/Trace/NoMap/NoCross/NoFull/Exe=N$(DBG)perl$(E) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
97abc6ad 374.else
1f052492 375perl : $(DBG)perl$(E)
97abc6ad
HM
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"
3f39e13a 381 Link $(LINKFLAGS)$(MTHREADLINKFLAGS)/Exe=$(MMS$TARGET) perlmain$(O), perlshr.opt/Option, perlshr_attr.opt/Option $(CRTLOPTS)
97abc6ad 382
97abc6ad
HM
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
5c9818e9
CB
386perlmini.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
395perlmini$(O) : perlmini.c
396 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
397
6f83ef0e 398bitcount.h mg_data.h : uudmap.h
45b279ec 399 @ $(NOOP)
6999193b 400
92d23424 401uudmap.h : generate_uudmap$(E)
9387abf8 402 MCR SYS$DISK:[]generate_uudmap$(E) $(generated_headers)
9444d213 403
c3301a92 404generate_uudmap$(E) : generate_uudmap$(O) $(CRTL)
9444d213
NC
405 Link $(LINKFLAGS)/NoDebug/Trace/NoMap/NoFull/NoCross/Exe=$(MMS$TARGET) generate_uudmap$(O) $(CRTLOPTS)
406
6f83ef0e 407generate_uudmap$(O) : generate_uudmap.c mg_raw.h
b50d78f7
CB
408 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
409
97abc6ad
HM
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
93ea32b8 413# The song and dance with gen_shrfls.opt accommodates DCL's line length limit.
97abc6ad 414$(DBG)perlshr_xtras.ts : perl.h config.h vmsish.h proto.h [.vms]gen_shrfls.pl $(MINIPERL_EXE) $(MAKEFILE) $(CRTL)
93ea32b8 415 @ $(MINIPERL) makedef.pl "PLATFORM=vms" > makedef.lis
b3ecbfd3
CB
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
97abc6ad
HM
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
97abc6ad 422
1f74f634 423$(ARCHDIR)Config.pm : [.lib]Config.pm
97abc6ad 424 Create/Directory $(ARCHDIR)
1f74f634 425 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
97abc6ad 426
2d9d8159
NC
427$(ARCHDIR)Config_heavy.pl : [.lib]Config_heavy.pl
428 Create/Directory $(ARCHDIR)
429 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHDIR)
430
1f74f634 431[.lib]Config.pm : config.h $(MINIPERL_EXE)
97abc6ad
HM
432 $(MINIPERL) ConfigPM.
433
93d6612c 434$(ARCHDIR)vmspipe.com : vmspipe.com
1f74f634 435 Copy $(MMS$SOURCE) $(ARCHDIR)
93d6612c 436
3dc3a597 437unidatafiles.ts : $(MINIPERL_EXE) [.lib]Config.pm [.lib.unicore]mktables nonxsext
3df51b85 438 $(MINIPERL) [.lib.unicore]mktables "-C" [.lib.unicore] "-P" [.pod] "-makelist" "-maketest" "-p"
23b62609
CB
439 @ If F$Search("$(MMS$TARGET)").nes."" Then Delete/NoLog/NoConfirm $(MMS$TARGET);*
440 @ Copy/NoConfirm _NLA0: $(MMS$TARGET)
ca12659b 441
5e4c4c91 442DynaLoader$(O) : [.lib]buildcustomize.pl $(ARCHDIR)Config.pm $(MINIPERL_EXE) [.lib.VMS]Filespec.pm
859ef0cd 443 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "DynaLoader"
25ea24bb 444
859ef0cd 445dynext : $(LIBPREREQ) $(DBG)perlshr$(E) unidatafiles.ts DynaLoader$(O) preplibrary makeppport $(MINIPERL_EXE)
a34ce875
NC
446 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--dynamic" "--static"
447
291c8c21 448nonxsext : $(LIBPREREQ) preplibrary $(MINIPERL_EXE) [.pod]perlfunc.pod
a34ce875 449 $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--nonxs"
97abc6ad 450
97abc6ad
HM
451[.lib.VMS]Filespec.pm : [.vms.ext]Filespec.pm
452 @ If F$Search("[.lib]VMS.Dir").eqs."" Then Create/Directory [.lib.VMS]
1f74f634 453 Copy/NoConfirm/Log $(MMS$SOURCE) [.lib.VMS]
97abc6ad 454
4403bf93 455[.utils]perldoc.com : [.utils]perldoc.PL $(ARCHDIR)Config.pm
08da30e0 456 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
457
458[.lib.ExtUtils]Miniperl.pm : Minimod.PL miniperlmain.c $(ARCHDIR)Config.pm
08da30e0 459 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE) >$(MMS$TARGET)
97abc6ad 460
cdf8b154 461[.utils]perlivp.com : [.utils]perlivp.PL $(ARCHDIR)Config.pm
08da30e0 462 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
cdf8b154 463
2bfebb05 464[.utils]cpan.com : [.utils]cpan.PL $(ARCHDIR)Config.pm
08da30e0 465 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
2bfebb05 466
4b618757 467[.utils]prove.com : [.utils]prove.PL $(ARCHDIR)Config.pm
08da30e0 468 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
291d3373
RGS
469
470[.utils]ptar.com : [.utils]ptar.PL $(ARCHDIR)Config.pm
08da30e0 471 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
4b618757 472
b8669316 473[.utils]ptardiff.com : [.utils]ptardiff.PL $(ARCHDIR)Config.pm
08da30e0 474 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
b8669316 475
deabda19
CBW
476[.utils]ptargrep.com : [.utils]ptargrep.PL $(ARCHDIR)Config.pm
477 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
478
3ddf9550 479[.utils]shasum.com : [.utils]shasum.PL $(ARCHDIR)Config.pm
08da30e0 480 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
3ddf9550 481
bb4e9162 482[.utils]config_data.com : [.utils]config_data.PL $(ARCHDIR)Config.pm
08da30e0 483 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
bb4e9162 484
6efb3e4d 485[.utils]corelist.com : [.utils]corelist.PL $(ARCHDIR)Config.pm
08da30e0 486 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
6efb3e4d 487
97abc6ad 488[.utils]c2ph.com : [.utils]c2ph.PL $(ARCHDIR)Config.pm
08da30e0 489 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad 490
d9f91944
CB
491[.utils]json_pp.com : [.utils]json_pp.PL $(ARCHDIR)Config.pm
492 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
493
14d70106 494[.utils]enc2xs.com : [.utils]enc2xs.PL $(ARCHDIR)Config.pm
08da30e0 495 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
14d70106 496
97abc6ad 497[.utils]h2ph.com : [.utils]h2ph.PL $(ARCHDIR)Config.pm
08da30e0 498 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
499
500[.utils]h2xs.com : [.utils]h2xs.PL $(ARCHDIR)Config.pm
08da30e0 501 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad 502
88be34b6 503[.utils]instmodsh.com : [.utils]instmodsh.PL $(ARCHDIR)Config.pm
08da30e0 504 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
88be34b6 505
5fa137f1 506[.utils]libnetcfg.com : [.utils]libnetcfg.PL $(ARCHDIR)Config.pm
08da30e0 507 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
5fa137f1 508
97abc6ad 509[.lib]perlbug.com : [.utils]perlbug.PL $(ARCHDIR)Config.pm
08da30e0 510 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
1f74f634 511 Copy/NoConfirm/Log [.utils]perlbug.com [.lib]
97abc6ad 512
14d70106 513[.utils]piconv.com : [.utils]piconv.PL $(ARCHDIR)Config.pm
08da30e0 514 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
14d70106 515
97abc6ad 516[.utils]pl2pm.com : [.utils]pl2pm.PL $(ARCHDIR)Config.pm
08da30e0 517 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
518
519[.lib]splain.com : [.utils]splain.PL $(ARCHDIR)Config.pm
08da30e0 520 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
1f74f634 521 Copy/NoConfirm/Log [.utils]splain.com [.lib]
97abc6ad
HM
522
523[.x2p]find2perl.com : [.x2p]find2perl.PL $(ARCHDIR)Config.pm
08da30e0 524 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad
HM
525
526[.x2p]s2p.com : [.x2p]s2p.PL $(ARCHDIR)Config.pm
08da30e0 527 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
97abc6ad 528
798fd3e2 529[.utils]xsubpp.com : [.utils]xsubpp.PL $(ARCHDIR)Config.pm nonxsext
08da30e0 530 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
5fa137f1 531
08ad9465
CBW
532[.utils]zipdetails.com : [.utils]zipdetails.PL $(ARCHDIR)Config.pm nonxsext
533 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
534
d658129c
FR
535[.utils]pod2html.com : [.utils]pod2html.PL $(ARCHDIR)Config.pm nonxsext
536 $(MINIPERL) -"I[-.lib]" $(MMS$SOURCE)
537
97abc6ad
HM
538# Rename catches problem with some DECC versions in which object file is
539# placed in current default dir, not same one as source file.
540[.x2p]$(DBG)a2p$(E) : [.x2p]a2p$(O), [.x2p]hash$(O), [.x2p]str$(O), [.x2p]util$(O), [.x2p]walk$(O)
541 @ If F$Search("hash$(O)").nes."" Then Rename/NoLog hash$(O),str$(O),util$(O),walk$(O) [.x2p]
542 Link $(LINKFLAGS) /Exe=$(MMS$TARGET) $(MMS$SOURCE_LIST) $(CRTLOPTS)
543
8f9bf0bf 544# Accommodate buggy cpp in some version of DECC, which chokes on illegal
97abc6ad
HM
545# filespec "y.tab.c", and broken gcc cpp, which doesn't start #include ""
546# search in same dir as source file
046cc26c 547[.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)
97abc6ad 548 $(MINIPERL) -pe "s/^#line\s+(\d+)\s+\Q""y.tab.c""/#line $1 ""y_tab.c""/;" $(MMS$SOURCE) >$(MMS$TARGET_NAME)_vms.c
fe5e93de 549 $(CC) $(X2PCFLAGS) /Object=$(MMS$TARGET)/Include=([.x2p],[],"./x2p") $(MMS$TARGET_NAME)_vms.c
97abc6ad
HM
550 Delete/Log/NoConfirm $(MMS$TARGET_NAME)_vms.c;
551
552# gcc cpp broken -- doesn't look in directory of source file for #include ""
553.ifdef GNUC
554[.x2p]hash$(O) : [.x2p]hash.c
3a385817 555 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
556
557[.x2p]str$(O) : [.x2p]str.c
3a385817 558 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
559
560[.x2p]util$(O) : [.x2p]util.c
3a385817 561 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
562
563[.x2p]walk$(O) : [.x2p]walk.c
3a385817 564 $(CC) $(X2PCFLAGS) /Include=[.x2p] $(MMS$SOURCE)
97abc6ad
HM
565.endif
566
9b5878df 567preplibrary : $(MINIPERL_EXE) $(LIBPREREQ)
c43be3e8 568 @ $(NOOP)
97abc6ad 569
d1a21686 570makeppport : $(MINIPERL_EXE) $(ARCHDIR)Config.pm nonxsext
42e07562
MHM
571 $(MINIPERL) mkppport
572
bfeb8220 573install.html : [.pod]perltoc.pod
c645ec3f
GS
574 @ @perl_setup.com
575 @ If F$Search("perl_root:[lib]html.dir").eqs."" Then Create/Directory perl_root:[lib.html]
576 $(MINIPERL) installhtml. "--podroot=. --recurse --htmldir=/perl_root/lib/html --htmlroot=.. --verbose"
b4bc034f 577
97abc6ad
HM
578printconfig :
579 @ @[.vms]make_command $(MMS) $(MMSQUALIFIERS) $(MMSTARGETS)
046cc26c 580 @ @[.vms]myconfig "$(CC)" "$(CFLAGS)" "$(LINKFLAGS)" "$(LIBS1)" "$(FULLLIBS2)" "$(EXT)" "$(DBG)"
97abc6ad 581
424a8fe9 582# The following files are generated automatically
d500e60d 583# embed.pl: proto.h embed.h embedvar.h perlapi.h perlapi.c
897d3989 584# opcode.pl: opcode.h opnames.h pp_proto.h
5f286eee
CB
585# regcomp.pl: regnodes.h
586# warnings.pl: warnings.h lib/warnings.pm
97abc6ad
HM
587# The correct versions should be already supplied with the perl kit,
588# in case you don't have perl available.
5f286eee
CB
589# To force them to be regenerated, run
590# perl regen.pl
591# with your existing copy of perl
592# (make regen_headers is kept for backwards compatibility)
593
594regen :
595 $(INSTPERL) regen.pl
596
97abc6ad 597regen_headers :
5f286eee 598 $(INSTPERL) regen.pl -v
97abc6ad 599
97abc6ad
HM
600.ifdef LINK_ONLY
601.else
787c52d8 602perly$(O) : perly.c, perly.h, $(h)
97abc6ad
HM
603.endif
604
8b0640a1
CB
605VMSFSPEC_T = [.t.lib]vmsfspec.t
606
607$(VMSFSPEC_T) : [.vms.ext]filespec.t
608 Copy/NoConfirm/Log $(MMS$SOURCE) $(VMSFSPEC_T)
97abc6ad 609
7558ebc2
PP
610check : test
611 @ Continue
612
6e2cec71 613test : all [.t.lib]vmsfspec.t
20533b5a 614 @ PERL_TEST_DRIVER == "TEST."
97386f52 615 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
40996b78
AT
616 @ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
617
6e2cec71 618test_harness : all [.t.lib]vmsfspec.t
20533b5a 619 @ PERL_TEST_DRIVER == "harness."
97386f52 620 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
dfe814dc 621 @ $(MINIPERL) -e "print ""Ran tests"";" > [.t]rantests.
97abc6ad 622
7353f64c 623minitest : $(MINITEST_EXE) [.lib.VMS]Filespec.pm unidatafiles.ts
68ccb645 624 @ PERL_TEST_DRIVER == "minitest"
97386f52 625 - @[.vms]test.com "$(E)" "$(__DEBUG__)"
68ccb645 626
3a385817
GS
627# install ought not need a source, but it doesn't work if one's not
628# there. Go figure...
5ea6993d 629install : $(PERL_EXE)
c645ec3f 630 @ @perl_setup.com
29637182 631 If F$TrnLnm("Sys") .nes. "" Then Deass SYS
5ea6993d
CB
632 @ define/user_mode $(DBG)PERLSHR SYS$DISK:[]$(DBG)perlshr$(E)
633 $(PERL) installperl
97abc6ad
HM
634
635archify : all
44caa20c 636 @ Write Sys$Output "Moving files to architecture-specific locations for $(ARCHNAME)"
97abc6ad
HM
637 archroot = "$(ARCHAUTO)" - "]" + "...]"
638 Backup/Log/Verify [.lib.auto...]*.*;/Exclude=(*.al,*.ix) 'archroot'/New_Version
639 Delete/Log/NoConfirm [.lib.auto...]*.*;*/exclude=(*.al,*.ix,*.dir)
640 Delete/Log/NoConfirm [.lib]Config.pm;*
2d9d8159 641 Delete/Log/NoConfirm [.lib]Config_heavy.pl;*
71a0fcfa
PP
642 Copy/Log/NoConfirm *$(E);,[.x2p]$(DBG)a2p$(E); $(ARCHDIR)
643 Delete/Log/NoConfirm Perl*$(E);*,[.x2p]$(DBG)a2p$(E);*
1b2d7687
PP
644 @ QUALIFIERS := $(MMSQUALIFIERS)
645 @ QUALIFIERS = QUALIFIERS - """" - """"
97abc6ad
HM
646 @ Write Sys$Output "Architecture-specific setup completed."
647 @ Write Sys$Output "Before building for another architecture, be sure to"
1b2d7687 648 @ Write Sys$Output " 1. $(MMS)''QUALIFIERS' clean"
97abc6ad
HM
649 @ Write Sys$Output " 2. Delete Miniperl$(E)"
650
651# CORE subset for MakeMaker, so we can build Perl without sources
5c0877fa
CB
652
653archcore_includes.ts :
97abc6ad 654 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
5c0877fa
CB
655 Copy/NoConfirm/Log *.h $(ARCHCORE)
656 @ Copy _NLA0: $(MMS$TARGET)
97abc6ad
HM
657$(ARCHCORE)$(DBG)libperl$(OLB) : $(DBG)libperl$(OLB) $(DBG)perlshr_xtras.ts
658 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
1f74f634 659 Copy/NoConfirm/Log $(MMS$SOURCE) $(ARCHCORE)
97abc6ad
HM
660$(ARCHCORE)perlshr_attr.opt : $(DBG)perlshr_xtras.ts
661 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
d510da7a 662 Copy/NoConfirm/Log perlshr_attr.opt $(ARCHCORE)
97abc6ad
HM
663$(ARCHCORE)$(DBG)perlshr_bld.opt : $(DBG)perlshr_xtras.ts
664 @ If F$Search("$(ARCHDIR)CORE.dir").eqs."" Then Create/Directory $(ARCHCORE)
1f74f634 665 Copy/NoConfirm/Log $(DBG)perlshr_bld.opt $(ARCHCORE)
97abc6ad
HM
666$(ARCHAUTO)time.stamp :
667 @ If F$Search("$(ARCHDIR)auto.dir").eqs."" Then Create/Directory $(ARCHAUTO)
668 @ If F$Search("$(MMS$TARGET)").eqs."" Then Copy/NoConfirm _NLA0: $(MMS$TARGET)
669
670.ifdef LINK_ONLY
671.else
672# We need an action line here for broken older versions of MMS which
673# otherwise conclude that they should be compiling [.x2p]utils.c :-(
3a385817
GS
674#util$(O) : util.c
675# $(CC) $(CORECFLAGS) $(MMS$SOURCE)
97abc6ad 676# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
1f74f634
CB
677av$(O) : av.c $(h)
678 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
679deb$(O) : deb.c $(h)
680 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
681doio$(O) : doio.c $(h)
682 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
683doop$(O) : doop.c $(h)
684 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
685dump$(O) : dump.c $(h)
3a385817 686 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
9387abf8 687globals$(O) : globals.c $(generated_headers) $(h)
b50d78f7 688 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 689gv$(O) : gv.c $(h)
3a385817 690 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
e1a479c5
BB
691mro$(O) : mro.c $(h)
692 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 693hv$(O) : hv.c $(h)
3a385817 694 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
cfc889ad
CB
695keywords$(O) : keywords.c $(h)
696 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 697locale$(O) : locale.c $(h)
3a385817 698 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 699malloc$(O) : malloc.c $(h)
3a385817 700 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
9fcbb300
JM
701mathoms$(O) : mathoms.c $(h)
702 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 703mg$(O) : mg.c $(h)
3a385817 704 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 705miniperlmain$(O) : miniperlmain.c $(h)
3a385817 706 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 707numeric$(O) : numeric.c $(h)
cfbf4ea5 708 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 709pad$(O) : pad.c $(h)
b0bfe279 710 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 711op$(O) : op.c $(h)
3a385817 712 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
05b0cfd1 713perl$(O) : perl.c git_version.h $(h)
3a385817 714 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 715perlapi$(O) : perlapi.c $(h)
cfbf4ea5 716 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 717perlio$(O) : perlio.c config.h $(h)
3a385817 718 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
5c9818e9 719perlmain$(O) : perlmain.c $(h)
3a385817 720 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 721perly$(O) : perly.c $(h)
b0bfe279 722 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 723pp$(O) : pp.c $(h)
3a385817 724 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 725pp_ctl$(O) : pp_ctl.c $(h)
3a385817 726 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 727pp_hot$(O) : pp_hot.c $(h)
3a385817 728 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 729pp_pack$(O) : pp_pack.c $(h)
3a385817 730 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 731pp_sort$(O) : pp_sort.c $(h)
3a385817 732 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 733pp_sys$(O) : pp_sys.c $(h)
3a385817 734 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 735reentr$(O) : reentr.c $(h)
3a385817 736 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 737regcomp$(O) : regcomp.c $(h)
3a385817 738 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 739regexec$(O) : regexec.c $(h)
3a385817 740 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 741run$(O) : run.c $(h)
3a385817 742 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 743scope$(O) : scope.c $(h)
3a385817 744 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
94a11853 745sv$(O) : sv.c $(h)
3a385817 746 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 747taint$(O) : taint.c $(h)
3a385817 748 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 749toke$(O) : toke.c $(h)
3a385817 750 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 751universal$(O) : universal.c $(h)
3a385817 752 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 753utf8$(O) : utf8.c $(h)
3a385817 754 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 755util$(O) : util.c $(h)
3937c24e 756 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
1f74f634 757vms$(O) : vms.c $(h)
3a385817
GS
758 $(CC) $(CORECFLAGS) $(MMS$SOURCE)
759
046cc26c 760[.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
3a385817
GS
761 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
762
046cc26c 763[.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
3a385817
GS
764 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
765
046cc26c 766[.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
3a385817
GS
767 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
768
046cc26c 769[.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
3a385817
GS
770 $(CC) $(X2PCFLAGS) $(MMS$SOURCE)
771
97abc6ad
HM
772# End of automatically generated make dependencies
773.endif # !LINK_ONLY
774
775vmsish.h : [.vms]vmsish.h
1f74f634 776 Copy/Log/NoConfirm [.vms]vmsish.h []
97abc6ad
HM
777
778vms.c : [.vms]vms.c
779 Copy/Log/Noconfirm [.vms]vms.c []
780
781$(CRTL) : $(MAKEFILE)
046cc26c 782 @ @[.vms]genopt "$(CRTL)/Write" "|" "$(LIBS1)|$(FULLLIBS2)"
97abc6ad 783
dfe814dc
PP
784ok : $(utils)
785 $(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)"
786
787okfile : $(utils)
788 $(MINIPERL) lib/perlbug.com -ok -s "(UNINSTALLED)" "-F" perl.ok
789
790nok : $(utils)
791 @ write sys$output " "
792 @ write sys$output " Please type the command:"
793 @ write sys$output " "
794 @ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"""
795
796nokfile : $(utils)
797 @ write sys$output " "
798 @ write sys$output " Please type the command:"
799 @ write sys$output " "
800 @ write sys$output "$(MINIPERLQ) lib/perlbug.com -nok -s ""(UNINSTALLED)"" ""-F"" perl.nok"
801
97abc6ad
HM
802cleanlis :
803 - If F$Search("*.Lis").nes."" Then Delete/NoConfirm/Log *.Lis;*
804 - If F$Search("*.CPP").nes."" Then Delete/NoConfirm/Log *.CPP;*
805 - If F$Search("*.Map").nes."" Then Delete/NoConfirm/Log *.Map;*
806
59d8d783 807cleantest :
31e425b5 808 - If F$Search("[.t]Perl$(E)").nes."" Then Delete/NoConfirm/Log [.t]Perl$(E);*
59d8d783 809 - If F$Search("[.t]VMSPIPE.COM").nes."" Then Delete/NoConfirm/Log [.t]VMSPIPE.COM;*
59d8d783 810
97abc6ad
HM
811tidy : cleanlis
812 - If F$Search("[...]*.Opt;-1").nes."" Then Purge/NoConfirm/Log [...]*.Opt
813 - If F$Search("[...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [...]*$(O)
814 - If F$Search("[...]*$(E);-1").nes."" Then Purge/NoConfirm/Log [...]*$(E)
97386f52
CB
815 - If F$Search("config.h;-1").nes."" Then Purge/NoConfirm/Log config.h
816 - If F$Search("config.sh;-1").nes."" Then Purge/NoConfirm/Log config.sh
817 - If F$Search("vmsish.h;-1").nes."" Then Purge/NoConfirm/Log vmsish.h
818 - If F$Search("vms.c;-1") .nes."" Then Purge/NoConfirm/Log vms.c
819 - If F$Search("perlmain.c;-1") .nes."" Then Purge/NoConfirm/Log perlmain.c
9444d213 820 - If F$Search("uudmap.h;-1") .nes."" Then Purge/NoConfirm/Log uudmap.h
efa50c51 821 - If F$Search("bitcount.h;-1") .nes."" Then Purge/NoConfirm/Log bitcount.h
6f83ef0e 822 - If F$Search("mg_data.h;-1") .nes."" Then Purge/NoConfirm/Log mg_data.h
97abc6ad 823 - If F$Search("Perlshr_Gbl*.Mar;-1") .nes."" Then Purge/NoConfirm/Log Perlshr_Gbl*.Mar
9c8fb6b6
CB
824 - If F$Search("[.ext.Opcode...];-1").nes."" Then Purge/NoConfirm/Log [.ext.Opcode]
825 - If F$Search("[.vms.ext...]*.C;-1").nes."" Then Purge/NoConfirm/Log [.vms.ext...]*.C
826 - If F$Search("[.vms.ext...]*$(O);-1").nes."" Then Purge/NoConfirm/Log [.vms.ext...]*$(O)
97386f52
CB
827 - If F$Search("[.lib.auto...]*.al;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]*.al
828 - If F$Search("[.lib.auto...]autosplit.ix;-1").nes."" Then Purge/NoConfirm/Log [.lib.auto...]autosplit.ix
97386f52 829 - If F$Search("[.lib]Config.pm;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config.pm
97abc6ad 830 - If F$Search("$(ARCHDIR)Config.pm;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config.pm
97386f52 831 - If F$Search("[.lib]Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]Config_heavy.pl
2d9d8159 832 - If F$Search("$(ARCHDIR)Config_heavy.pl;-1").nes."" Then Purge/NoConfirm/Log $(ARCHDIR)Config_heavy.pl
97abc6ad 833 - If F$Search("[.lib.ExtUtils]Miniperl.pm").nes."" Then Purge/NoConfirm/Log [.lib.ExtUtils]Miniperl.pm
97386f52 834 - If F$Search("[.lib.VMS]*.*;-1").nes."" Then Purge/NoConfirm/Log [.lib.VMS]*.*
97abc6ad
HM
835 - If F$Search("$(ARCHCORE)*.*").nes."" Then Purge/NoConfirm/Log $(ARCHCORE)*.*
836 - If F$Search("[.lib]*.com;-1").nes."" Then Purge/NoConfirm/Log [.lib]*.com
837 - If F$Search("[.pod]*.com;-1").nes."" Then Purge/NoConfirm/Log [.pod]*.com
838 - If F$Search("[.utils]*.com;-1").nes."" Then Purge/NoConfirm/Log [.utils]*.com
839 - If F$Search("[.x2p]*.com;-1").nes."" Then Purge/NoConfirm/Log [.x2p]*.com
5e4c4c91 840 - If F$Search("[.lib]buildcustomize.pl;-1").nes."" Then Purge/NoConfirm/Log [.lib]buildcustomize.pl
97abc6ad 841
6e2cec71 842clean : tidy cleantest
c091f99a 843 - $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=clean"
97abc6ad
HM
844 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*/Exclude=PerlShr_*.Opt
845 - If F$Search("[...]*$(O);*") .nes."" Then Delete/NoConfirm/Log [...]*$(O);*
97386f52
CB
846 - If F$Search("vmsish.h").nes."" Then Delete/NoConfirm/Log vmsish.h;*
847 - If F$Search("vms.c") .nes."" Then Delete/NoConfirm/Log vms.c;*
848 - If F$Search("perlmain.c") .nes."" Then Delete/NoConfirm/Log perlmain.c;*
5c9818e9 849 - If F$Search("perlmini.c") .nes."" Then Delete/NoConfirm/Log perlmini.c;*
c3301a92 850 - If F$Search("uudmap.h") .nes."" Then Delete/NoConfirm/Log uudmap.h;*
efa50c51 851 - If F$Search("bitcount.h") .nes."" Then Delete/NoConfirm/Log bitcount.h;*
c73002c3 852 - If F$Search("mg_data.h") .nes."" Then Delete/NoConfirm/Log mg_data.h;*
97abc6ad
HM
853 - If F$Search("Perlshr_Gbl*.Mar") .nes."" Then Delete/NoConfirm/Log Perlshr_Gbl*.Mar;*
854 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
9c8fb6b6
CB
855 - If F$Search("[.vms.ext...]*.C").nes."" Then Delete/NoConfirm/Log [.vms.ext...]*.C;*
856 - If F$Search("[.vms.ext...]*$(O)").nes."" Then Delete/NoConfirm/Log [.vms.ext...]*$(O);*
97abc6ad 857 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
60f0ee9d 858 - If F$Search("[.pod]roffitall").nes."" Then Delete/NoConfirm/Log [.pod]roffitall;*
600dcb9e 859 - If F$Search("$(PERLDELTA_CURRENT)").nes."" Then Delete/NoConfirm/Log $(PERLDELTA_CURRENT);*
db34a22a 860 - If F$Search("[.pod]perlapi.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlapi.pod;*
344af494 861 - If F$Search("[.pod]perlintern.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlintern.pod;*
6e2c8928 862 - If F$Search("[.pod]perlmodlib.pod").nes."" Then Delete/NoConfirm/Log [.pod]perlmodlib.pod;*
7eb47696 863 - If F$Search("[.pod]perltoc.pod").nes."" Then Delete/NoConfirm/Log [.pod]perltoc.pod;*
524ce141 864 - If F$Search("[.pod]perluniprops.pod").nes."" Then Delete/NoConfirm/Log [.pod]perluniprops.pod;*
414b89cc 865 - @extra_pods CLEAN
05b0cfd1
CB
866 - If F$Search("[.lib]Config_git.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_git.pl;*
867 - If F$Search("git_version.h").nes."" Then Delete/NoConfirm/Log git_version.h;*
97abc6ad 868
cc391245 869realclean : clean
c091f99a 870 - $(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--all" "--target=realclean"
42e07562 871 - $(MINIPERL) mkppport "--clean"
97abc6ad
HM
872 - If F$Search("*$(OLB)").nes."" Then Delete/NoConfirm/Log *$(OLB);*
873 - If F$Search("*.Opt").nes."" Then Delete/NoConfirm/Log *.Opt;*
97386f52
CB
874 - If F$Search("config.h").nes."" Then Delete/NoConfirm/Log config.h;*
875 - If F$Search("config.sh").nes."" Then Delete/NoConfirm/Log config.sh;*
52a043e6 876 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" config
d6521b56 877 - If F$Search("[.lib.unicore...]*.pl").nes."" Then Delete/NoConfirm/Log [.lib.unicore...]*.pl;*
23b62609 878 - If F$Search("[.lib.unicore]Properties.").nes."" Then Delete/NoConfirm/Log [.lib.unicore]Properties.;*
ca12659b 879 - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" $(unidatadirs)
cc391245 880 - If F$Search("Descrip.MMS").nes."" Then Delete/NoConfirm/Log Descrip.MMS;*
414b89cc 881 - If F$Search("extra_pods.Com").nes."" Then Delete/NoConfirm/Log extra_pods.Com;*
96021e87 882 - If F$Search("extra.pods").nes."" Then Delete/NoConfirm/Log extra.pods;*
b2790d5e 883 - $(MINIPERL) -e "use File::Path; rmtree(['[.CXX_REPOSITORY]', 'lib/auto','lib/VMS','lib/$(ARCHNAME)'],1,0);"
25ea24bb 884 - If F$Search("*.TS").nes."" Then Delete/NoConfirm/Log *.TS;*
97386f52
CB
885 - If F$Search("[.lib]Config.pm").nes."" Then Delete/NoConfirm/Log [.lib]Config.pm;*
886 - If F$Search("[.lib]Config_heavy.pl").nes."" Then Delete/NoConfirm/Log [.lib]Config_heavy.pl;*
887 - If F$Search("[.lib]*.com").nes."" Then Delete/NoConfirm/Log [.lib]*.com;*
781f5a38 888 - If F$Search("[.lib...].exists").nes."" Then Delete/NoConfirm/Log [.lib...].exists;*
52a043e6 889 - If F$Search("[.pod]*.com").nes."" Then Delete/NoConfirm/Log [.pod]*.com;*
97abc6ad
HM
890 - If F$Search("[.utils]*.com").nes."" Then Delete/NoConfirm/Log [.utils]*.com;*
891 - If F$Search("[.x2p]*.com").nes."" Then Delete/NoConfirm/Log [.x2p]*.com;*
892 - If F$Search("$(ARCHDIR)Config.pm").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config.pm;*
2d9d8159 893 - If F$Search("$(ARCHDIR)Config_heavy.pl").nes."" Then Delete/NoConfirm/Log $(ARCHDIR)Config_heavy.pl;*
97abc6ad 894 - If F$Search("[.lib.ExtUtils]Miniperl.pm").nes."" Then Delete/NoConfirm/Log [.lib.ExtUtils]Miniperl.pm;*
4403bf93 895 - If F$Search("[.utils]perldoc.com").nes."" Then Delete/NoConfirm/Log [.utils]perldoc.com;*
cdf8b154 896 - If F$Search("[.utils]perlivp.com").nes."" Then Delete/NoConfirm/Log [.utils]perlivp.com;*
97abc6ad
HM
897 - If F$Search("[.t.lib]vms*.t").nes."" Then Delete/NoConfirm/Log [.t.lib]vms*.t;*
898 - If F$Search("[...]*$(E)").nes."" Then Delete/NoConfirm/Log [...]*$(E);*
b2790d5e 899 - If F$Search("Perl_Setup.Com").nes."" Then Delete/NoConfirm/Log Perl_Setup.Com;*
dfe814dc 900 - If F$Search("[.t]rantests.").nes."" Then Delete/NoConfirm/Log [.t]rantests.;*
0279961e 901 - If F$Search("[.t]test_state.").nes."" Then Delete/NoConfirm/Log [.t]test_state.;*
493ba88a
PP
902 - If F$Search("[.t.lib]vmsfspec.t").nes."" Then Delete/NoConfirm/Log [.t.lib]vmsfspec.t;*
903 - If F$Search("[.t.lib]vmsish.t").nes."" Then Delete/NoConfirm/Log [.t.lib]vmsish.t;*
d6521b56 904 - If F$Search("vmspipe.com").nes."" Then Delete/NoConfirm/Log vmspipe.com;*
ac2c13e8 905 - If F$Search("[.lib]buildcustomize.pl").nes."" Then Delete/NoConfirm/Log [.lib]buildcustomize.pl;*
b2790d5e 906 - If F$Search("[.lib]config.pod").nes."" Then Delete/NoConfirm/Log [.lib]config.pod;*
97abc6ad
HM
907
908cleansrc : clean
97386f52
CB
909 - If F$Search("*.c;-1").nes."" Then Purge/NoConfirm/Log *.c
910 - If F$Search("*.h;-1").nes."" Then Purge/NoConfirm/Log *.h
911 - If F$Search("*.vms;-1").nes."" Then Purge/NoConfirm/Log *.vms
912 - If F$Search("[.vms]$(MAKEFILE);-1").nes."" Then Purge/NoConfirm/Log [.vms]$(MAKEFILE)
913 - If F$Search("[.vms]*.c;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.c
914 - If F$Search("[.vms]*.h;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.h
915 - If F$Search("[.vms]*.pl;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.pl
916 - If F$Search("[.vms]*.vms;-1").nes."" Then Purge/NoConfirm/Log [.vms]*.vms
917 - If F$Search("[.vms...]*.pm;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.pm
918 - If F$Search("[.vms...]*.xs;-1").nes."" Then Purge/NoConfirm/Log [.vms...]*.xs
12bc563b 919!GROK!THIS!