We no longer need PL_shared_hek_table
[p5sagit/p5-mst-13.2.git] / win32 / Makefile
CommitLineData
9e42cd94 1#
2# Makefile to build perl on Windows NT using Microsoft NMAKE.
3# Supported compilers:
c623ac67 4# Visual C++ 2.0 through 6.0 (and possibly newer versions)
5# MS Platform SDK 64-bit compiler and tools **experimental**
9e42cd94 6#
7# This is set up to build a perl.exe that runs off a shared library
78a7c709 8# (perl59.dll). Also makes individual DLLs for the XS extensions.
9e42cd94 9#
10
11##
12## Make sure you read README.win32 *before* you mess with anything here!
13##
14
15##
16## Build configuration. Edit the values below to suit your needs.
17##
18
19#
20# Set these to wherever you want "nmake install" to put your
21# newly built perl.
22#
23INST_DRV = c:
24INST_TOP = $(INST_DRV)\perl
25
26#
27# Comment this out if you DON'T want your perl installation to be versioned.
28# This means that the new installation will overwrite any files from the
29# old installation at the same INST_TOP location. Leaving it enabled is
30# the safest route, as perl adds the extra version directory to all the
31# locations it installs files to. If you disable it, an alternative
32# versioned installation can be obtained by setting INST_TOP above to a
33# path that includes an arbitrary version string.
34#
69df4abc 35#INST_VER = \5.9.3
9e42cd94 36
37#
38# Comment this out if you DON'T want your perl installation to have
39# architecture specific components. This means that architecture-
40# specific files will be installed along with the architecture-neutral
41# files. Leaving it enabled is safer and more flexible, in case you
42# want to build multiple flavors of perl and install them together in
43# the same location. Commenting it out gives you a simpler
44# installation that is easier to understand for beginners.
45#
bdb4cb88 46#INST_ARCH = \$(ARCHNAME)
9e42cd94 47
48#
7ada00a0 49# Uncomment this if you want perl to run
50# $Config{sitelibexp}\sitecustomize.pl
51# before anything else. This script can then be set up, for example,
52# to add additional entries to @INC.
53#
54#USE_SITECUST = define
55
56#
9e42cd94 57# uncomment to enable multiple interpreters. This is need for fork()
f7d585d3 58# emulation and for thread support.
9e42cd94 59#
bdb4cb88 60USE_MULTI = define
9e42cd94 61
62#
f7d585d3 63# Beginnings of interpreter cloning/threads; now reasonably complete.
9e42cd94 64# This should be enabled to get the fork() emulation. This needs
65# USE_MULTI as well.
66#
bdb4cb88 67USE_ITHREADS = define
9e42cd94 68
69#
70# uncomment to enable the implicit "host" layer for all system calls
71# made by perl. This needs USE_MULTI above. This is also needed to
72# get fork().
73#
bdb4cb88 74USE_IMP_SYS = define
9e42cd94 75
76#
f7d585d3 77# Comment out next assign to disable perl's I/O subsystem and use compiler's
78# stdio for IO - depending on your compiler vendor and run time library you may
79# then get a number of fails from make test i.e. bugs - complain to them not us ;-).
80# You will also be unable to take full advantage of perl5.8's support for multiple
81# encodings and may see lower IO performance. You have been warned.
9e42cd94 82USE_PERLIO = define
83
84#
4a9d6100 85# Comment this out if you don't want to enable large file support for
86# some reason. Should normally only be changed to maintain compatibility
87# with an older release of perl.
bdb4cb88 88USE_LARGE_FILES = define
4a9d6100 89
90#
9e42cd94 91# uncomment one of the following lines if you are using either
92# Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
93#
94#CCTYPE = MSVC20
4a9d6100 95CCTYPE = MSVC60
9e42cd94 96
97#
98# uncomment next line if you want debug version of perl (big,slow)
f7d585d3 99# If not enabled, we automatically try to use maximum optimization
100# with all compilers that are known to have a working optimizer.
9e42cd94 101#
102#CFG = Debug
103
104#
105# uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
106# It has patches that fix known bugs in older versions of MSVCRT.DLL.
107# This currently requires VC 5.0 with Service Pack 3 or later.
108# Get it from CPAN at http://www.cpan.org/authors/id/D/DO/DOUGL/
109# and follow the directions in the package to install.
110#
111# Not recommended if you have VC 6.x and you're not running Windows 9x.
112#
113#USE_PERLCRT = define
114
115#
116# uncomment to enable linking with setargv.obj under the Visual C
117# compiler. Setting this options enables perl to expand wildcards in
118# arguments, but it may be harder to use alternate methods like
119# File::DosGlob that are more powerful. This option is supported only with
120# Visual C.
121#
122#USE_SETARGV = define
123
124#
4ace4afb 125# if you want to have the crypt() builtin function implemented, leave this or
126# CRYPT_LIB uncommented. The fcrypt.c file named here contains a suitable
127# version of des_fcrypt().
9e42cd94 128#
4ace4afb 129CRYPT_SRC = fcrypt.c
9e42cd94 130
131#
132# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
133# library, uncomment this, and make sure the library exists (see README.win32)
134# Specify the full pathname of the library.
135#
136#CRYPT_LIB = fcrypt.lib
137
138#
139# set this if you wish to use perl's malloc
140# WARNING: Turning this on/off WILL break binary compatibility with extensions
141# you may have compiled with/without it. Be prepared to recompile all
142# extensions if you change the default. Currently, this cannot be enabled
143# if you ask for USE_IMP_SYS above.
144#
145#PERL_MALLOC = define
146
147#
06c896bb 148# set this to enable debugging mstats
149# This must be enabled to use the Devel::Peek::mstat() function. This cannot
150# be enabled without PERL_MALLOC as well.
151#
bdb4cb88 152#DEBUG_MSTATS = define
06c896bb 153
154#
155#
9e42cd94 156# set the install locations of the compiler include/libraries
157# Running VCVARS32.BAT is *required* when using Visual C.
158# Some versions of Visual C don't define MSVCDIR in the environment,
159# so you may have to set CCHOME explicitly (spaces in the path name should
160# not be quoted)
161#
162#CCHOME = f:\msvc20
163CCHOME = $(MSVCDIR)
164CCINCDIR = $(CCHOME)\include
165CCLIBDIR = $(CCHOME)\lib
166
167#
168# Additional compiler flags can be specified here.
169#
170
7ada00a0 171#
2eb87578 172# Adding -DPERL_HASH_SEED_EXPLICIT will disable randomization of Perl's
173# internal hash function unless the PERL_HASH_SEED environment variable is set.
174# Alternatively, adding -DNO_HASH_SEED will completely disable the
175# randomization feature.
176# The latter is required to maintain binary compatibility with Perl 5.8.0.
177#
178#BUILDOPT = $(BUILDOPT) -DPERL_HASH_SEED_EXPLICIT
179#BUILDOPT = $(BUILDOPT) -DNO_HASH_SEED
180
9e42cd94 181#
182# This should normally be disabled. Adding -DPERL_POLLUTE enables support
183# for old symbols by default, at the expense of extreme pollution. You most
184# probably just want to build modules that won't compile with
185# perl Makefile.PL POLLUTE=1
186# instead of enabling this. Please report such modules to the respective
187# authors.
188#
189#BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
190
191#
192# This should normally be disabled. Enabling it will disable the File::Glob
193# implementation of CORE::glob.
194#
195#BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
196
197#
198# This should normally be disabled. Enabling it causes perl to read scripts
199# in text mode (which is the 5.005 behavior) and will break ByteLoader.
bdb4cb88 200#
9e42cd94 201#BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
202
203#
204# specify semicolon-separated list of extra directories that modules will
205# look for libraries (spaces in path names need not be quoted)
206#
207EXTRALIBDIRS =
208
209#
210# set this to your email address (perl will guess a value from
211# from your loginname and your hostname, which may not be right)
212#
213#EMAIL =
214
215##
216## Build configuration ends.
217##
218
219##################### CHANGE THESE ONLY IF YOU MUST #####################
220
221!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
222D_CRYPT = undef
223!ELSE
224D_CRYPT = define
225CRYPT_FLAG = -DHAVE_DES_FCRYPT
226!ENDIF
227
646e33b6 228!IF "$(USE_IMP_SYS)" == "define"
229PERL_MALLOC = undef
230DEBUG_MSTATS = undef
231!ENDIF
232
9e42cd94 233!IF "$(PERL_MALLOC)" == ""
234PERL_MALLOC = undef
646e33b6 235DEBUG_MSTATS = undef
06c896bb 236!ENDIF
237
238!IF "$(DEBUG_MSTATS)" == ""
646e33b6 239DEBUG_MSTATS = undef
06c896bb 240!ENDIF
241
242!IF "$(DEBUG_MSTATS)" == "define"
646e33b6 243BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
9e42cd94 244!ENDIF
245
7ada00a0 246!IF "$(USE_SITECUST)" == ""
247USE_SITECUST = undef
248!ENDIF
249
9e42cd94 250!IF "$(USE_MULTI)" == ""
251USE_MULTI = undef
252!ENDIF
253
254!IF "$(USE_ITHREADS)" == ""
255USE_ITHREADS = undef
256!ENDIF
257
258!IF "$(USE_IMP_SYS)" == ""
259USE_IMP_SYS = undef
260!ENDIF
261
262!IF "$(USE_PERLIO)" == ""
263USE_PERLIO = undef
264!ENDIF
265
4a9d6100 266!IF "$(USE_LARGE_FILES)" == ""
267USE_LARGE_FILES = undef
268!ENDIF
269
9e42cd94 270!IF "$(USE_PERLCRT)" == ""
271USE_PERLCRT = undef
272!ENDIF
273
3db8f154 274!IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
9e42cd94 275USE_MULTI = define
276!ENDIF
277
278!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
279USE_MULTI = define
9e42cd94 280!ENDIF
281
7ada00a0 282!IF "$(USE_SITECUST)" == "define"
283BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE
284!ENDIF
285
3db8f154 286!IF "$(USE_MULTI)" != "undef"
9e42cd94 287BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
288!ENDIF
289
290!IF "$(USE_IMP_SYS)" != "undef"
291BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
292!ENDIF
293
294!IF "$(PROCESSOR_ARCHITECTURE)" == ""
295PROCESSOR_ARCHITECTURE = x86
296!ENDIF
297
c623ac67 298!IF "$(WIN64)" == ""
299!IF "$(PROCESSOR_ARCHITEW6432)" != ""
300PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432)
301WIN64 = define
302!ELSE
303!IF "$(PROCESSOR_ARCHITECTURE)" == "IA64"
304WIN64 = define
305!ELSE
306WIN64 = undef
307!ENDIF
308!ENDIF
309!ENDIF
310
9e42cd94 311!IF "$(USE_MULTI)" == "define"
312ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
313!ELSE
314!IF "$(USE_PERLIO)" == "define"
315ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio
316!ELSE
317ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
318!ENDIF
319!ENDIF
9e42cd94 320
321!IF "$(USE_PERLIO)" == "define"
322BUILDOPT = $(BUILDOPT) -DUSE_PERLIO
323!ENDIF
324
325!IF "$(USE_ITHREADS)" == "define"
326ARCHNAME = $(ARCHNAME)-thread
327!ENDIF
328
329# Visual Studio 98 specific
330!IF "$(CCTYPE)" == "MSVC60"
331
332# VC 6.0 can load the socket dll on demand. Makes the test suite
333# run in about 10% less time.
036c1c1e 334DELAYLOAD = -DELAYLOAD:ws2_32.dll -DELAYLOAD:shell32.dll delayimp.lib
9e42cd94 335!ENDIF
336
337ARCHDIR = ..\lib\$(ARCHNAME)
338COREDIR = ..\lib\CORE
339AUTODIR = ..\lib\auto
340LIBDIR = ..\lib
341EXTDIR = ..\ext
342PODDIR = ..\pod
343EXTUTILSDIR = $(LIBDIR)\ExtUtils
344
345#
346INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
347INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
348INST_LIB = $(INST_TOP)$(INST_VER)\lib
349INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
350INST_COREDIR = $(INST_ARCHLIB)\CORE
351INST_POD = $(INST_LIB)\pod
352INST_HTML = $(INST_TOP)$(INST_VER)\html
353
354#
355# Programs to compile, build .lib files and link
356#
357
358CC = cl
359LINK32 = link
360LIB32 = $(LINK32) -lib
361RSC = rc
362
363#
364# Options
365#
366
367INCLUDES = -I$(COREDIR) -I.\include -I. -I..
368#PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
369DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
370LOCDEFS = -DPERLDLL -DPERL_CORE
371SUBSYS = console
372CXX_FLAG = -TP -GX
373
374!IF "$(USE_PERLCRT)" != "define"
375LIBC = msvcrt.lib
376!ELSE
377LIBC = PerlCRT.lib
378!ENDIF
379
9e42cd94 380!IF "$(CFG)" == "Debug"
381! IF "$(CCTYPE)" == "MSVC20"
382OPTIMIZE = -Od -MD -Z7 -DDEBUGGING
383! ELSE
384OPTIMIZE = -Od -MD -Zi -DDEBUGGING
385! ENDIF
c623ac67 386LINK_DBG = -debug
9e42cd94 387!ELSE
ec25c072 388OPTIMIZE = -MD -Zi -DNDEBUG
389# we enable debug symbols in release builds also
390LINK_DBG = -debug -opt:ref,icf
391# you may want to enable this if you want COFF symbols in the executables
392# in addition to the PDB symbols. The default Dr. Watson that ships with
393# Windows can use the the former but not latter. The free WinDbg can be
394# installed to get better stack traces from just the PDB symbols, so we
395# avoid the bloat of COFF symbols by default.
396#LINK_DBG = $(LINK_DBG) -debugtype:both
d921a5fb 397! IF "$(WIN64)" == "define"
398# enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
399OPTIMIZE = $(OPTIMIZE) -Ox -GL
400LINK_DBG = $(LINK_DBG) -ltcg
401! ELSE
402# -O1 yields smaller code, which turns out to be faster than -O2 on x86
403OPTIMIZE = $(OPTIMIZE) -O1
404#OPTIMIZE = $(OPTIMIZE) -O2
405! ENDIF
9e42cd94 406!ENDIF
407
c623ac67 408!IF "$(WIN64)" == "define"
409DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE
410OPTIMIZE = $(OPTIMIZE) -Wp64 -Op
411!ENDIF
412
9e42cd94 413!IF "$(USE_PERLCRT)" != "define"
414BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
415!ENDIF
416
417LIBBASEFILES = $(CRYPT_LIB) \
418 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
419 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
036c1c1e 420 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
c623ac67 421 version.lib
422
423# win64 doesn't have some libs
424!IF "$(WIN64)" != "define"
425LIBBASEFILES = $(LIBBASEFILES) odbc32.lib odbccp32.lib
426!ENDIF
9e42cd94 427
428# we add LIBC here, since we may be using PerlCRT.dll
429LIBFILES = $(LIBBASEFILES) $(LIBC)
430
431CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
432 $(PCHFLAGS) $(OPTIMIZE)
433LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
434 -libpath:"$(INST_COREDIR)" \
435 -machine:$(PROCESSOR_ARCHITECTURE)
436OBJOUT_FLAG = -Fo
437EXEOUT_FLAG = -Fe
438
439CFLAGS_O = $(CFLAGS) $(BUILDOPT)
440
441#################### do not edit below this line #######################
442############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
443
444o = .obj
445
446#
447# Rules
448#
449
450.SUFFIXES : .c $(o) .dll .lib .exe .rc .res
451
452.c$(o):
453 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
454
455.y.c:
456 $(NOOP)
457
458$(o).dll:
459 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
460 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
461
462.rc.res:
463 $(RSC) -i.. $<
464
465#
466# various targets
467
468# makedef.pl must be updated if this changes, and this should normally
469# only change when there is an incompatible revision of the public API.
78a7c709 470PERLIMPLIB = ..\perl59.lib
471PERLDLL = ..\perl59.dll
9e42cd94 472
473MINIPERL = ..\miniperl.exe
474MINIDIR = .\mini
475PERLEXE = ..\perl.exe
476WPERLEXE = ..\wperl.exe
477GLOBEXE = ..\perlglob.exe
04bae4fb 478CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl
9e42cd94 479MINIMOD = ..\lib\ExtUtils\Miniperl.pm
480X2P = ..\x2p\a2p.exe
481
ca12659b 482# Unicode data files generated by mktables
483UNIDATAFILES = ..\lib\unicore\Canonical.pl ..\lib\unicore\Exact.pl \
484 ..\lib\unicore\Properties ..\lib\unicore\Decomposition.pl \
7ebf06b3 485 ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
486 ..\lib\unicore\PVA.pl
ca12659b 487
488# Directories of Unicode data files generated by mktables
27a8011f 489UNIDATADIR1 = ..\lib\unicore\To
490UNIDATADIR2 = ..\lib\unicore\lib
ca12659b 491
3890b58f 492PERLEXE_ICO = .\perlexe.ico
493PERLEXE_RES = .\perlexe.res
494PERLDLL_RES =
495
9e42cd94 496# Nominate a target which causes extensions to be re-built
497# This used to be $(PERLEXE), but at worst it is the .dll that they depend
498# on and really only the interface - i.e. the .def file used to export symbols
499# from the .dll
500PERLDEP = perldll.def
501
502PL2BAT = bin\pl2bat.pl
503GLOBBAT = bin\perlglob.bat
504
505UTILS = \
506 ..\utils\h2ph \
507 ..\utils\splain \
508 ..\utils\dprofpp \
509 ..\utils\perlbug \
510 ..\utils\pl2pm \
511 ..\utils\c2ph \
827a599d 512 ..\utils\pstruct \
9e42cd94 513 ..\utils\h2xs \
514 ..\utils\perldoc \
515 ..\utils\perlcc \
516 ..\utils\perlivp \
517 ..\utils\libnetcfg \
827a599d 518 ..\utils\enc2xs \
519 ..\utils\piconv \
18a1cebe 520 ..\utils\corelist \
83cd6e83 521 ..\utils\cpan \
ea0e987d 522 ..\utils\xsubpp \
4b618757 523 ..\utils\prove \
ea0e987d 524 ..\utils\instmodsh \
9e42cd94 525 ..\pod\checkpods \
526 ..\pod\pod2html \
527 ..\pod\pod2latex \
528 ..\pod\pod2man \
529 ..\pod\pod2text \
530 ..\pod\pod2usage \
531 ..\pod\podchecker \
532 ..\pod\podselect \
533 ..\x2p\find2perl \
827a599d 534 ..\x2p\psed \
9e42cd94 535 ..\x2p\s2p \
9e42cd94 536 bin\exetype.pl \
537 bin\runperl.pl \
538 bin\pl2bat.pl \
539 bin\perlglob.pl \
540 bin\search.pl
541
542MAKE = nmake -nologo
543MAKE_BARE = nmake
544
c623ac67 545!IF "$(WIN64)" == "define"
546CFGSH_TMPL = config.vc64
547CFGH_TMPL = config_H.vc64
548!ELSE
9e42cd94 549CFGSH_TMPL = config.vc
550CFGH_TMPL = config_H.vc
c623ac67 551!ENDIF
9e42cd94 552
553XCOPY = xcopy /f /r /i /d
554RCOPY = xcopy /f /r /i /e /d
65980d94 555NOOP = @rem
9e42cd94 556NULL =
557
558DEL = del
559
560#
561# filenames given to xsubpp must have forward slashes (since it puts
562# full pathnames in #line strings)
563XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
564 -C++ -prototypes
565
566MICROCORE_SRC = \
567 ..\av.c \
568 ..\deb.c \
569 ..\doio.c \
570 ..\doop.c \
571 ..\dump.c \
572 ..\globals.c \
573 ..\gv.c \
574 ..\hv.c \
575 ..\locale.c \
576 ..\mg.c \
577 ..\numeric.c \
578 ..\op.c \
295f0f84 579 ..\pad.c \
9e42cd94 580 ..\perl.c \
581 ..\perlapi.c \
582 ..\perly.c \
583 ..\pp.c \
584 ..\pp_ctl.c \
585 ..\pp_hot.c \
586 ..\pp_pack.c \
587 ..\pp_sort.c \
588 ..\pp_sys.c \
10bc17b6 589 ..\reentr.c \
9e42cd94 590 ..\regcomp.c \
591 ..\regexec.c \
592 ..\run.c \
593 ..\scope.c \
594 ..\sv.c \
595 ..\taint.c \
596 ..\toke.c \
597 ..\universal.c \
598 ..\utf8.c \
599 ..\util.c \
600 ..\xsutils.c
601
602EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
603
604!IF "$(PERL_MALLOC)" == "define"
605EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
606!ENDIF
607
608EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
609
610WIN32_SRC = \
611 .\win32.c \
612 .\win32sck.c \
613 .\win32thread.c
614
f7d585d3 615# We need this for miniperl build unless we override canned
616# config.h #define building mini\*
617#!IF "$(USE_PERLIO)" == "define"
9e42cd94 618WIN32_SRC = $(WIN32_SRC) .\win32io.c
f7d585d3 619#!ENDIF
9e42cd94 620
621!IF "$(CRYPT_SRC)" != ""
622WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
623!ENDIF
624
625DLL_SRC = $(DYNALOADER).c
626
627X2P_SRC = \
628 ..\x2p\a2p.c \
629 ..\x2p\hash.c \
630 ..\x2p\str.c \
631 ..\x2p\util.c \
632 ..\x2p\walk.c
633
634CORE_NOCFG_H = \
635 ..\av.h \
636 ..\cop.h \
637 ..\cv.h \
638 ..\dosish.h \
639 ..\embed.h \
640 ..\form.h \
641 ..\gv.h \
642 ..\handy.h \
643 ..\hv.h \
644 ..\iperlsys.h \
645 ..\mg.h \
646 ..\nostdio.h \
647 ..\op.h \
648 ..\opcode.h \
649 ..\perl.h \
650 ..\perlapi.h \
651 ..\perlsdio.h \
652 ..\perlsfio.h \
653 ..\perly.h \
654 ..\pp.h \
655 ..\proto.h \
cdb0f547 656 ..\regcomp.h \
9e42cd94 657 ..\regexp.h \
658 ..\scope.h \
659 ..\sv.h \
660 ..\thread.h \
661 ..\unixish.h \
662 ..\utf8.h \
663 ..\util.h \
664 ..\warnings.h \
665 ..\XSUB.h \
666 ..\EXTERN.h \
667 ..\perlvars.h \
668 ..\intrpvar.h \
669 ..\thrdvar.h \
670 .\include\dirent.h \
671 .\include\netdb.h \
672 .\include\sys\socket.h \
673 .\win32.h
674
675CORE_H = $(CORE_NOCFG_H) .\config.h
676
677MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
678CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
679WIN32_OBJ = $(WIN32_SRC:.c=.obj)
680MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
681 $(MINIDIR)\miniperlmain$(o) \
682 $(MINIDIR)\perlio$(o)
683MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
684MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
685DLL_OBJ = $(DLL_SRC:.c=.obj)
686X2P_OBJ = $(X2P_SRC:.c=.obj)
687
688PERLDLL_OBJ = $(CORE_OBJ)
689PERLEXE_OBJ = perlmain$(o)
690
691PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
692#PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
693
694!IF "$(USE_SETARGV)" != ""
695SETARGV_OBJ = setargv$(o)
696!ENDIF
697
595589fa 698# specify static extensions here
699STATIC_EXT = Cwd Compress/Zlib
700
9e42cd94 701DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
702SOCKET = $(EXTDIR)\Socket\Socket
703FCNTL = $(EXTDIR)\Fcntl\Fcntl
704OPCODE = $(EXTDIR)\Opcode\Opcode
705SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
706IO = $(EXTDIR)\IO\IO
707POSIX = $(EXTDIR)\POSIX\POSIX
708ATTRS = $(EXTDIR)\attrs\attrs
709THREAD = $(EXTDIR)\Thread\Thread
710B = $(EXTDIR)\B\B
711RE = $(EXTDIR)\re\re
712DUMPER = $(EXTDIR)\Data\Dumper\Dumper
713ERRNO = $(EXTDIR)\Errno\Errno
714PEEK = $(EXTDIR)\Devel\Peek\Peek
715BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
716DPROF = $(EXTDIR)\Devel\DProf\DProf
717GLOB = $(EXTDIR)\File\Glob\Glob
718HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
719STORABLE = $(EXTDIR)\Storable\Storable
720FILTER = $(EXTDIR)\Filter\Util\Call\Call
721ENCODE = $(EXTDIR)\Encode\Encode
722MD5 = $(EXTDIR)\Digest\MD5\MD5
e934609f 723PERLIOSCALAR = $(EXTDIR)\PerlIO\scalar\scalar
9e42cd94 724MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
725TIMEHIRES = $(EXTDIR)\Time\HiRes\HiRes
726CWD = $(EXTDIR)\Cwd\Cwd
727LISTUTIL = $(EXTDIR)\List\Util\Util
e934609f 728PERLIOVIA = $(EXTDIR)\PerlIO\via\via
83e2e978 729XSAPITEST = $(EXTDIR)\XS\APItest\APItest
9e42cd94 730XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
731UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
4e74047c 732MATHBIGINTFASTCALC = $(EXTDIR)\Math\BigInt\FastCalc\FastCalc
059b2413 733COMPRESSZLIB = $(EXTDIR)\Compress\Zlib\Zlib
b4ad57f4 734WIN32_DIR = ext\Win32
9e42cd94 735
736SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
737FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
738OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
739SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
740IO_DLL = $(AUTODIR)\IO\IO.dll
741POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
742ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
743THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
744B_DLL = $(AUTODIR)\B\B.dll
745DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
746PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
747RE_DLL = $(AUTODIR)\re\re.dll
748BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
749DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
750GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
751HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
752STORABLE_DLL = $(AUTODIR)\Storable\Storable.dll
753FILTER_DLL = $(AUTODIR)\Filter\Util\Call\Call.dll
754ENCODE_DLL = $(AUTODIR)\Encode\Encode.dll
755MD5_DLL = $(AUTODIR)\Digest\MD5\MD5.dll
e934609f 756PERLIOSCALAR_DLL = $(AUTODIR)\PerlIO\scalar\scalar.dll
9e42cd94 757MIMEBASE64_DLL = $(AUTODIR)\MIME\Base64\Base64.dll
758TIMEHIRES_DLL = $(AUTODIR)\Time\HiRes\HiRes.dll
759CWD_DLL = $(AUTODIR)\Cwd\Cwd.dll
760LISTUTIL_DLL = $(AUTODIR)\List\Util\Util.dll
e934609f 761PERLIOVIA_DLL = $(AUTODIR)\PerlIO\via\via.dll
83e2e978 762XSAPITEST_DLL = $(AUTODIR)\XS\APItest\APItest.dll
9e42cd94 763XSTYPEMAP_DLL = $(AUTODIR)\XS\Typemap\Typemap.dll
764UNICODENORMALIZE_DLL = $(AUTODIR)\Unicode\Normalize\Normalize.dll
4e74047c 765MATHBIGINTFASTCALC_DLL = $(AUTODIR)\Math\BigInt\FastCalc\FastCalc.dll
059b2413 766COMPRESSZLIB_DLL = $(AUTODIR)\Compress\Zlib\Zlib.dll
b4ad57f4 767WIN32_DLL = $(AUTODIR)\Win32\Win32.dll
9e42cd94 768
769EXTENSION_C = \
770 $(SOCKET).c \
771 $(FCNTL).c \
772 $(OPCODE).c \
773 $(SDBM_FILE).c \
774 $(IO).c \
775 $(POSIX).c \
776 $(ATTRS).c \
777 $(THREAD).c \
778 $(RE).c \
779 $(DUMPER).c \
780 $(PEEK).c \
781 $(B).c \
782 $(BYTELOADER).c \
783 $(DPROF).c \
784 $(GLOB).c \
785 $(HOSTNAME).c \
786 $(STORABLE).c \
787 $(FILTER).c \
788 $(ENCODE).c \
789 $(MD5).c \
790 $(PERLIOSCALAR).c \
791 $(MIMEBASE64).c \
792 $(TIMEHIRES).c \
793 $(CWD).c \
794 $(LISTUTIL).c \
795 $(PERLIOVIA).c \
83e2e978 796 $(XSAPITEST).c \
9e42cd94 797 $(XSTYPEMAP).c \
b4ad57f4 798 $(UNICODENORMALIZE).c \
4e74047c 799 $(MATHBIGINTFASTCALC).c \
059b2413 800 $(COMPRESSZLIB).c \
b4ad57f4 801 $(WIN32_DIR).c
9e42cd94 802
803EXTENSION_DLL = \
804 $(SOCKET_DLL) \
805 $(FCNTL_DLL) \
806 $(OPCODE_DLL) \
807 $(SDBM_FILE_DLL)\
808 $(IO_DLL) \
809 $(POSIX_DLL) \
810 $(ATTRS_DLL) \
811 $(DUMPER_DLL) \
812 $(PEEK_DLL) \
813 $(B_DLL) \
814 $(RE_DLL) \
815 $(THREAD_DLL) \
816 $(BYTELOADER_DLL) \
817 $(DPROF_DLL) \
818 $(GLOB_DLL) \
819 $(HOSTNAME_DLL) \
820 $(STORABLE_DLL) \
821 $(FILTER_DLL) \
822 $(ENCODE_DLL) \
823 $(MD5_DLL) \
824 $(PERLIOSCALAR_DLL) \
825 $(MIMEBASE64_DLL) \
826 $(TIMEHIRES_DLL) \
827 $(CWD_DLL) \
828 $(LISTUTIL_DLL) \
829 $(PERLIOVIA_DLL) \
83e2e978 830 $(XSAPITEST_DLL) \
9e42cd94 831 $(XSTYPEMAP_DLL) \
b4ad57f4 832 $(UNICODENORMALIZE_DLL) \
4e74047c 833 $(MATHBIGINTFASTCALC_DLL) \
059b2413 834 $(COMPRESSZLIB_DLL) \
b4ad57f4 835 $(WIN32_DLL)
9e42cd94 836
837POD2HTML = $(PODDIR)\pod2html
838POD2MAN = $(PODDIR)\pod2man
839POD2LATEX = $(PODDIR)\pod2latex
840POD2TEXT = $(PODDIR)\pod2text
841
842CFG_VARS = \
843 "INST_DRV=$(INST_DRV)" \
844 "INST_TOP=$(INST_TOP)" \
845 "INST_VER=$(INST_VER)" \
846 "INST_ARCH=$(INST_ARCH)" \
847 "archname=$(ARCHNAME)" \
848 "cc=$(CC)" \
849 "ld=$(LINK32)" \
850 "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
851 "cf_email=$(EMAIL)" \
852 "d_crypt=$(D_CRYPT)" \
853 "d_mymalloc=$(PERL_MALLOC)" \
854 "libs=$(LIBFILES)" \
855 "incpath=$(CCINCDIR:"=\")" \
856 "libperl=$(PERLIMPLIB:..\=)" \
857 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
858 "libc=$(LIBC)" \
859 "make=$(MAKE_BARE)" \
d2b25974 860 "static_ext=$(STATIC_EXT)" \
7e0017d3 861 "usethreads=$(USE_ITHREADS)" \
9e42cd94 862 "useithreads=$(USE_ITHREADS)" \
9e42cd94 863 "usemultiplicity=$(USE_MULTI)" \
864 "useperlio=$(USE_PERLIO)" \
4a9d6100 865 "uselargefiles=$(USE_LARGE_FILES)" \
7ada00a0 866 "usesitecustomize=$(USE_SITECUST)" \
9e42cd94 867 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
868 "optimize=$(OPTIMIZE:"=\")"
869
870#
871# Top targets
872#
873
ca12659b 874all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \
9e42cd94 875 $(X2P) Extensions
876 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
877
878$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
879
880#------------------------------------------------------------
881
882$(GLOBEXE) : perlglob$(o)
883 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
884 perlglob$(o) setargv$(o)
885
886perlglob$(o) : perlglob.c
887
888config.w32 : $(CFGSH_TMPL)
889 copy $(CFGSH_TMPL) config.w32
890
891.\config.h : $(CFGH_TMPL)
892 -del /f config.h
893 copy $(CFGH_TMPL) config.h
894
895..\config.sh : config.w32 $(MINIPERL) config_sh.PL
896 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
897
898# this target is for when changes to the main config.sh happen
899# edit config.{b,v,g}c and make this target once for each supported
900# compiler (e.g. `nmake CCTYPE=BORLAND regen_config_h`)
901regen_config_h:
902 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
903 cd ..
8839b9e4 904 -del /f perl.exe perl*.dll
9e42cd94 905 perl configpm
906 cd win32
907 -del /f $(CFGH_TMPL)
908 -mkdir $(COREDIR)
8839b9e4 909 -perl config_h.PL "INST_VER=$(INST_VER)"
9e42cd94 910 rename config.h $(CFGH_TMPL)
911
912$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
913 cd ..
914 miniperl configpm
915 cd win32
916 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
917 $(XCOPY) ..\*.h $(COREDIR)\*.*
918 $(XCOPY) *.h $(COREDIR)\*.*
919 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
920 $(RCOPY) include $(COREDIR)\*.*
921 -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"
922 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
923
924$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
925 $(LINK32) -subsystem:console -out:$@ @<<
926 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
927<<
928
929$(MINIDIR) :
930 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
931
932$(MINICORE_OBJ) : $(CORE_NOCFG_H)
933 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
934
935$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
936 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
937
938# -DPERL_IMPLICIT_SYS needs C++ for perllib.c
939# This is the only file that depends on perlhost.h, vmem.h, and vdir.h
940!IF "$(USE_IMP_SYS)" == "define"
941perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
942 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
943!ENDIF
944
945# 1. we don't want to rebuild miniperl.exe when config.h changes
946# 2. we don't want to rebuild miniperl.exe with non-default config.h
947$(MINI_OBJ) : $(CORE_NOCFG_H)
948
949$(WIN32_OBJ) : $(CORE_H)
950$(CORE_OBJ) : $(CORE_H)
951$(DLL_OBJ) : $(CORE_H)
952$(X2P_OBJ) : $(CORE_H)
953
954perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
595589fa 955 $(MINIPERL) -I..\lib buildext.pl --create-perllibst-h
9e42cd94 956 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
957 CCTYPE=$(CCTYPE) > perldll.def
958
595589fa 959$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
960 $(MINIPERL) -I..\lib buildext.pl --list-static-libs > stat-exts.tmp
961 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @stat-exts.tmp @<<
9e42cd94 962 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
963<<
964 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
965
e84ac4e2 966$(PERLEXE_ICO): $(MINIPERL) makeico.pl
967 $(MINIPERL) makeico.pl > $@
968
969$(PERLEXE_RES): perlexe.rc $(PERLEXE_ICO)
970
9e42cd94 971$(MINIMOD) : $(MINIPERL) ..\minimod.pl
972 cd ..
973 miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
974 cd win32
975
976..\x2p\a2p$(o) : ..\x2p\a2p.c
977 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
978
979..\x2p\hash$(o) : ..\x2p\hash.c
980 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
981
982..\x2p\str$(o) : ..\x2p\str.c
983 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
984
985..\x2p\util$(o) : ..\x2p\util.c
986 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
987
988..\x2p\walk$(o) : ..\x2p\walk.c
989 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
990
991$(X2P) : $(MINIPERL) $(X2P_OBJ)
992 $(MINIPERL) ..\x2p\find2perl.PL
993 $(MINIPERL) ..\x2p\s2p.PL
994 $(LINK32) -subsystem:console -out:$@ @<<
995 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
996<<
997
998perlmain.c : runperl.c
999 copy runperl.c perlmain.c
1000
1001perlmain$(o) : perlmain.c
1002 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
1003
1004$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1005 $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
1006 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
1007 copy $(PERLEXE) $(WPERLEXE)
1008 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1009 copy splittree.pl ..
1010 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1011
1012$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
1013 if not exist $(AUTODIR) mkdir $(AUTODIR)
1014 cd $(EXTDIR)\$(*B)
1015 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1016 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1017 cd ..\..\win32
1018 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1019 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1020 cd $(EXTDIR)\$(*B)
1021 $(XSUBPP) dl_win32.xs > $(*B).c
1022 cd ..\..\win32
1023
1024$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
1025 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
1026
9dcb9602 1027#-------------------------------------------------------------------------------
9e42cd94 1028Extensions: buildext.pl $(PERLDEP) $(CONFIGPM)
595589fa 1029 $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) --dynamic
1030 $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --dynamic
1031
1032Extensions_static : buildext.pl
1033 $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext --static
1034 $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) --static
9e42cd94 1035
1036Extensions_clean:
1037 -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean
b4ad57f4 1038 -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext clean
9e42cd94 1039
b4dc1df6 1040Extensions_realclean:
1041 -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) realclean
b4ad57f4 1042 -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext realclean
b4dc1df6 1043
9dcb9602 1044#-------------------------------------------------------------------------------
9e42cd94 1045
1046doc: $(PERLEXE)
1047 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
1048 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
1049 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
1050
b0b6bf2b 1051# Note that this next section is parsed (and regenerated) by pod/buildtoc
1052# so please check that script before making structural changes here
1053
9e42cd94 1054utils: $(PERLEXE) $(X2P)
1055 cd ..\utils
1056 $(MAKE) PERL=$(MINIPERL)
1057 cd ..\pod
4cb44f92 1058 copy ..\vms\perlvms.pod .\perlvms.pod
b0b6bf2b 1059 copy ..\README.aix ..\pod\perlaix.pod
1060 copy ..\README.amiga ..\pod\perlamiga.pod
1061 copy ..\README.apollo ..\pod\perlapollo.pod
1062 copy ..\README.beos ..\pod\perlbeos.pod
1063 copy ..\README.bs2000 ..\pod\perlbs2000.pod
1064 copy ..\README.ce ..\pod\perlce.pod
1065 copy ..\README.cn ..\pod\perlcn.pod
1066 copy ..\README.cygwin ..\pod\perlcygwin.pod
1067 copy ..\README.dgux ..\pod\perldgux.pod
1068 copy ..\README.dos ..\pod\perldos.pod
1069 copy ..\README.epoc ..\pod\perlepoc.pod
1070 copy ..\README.freebsd ..\pod\perlfreebsd.pod
1071 copy ..\README.hpux ..\pod\perlhpux.pod
1072 copy ..\README.hurd ..\pod\perlhurd.pod
1073 copy ..\README.irix ..\pod\perlirix.pod
1074 copy ..\README.jp ..\pod\perljp.pod
1075 copy ..\README.ko ..\pod\perlko.pod
1076 copy ..\README.machten ..\pod\perlmachten.pod
1077 copy ..\README.macos ..\pod\perlmacos.pod
1078 copy ..\README.macosx ..\pod\perlmacosx.pod
1079 copy ..\README.mint ..\pod\perlmint.pod
1080 copy ..\README.mpeix ..\pod\perlmpeix.pod
1081 copy ..\README.netware ..\pod\perlnetware.pod
b0846812 1082 copy ..\README.openbsd ..\pod\perlopenbsd.pod
b0b6bf2b 1083 copy ..\README.os2 ..\pod\perlos2.pod
1084 copy ..\README.os390 ..\pod\perlos390.pod
1085 copy ..\README.os400 ..\pod\perlos400.pod
1086 copy ..\README.plan9 ..\pod\perlplan9.pod
1087 copy ..\README.qnx ..\pod\perlqnx.pod
1088 copy ..\README.solaris ..\pod\perlsolaris.pod
27da23d5 1089 copy ..\README.symbian ..\pod\perlsymbian.pod
b0b6bf2b 1090 copy ..\README.tru64 ..\pod\perltru64.pod
1091 copy ..\README.tw ..\pod\perltw.pod
1092 copy ..\README.uts ..\pod\perluts.pod
1093 copy ..\README.vmesa ..\pod\perlvmesa.pod
1094 copy ..\README.vms ..\pod\perlvms.pod
1095 copy ..\README.vos ..\pod\perlvos.pod
1096 copy ..\README.win32 ..\pod\perlwin32.pod
496c75d0 1097 copy ..\pod\perl593delta.pod ..\pod\perldelta.pod
9e42cd94 1098 $(MAKE) -f ..\win32\pod.mak converters
1099 cd ..\lib
1100 $(PERLEXE) lib_pm.PL
1101 cd ..\win32
1102 $(PERLEXE) $(PL2BAT) $(UTILS)
1103
b0b6bf2b 1104# Note that the pod cleanup in this next section is parsed (and regenerated
1105# by pod/buildtoc so please check that script before making changes here
1106
522078af 1107# the doubled rmdir calls are needed because older cmd shells
1108# don't understand /q
b4dc1df6 1109distclean: realclean
9e42cd94 1110 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1111 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1112 -del /f *.def *.map
595589fa 1113 -del /f stat-exts.tmp
9e42cd94 1114 -del /f $(EXTENSION_DLL)
1115 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1116 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
ca67812f 1117 -del /f $(EXTDIR)\DynaLoader\DynaLoader.pm
1118 -del /f $(EXTDIR)\DynaLoader\XSLoader.pm
1119 -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1120 -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
9e42cd94 1121 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
b4dc1df6 1122 -del /f $(LIBDIR)\XSLoader.pm $(LIBDIR)\lib.pm
9e42cd94 1123 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1124 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1125 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1126 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
ca67812f 1127 -del /f $(LIBDIR)\ByteLoader.pm
9e42cd94 1128 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
ca67812f 1129 -del /f $(LIBDIR)\Devel\PPPort.pm
9e42cd94 1130 -del /f $(LIBDIR)\File\Glob.pm
1131 -del /f $(LIBDIR)\Storable.pm
9e42cd94 1132 -del /f $(LIBDIR)\Digest\MD5.pm
ca67812f 1133 -del /f $(LIBDIR)\PerlIO\encoding.pm
e934609f 1134 -del /f $(LIBDIR)\PerlIO\scalar.pm
1135 -del /f $(LIBDIR)\PerlIO\via.pm
ca67812f 1136 -del /f $(LIBDIR)\Sys\Hostname.pm
1137 -del /f $(LIBDIR)\Thread\Signal.pm $(LIBDIR)\Thread\Specific.pm
1138 -del /f $(LIBDIR)\threads\shared.pm
9e42cd94 1139 -del /f $(LIBDIR)\Time\HiRes.pm
9e42cd94 1140 -del /f $(LIBDIR)\Unicode\Normalize.pm
4e74047c 1141 -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
b4ad57f4 1142 -del /f $(LIBDIR)\Win32.pm
9e42cd94 1143 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
522078af 1144 -if exist $(LIBDIR)\IO rmdir /s $(LIBDIR)\IO
9e42cd94 1145 -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B
522078af 1146 -if exist $(LIBDIR)\B rmdir /s $(LIBDIR)\B
9e42cd94 1147 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
522078af 1148 -if exist $(LIBDIR)\Data rmdir /s $(LIBDIR)\Data
ca67812f 1149 -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1150 -if exist $(LIBDIR)\Encode rmdir /s $(LIBDIR)\Encode
9e42cd94 1151 -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util
522078af 1152 -if exist $(LIBDIR)\Filter\Util rmdir /s $(LIBDIR)\Filter\Util
9e42cd94 1153 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
522078af 1154 -if exist $(LIBDIR)\MIME rmdir /s $(LIBDIR)\MIME
9e42cd94 1155 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
522078af 1156 -if exist $(LIBDIR)\List rmdir /s $(LIBDIR)\List
9e42cd94 1157 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
522078af 1158 -if exist $(LIBDIR)\Scalar rmdir /s $(LIBDIR)\Scalar
6c4b87ea 1159 -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1160 -if exist $(LIBDIR)\Sys rmdir /s $(LIBDIR)\Sys
1161 -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1162 -if exist $(LIBDIR)\threads rmdir /s $(LIBDIR)\threads
9e42cd94 1163 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
522078af 1164 -if exist $(LIBDIR)\XS rmdir /s $(LIBDIR)\XS
ca67812f 1165 -cd $(PODDIR) && del /f *.html *.bat checkpods \
9e42cd94 1166 perlaix.pod perlamiga.pod perlapollo.pod perlbeos.pod \
b0b6bf2b 1167 perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \
1400179b 1168 perldelta.pod perldgux.pod perldos.pod perlepoc.pod \
1169 perlfreebsd.pod perlhpux.pod perlhurd.pod perlirix.pod \
1170 perljp.pod perlko.pod perlmachten.pod perlmacos.pod \
1171 perlmacosx.pod perlmint.pod perlmpeix.pod perlnetware.pod \
b0846812 1172 perlopenbsd.pod perlos2.pod perlos390.pod perlos400.pod \
1173 perlplan9.pod perlqnx.pod perlsolaris.pod perlsymbian.pod \
1174 perltru64.pod perltw.pod perluts.pod perlvmesa.pod perlvms.pod \
1175 perlvms.pod perlvos.pod perlwin32.pod \
b0b6bf2b 1176 pod2html pod2latex pod2man pod2text pod2usage \
9e42cd94 1177 podchecker podselect
ca67812f 1178 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1179 perldoc perlivp dprofpp perlcc libnetcfg enc2xs piconv cpan *.bat \
18a1cebe 1180 xsubpp instmodsh prove corelist
ca67812f 1181 -cd ..\x2p && del /f find2perl s2p psed *.bat
9e42cd94 1182 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1183 -del /f $(CONFIGPM)
1184 -del /f bin\*.bat
ec25c072 1185 -del /f $(PERLEXE_ICO) perl.base
ca67812f 1186 -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib
1187 -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
9e42cd94 1188 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
522078af 1189 -if exist $(AUTODIR) rmdir /s $(AUTODIR)
9e42cd94 1190 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
522078af 1191 -if exist $(COREDIR) rmdir /s $(COREDIR)
9e42cd94 1192
1193install : all installbare installhtml
1194
1195installbare : utils
1196 $(PERLEXE) ..\installperl
1197 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1198 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
ec25c072 1199 if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1200 if exist ..\x2p\a2p.pdb $(XCOPY) ..\x2p\a2p.pdb $(INST_BIN)\*.*
9e42cd94 1201 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1202
1203installhtml : doc
1204 $(RCOPY) html\*.* $(INST_HTML)\*.*
1205
1206inst_lib : $(CONFIGPM)
1207 copy splittree.pl ..
1208 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1209 $(RCOPY) ..\lib $(INST_LIB)\*.*
1210
ca12659b 1211$(UNIDATAFILES) : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables
27a8011f 1212 cd ..\lib\unicore && \
1213 ..\$(MINIPERL) -I.. mktables
ca12659b 1214
1215minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils $(UNIDATAFILES)
6c85d12e 1216 $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1217 if exist ..\t\perl.exe del /f ..\t\perl.exe
1218 rename ..\t\miniperl.exe perl.exe
9e42cd94 1219 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1220 attrib -r ..\t\*.*
6c85d12e 1221 cd ..\t && \
1222 $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
9e42cd94 1223
1224test-prep : all utils
1225 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1226 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1227 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1228
1229test : test-prep
1230 cd ..\t
89087c85 1231 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
9e42cd94 1232 cd ..\win32
1233
1234test-notty : test-prep
1235 set PERL_SKIP_TTY_TEST=1
1236 cd ..\t
89087c85 1237 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
9e42cd94 1238 cd ..\win32
1239
b4a93add 1240_test :
1241 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1242 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1243 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1244 cd ..\t
89087c85 1245 $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
b4a93add 1246 cd ..\win32
1247
27a8011f 1248# the doubled rmdir calls are needed because older cmd shells
1249# don't understand /q
b4dc1df6 1250_clean :
9e42cd94 1251 -@$(DEL) miniperlmain$(o)
1252 -@$(DEL) $(MINIPERL)
1253 -@$(DEL) perlglob$(o)
1254 -@$(DEL) perlmain$(o)
1255 -@$(DEL) config.w32
1256 -@$(DEL) config.h
1257 -@$(DEL) $(GLOBEXE)
1258 -@$(DEL) $(PERLEXE)
1259 -@$(DEL) $(WPERLEXE)
1260 -@$(DEL) $(PERLDLL)
1261 -@$(DEL) $(CORE_OBJ)
1262 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
522078af 1263 -if exist $(MINIDIR) rmdir /s $(MINIDIR)
27a8011f 1264 -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1265 -if exist $(UNIDATADIR1) rmdir /s $(UNIDATADIR1)
1266 -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1267 -if exist $(UNIDATADIR2) rmdir /s $(UNIDATADIR2)
ca12659b 1268 -@$(DEL) $(UNIDATAFILES)
27a8011f 1269 -@$(DEL) $(WIN32_OBJ)
9e42cd94 1270 -@$(DEL) $(DLL_OBJ)
1271 -@$(DEL) $(X2P_OBJ)
1272 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1273 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1274 -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat
1275 -@$(DEL) *.ilk
1276 -@$(DEL) *.pdb
1277
b4dc1df6 1278clean : Extensions_clean _clean
1279
1280realclean : Extensions_realclean _clean
1281
9e42cd94 1282# Handy way to run perlbug -ok without having to install and run the
1283# installed perlbug. We don't re-run the tests here - we trust the user.
1284# Please *don't* use this unless all tests pass.
1285# If you want to report test failures, use "nmake nok" instead.
1286ok: utils
1287 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1288
1289okfile: utils
1290 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1291
1292nok: utils
1293 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1294
1295nokfile: utils
1296 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok