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