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