Remove the pack.t kludge introduced to fudge the test
[p5sagit/p5-mst-13.2.git] / win32 / Makefile
CommitLineData
e7083a8c 1#
2# Makefile to build perl on Windows NT using Microsoft NMAKE.
68dc0745 3#
4# This is set up to build a perl.exe that runs off a shared library
5# (perl.dll). Also makes individual DLLs for the XS extensions.
e7083a8c 6#
7
8##
69e1fe5e 9## Make sure you read README.win32 *before* you mess with anything here!
10##
11
12##
e7083a8c 13## Build configuration. Edit the values below to suit your needs.
14##
15
137443ea 16#
17# Set these to wherever you want "nmake install" to put your
18# newly built perl.
e7083a8c 19#
eb480a0b 20INST_DRV = c:
e5a95ffb 21INST_TOP = $(INST_DRV)\perl
22
e7083a8c 23#
e5a95ffb 24# Comment this out if you DON'T want your perl installation to be versioned.
25# This means that the new installation will overwrite any files from the
26# old installation at the same INST_TOP location. Leaving it enabled is
27# the safest route, as perl adds the extra version directory to all the
28# locations it installs files to. If you disable it, an alternative
29# versioned installation can be obtained by setting INST_TOP above to a
30# path that includes an arbitrary version string.
e7083a8c 31#
93342173 32INST_VER = \5.5.670
d07c2202 33
34#
0cb96387 35# Comment this out if you DON'T want your perl installation to have
36# architecture specific components. This means that architecture-
37# specific files will be installed along with the architecture-neutral
38# files. Leaving it enabled is safer and more flexible, in case you
39# want to build multiple flavors of perl and install them together in
40# the same location. Commenting it out gives you a simpler
41# installation that is easier to understand for beginners.
42#
51371543 43INST_ARCH = \$(ARCHNAME)
0cb96387 44
45#
d08ede9a 46# uncomment to enable multiple interpreters. This is need for fork()
47# emulation.
c5be433b 48#
d08ede9a 49#USE_MULTI = define
137443ea 50
c90c0ff4 51#
d08ede9a 52# XXX WARNING! This option is still very experimental. May be broken.
c5be433b 53#
d08ede9a 54# Beginnings of interpreter cloning/threads; still very incomplete.
55# This should be enabled to get the fork() emulation. This needs
56# USE_MULTI as well.
b86a2fa7 57#
d08ede9a 58#USE_ITHREADS = define
b86a2fa7 59
60#
d08ede9a 61# uncomment to enable the implicit "host" layer for all system calls
62# made by perl. This needs USE_MULTI above. This is also needed to
63# get fork().
c5be433b 64#
d08ede9a 65#USE_IMP_SYS = define
c5be433b 66
67#
d08ede9a 68# WARNING! This option is deprecated and will eventually go away (enable
69# USE_ITHREADS instead).
7766f137 70#
d08ede9a 71# uncomment to enable threads-capabilities. This is incompatible with
72# USE_ITHREADS, and is only here for people who may have come to rely
73# on the experimental Thread support that was in 5.005.
7766f137 74#
d08ede9a 75#USE_5005THREADS= define
7766f137 76
77#
d08ede9a 78# WARNING! This option is deprecated and will eventually go away (enable
79# USE_MULTI instead).
7766f137 80#
d08ede9a 81# uncomment next line if you want to use the PERL_OBJECT build option.
82# DO NOT ENABLE unless you have legacy code that relies on the C++
83# CPerlObj class that was available in 5.005. This cannot be enabled
84# if you ask for USE_5005THREADS above.
85#
86#USE_OBJECT = define
7766f137 87
88#
7fac1903 89# uncomment one of the following lines if you are using either
90# Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
e7083a8c 91#
eb480a0b 92#CCTYPE = MSVC20
7fac1903 93#CCTYPE = MSVC60
c90c0ff4 94
95#
96# uncomment next line if you want debug version of perl (big,slow)
e7083a8c 97#
eb480a0b 98#CFG = Debug
137443ea 99
d484a829 100#
66aa1127 101# uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
5db10396 102# It has patches that fix known bugs in older versions of MSVCRT.DLL.
c5be433b 103# This currently requires VC 5.0 with Service Pack 3 or later.
b89743e8 104# Get it from CPAN at http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/
66aa1127 105# and follow the directions in the package to install.
e7083a8c 106#
f7aeb604 107# Not recommended if you have VC 6.x and you're not running Windows 9x.
108#
e7083a8c 109#USE_PERLCRT = define
110
111#
baed7233 112# uncomment to enable linking with setargv.obj under the Visual C
113# compiler. Setting this options enables perl to expand wildcards in
114# arguments, but it may be harder to use alternate methods like
115# File::DosGlob that are more powerful. This option is supported only with
116# Visual C.
117#
118#USE_SETARGV = define
119
120#
26618a56 121# if you have the source for des_fcrypt(), uncomment this and make sure the
8d9b2e3c 122# file exists (see README.win32). File should be located in the same
ff95b63e 123# directory as this file.
e7083a8c 124#
2d77217b 125#CRYPT_SRC = fcrypt.c
26618a56 126
127#
128# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
129# library, uncomment this, and make sure the library exists (see README.win32)
a1dd9325 130# Specify the full pathname of the library.
e7083a8c 131#
2d77217b 132#CRYPT_LIB = fcrypt.lib
26618a56 133
134#
1c1c7f20 135# set this if you wish to use perl's malloc
136# WARNING: Turning this on/off WILL break binary compatibility with extensions
5fd76c3e 137# you may have compiled with/without it. Be prepared to recompile all
138# extensions if you change the default. Currently, this cannot be enabled
d08ede9a 139# if you ask for USE_IMP_SYS above.
e7083a8c 140#
01f988be 141#PERL_MALLOC = define
1c1c7f20 142
143#
3e3baf6d 144# set the install locations of the compiler include/libraries
69e1fe5e 145# Running VCVARS32.BAT is *required* when using Visual C.
95883bf3 146# Some versions of Visual C don't define MSVCDIR in the environment,
80252599 147# so you may have to set CCHOME explicitly (spaces in the path name should
148# not be quoted)
a8deba26 149#
eb480a0b 150#CCHOME = f:\msvc20
151CCHOME = $(MSVCDIR)
152CCINCDIR = $(CCHOME)\include
153CCLIBDIR = $(CCHOME)\lib
3e3baf6d 154
155#
c39cd008 156# Additional compiler flags can be specified here.
e02fdbd2 157#
c39cd008 158
159#
160# This should normally be disabled. Adding -DPERL_POLLUTE enables support
161# for old symbols by default, at the expense of extreme pollution. You most
162# probably just want to build modules that won't compile with
163# perl Makefile.PL POLLUTE=1
164# instead of enabling this. Please report such modules to the respective
165# authors.
e02fdbd2 166#
c5be433b 167#BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
e02fdbd2 168
169#
c39cd008 170# This should normally be disabled. Enabling it will disable the File::Glob
171# implementation of CORE::glob.
a7089531 172#
52bb0670 173#BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
a7089531 174
c39cd008 175#
176# This should normally be disabled. Enabling it causes perl to read scripts
177# in text mode (which is the 5.005 behavior) and will break ByteLoader.
e68cb057 178#BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
5db10396 179
c39cd008 180#
181# This should normally be disabled. Enabling it runs a cloned toplevel
182# interpreter (*EXPERIMENTAL*, fails tests)
7766f137 183#BUILDOPT = $(BUILDOPT) -DTOP_CLONE
971a9dd3 184
c39cd008 185#
80252599 186# specify semicolon-separated list of extra directories that modules will
187# look for libraries (spaces in path names need not be quoted)
fa4efe8e 188#
189EXTRALIBDIRS =
190
191#
d484a829 192# set this to your email address (perl will guess a value from
193# from your loginname and your hostname, which may not be right)
e7083a8c 194#
fd9459bc 195#EMAIL =
d484a829 196
e7083a8c 197##
198## Build configuration ends.
199##
200
137443ea 201##################### CHANGE THESE ONLY IF YOU MUST #####################
202
26618a56 203!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
eb480a0b 204D_CRYPT = undef
26618a56 205!ELSE
eb480a0b 206D_CRYPT = define
207CRYPT_FLAG = -DHAVE_DES_FCRYPT
208!ENDIF
209
c5be433b 210!IF "$(USE_OBJECT)" == "define"
eb480a0b 211PERL_MALLOC = undef
aaacdc8b 212USE_5005THREADS = undef
b86a2fa7 213USE_MULTI = undef
7766f137 214USE_IMP_SYS = define
26618a56 215!ENDIF
216
1c1c7f20 217!IF "$(PERL_MALLOC)" == ""
218PERL_MALLOC = undef
219!ENDIF
220
aaacdc8b 221!IF "$(USE_5005THREADS)" == ""
222USE_5005THREADS = undef
eb480a0b 223!ENDIF
224
aaacdc8b 225!IF "$(USE_5005THREADS)" == "define"
7766f137 226USE_ITHREADS = undef
227!ENDIF
228
d08ede9a 229!IF "$(USE_IMP_SYS)" == "define"
230PERL_MALLOC = undef
231!ENDIF
232
b86a2fa7 233!IF "$(USE_MULTI)" == ""
234USE_MULTI = undef
235!ENDIF
236
3bb366e1 237!IF "$(USE_OBJECT)" == ""
238USE_OBJECT = undef
239!ENDIF
240
7766f137 241!IF "$(USE_ITHREADS)" == ""
242USE_ITHREADS = undef
243!ENDIF
244
245!IF "$(USE_IMP_SYS)" == ""
246USE_IMP_SYS = undef
247!ENDIF
248
f7aeb604 249!IF "$(USE_PERLCRT)" == ""
250USE_PERLCRT = undef
251!ENDIF
252
6f4183fe 253!IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
254USE_MULTI = define
255!ENDIF
256
257!IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
258USE_MULTI = define
259USE_5005THREADS = undef
260!ENDIF
261
aaacdc8b 262!IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
0b94c7bb 263BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
264!ENDIF
265
7766f137 266!IF "$(USE_IMP_SYS)" != "undef"
267BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
268!ENDIF
269
d07c2202 270!IF "$(PROCESSOR_ARCHITECTURE)" == ""
271PROCESSOR_ARCHITECTURE = x86
272!ENDIF
273
c5be433b 274!IF "$(USE_OBJECT)" == "define"
b83ac84c 275ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object
276!ELSE
aaacdc8b 277!IF "$(USE_5005THREADS)" == "define"
d07c2202 278ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
924b3ec4 279!ELSE
c5be433b 280!IF "$(USE_MULTI)" == "define"
281ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
282!ELSE
924b3ec4 283ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
d07c2202 284!ENDIF
b83ac84c 285!ENDIF
c5be433b 286!ENDIF
d07c2202 287
aaacdc8b 288!IF "$(USE_ITHREADS)" == "define"
289ARCHNAME = $(ARCHNAME)-thread
290!ENDIF
291
7fac1903 292# Visual Studio 98 specific
293!IF "$(CCTYPE)" == "MSVC60"
294
295# VC 6.0 can load the socket dll on demand. Makes the test suite
296# run in about 10% less time.
729a02f2 297DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
7fac1903 298
299# VC 6.0 seems capable of compiling perl correctly with optimizations
300# enabled. Anything earlier fails tests.
301!IF "$(CFG)" == ""
302CFG = Optimize
303!ENDIF
304!ENDIF
305
28004758 306ARCHDIR = ..\lib\$(ARCHNAME)
d07c2202 307COREDIR = ..\lib\CORE
eb480a0b 308AUTODIR = ..\lib\auto
28004758 309LIBDIR = ..\lib
310EXTDIR = ..\ext
311PODDIR = ..\pod
312EXTUTILSDIR = $(LIBDIR)\ExtUtils
313
314#
315INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
316INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
317INST_LIB = $(INST_TOP)$(INST_VER)\lib
318INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
319INST_COREDIR = $(INST_ARCHLIB)\CORE
320INST_POD = $(INST_LIB)\pod
321INST_HTML = $(INST_POD)\html
d07c2202 322
137443ea 323#
324# Programs to compile, build .lib files and link
325#
68dc0745 326
045453ec 327CC = cl
328LINK32 = link
eb480a0b 329LIB32 = $(LINK32) -lib
fd9459bc 330RSC = rc
eb480a0b 331
68dc0745 332#
137443ea 333# Options
334#
eb480a0b 335
af883608 336RUNTIME = -MD
9036c72f 337INCLUDES = -I$(COREDIR) -I.\include -I. -I..
eb480a0b 338#PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
c5be433b 339DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
eb480a0b 340LOCDEFS = -DPERLDLL -DPERL_CORE
341SUBSYS = console
342CXX_FLAG = -TP -GX
137443ea 343
f7aeb604 344!IF "$(USE_PERLCRT)" != "define"
e7083a8c 345! IF "$(CFG)" == "Debug"
346PERLCRTLIBC = msvcrtd.lib
347! ELSE
348PERLCRTLIBC = msvcrt.lib
349! ENDIF
350!ELSE
351! IF "$(CFG)" == "Debug"
352PERLCRTLIBC = PerlCRTD.lib
353! ELSE
354PERLCRTLIBC = PerlCRT.lib
355! ENDIF
356!ENDIF
357
fd9459bc 358PERLEXE_RES =
359PERLDLL_RES =
360
137443ea 361!IF "$(RUNTIME)" == "-MD"
e7083a8c 362LIBC = $(PERLCRTLIBC)
137443ea 363!ELSE
eb480a0b 364LIBC = libcmt.lib
137443ea 365!ENDIF
366
367!IF "$(CFG)" == "Debug"
368! IF "$(CCTYPE)" == "MSVC20"
eb480a0b 369OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
137443ea 370! ELSE
3dfd1da1 371OPTIMIZE = -Od $(RUNTIME)d -Zi -D_DEBUG -DDEBUGGING
137443ea 372! ENDIF
eb480a0b 373LINK_DBG = -debug -pdb:none
137443ea 374!ELSE
74593e1f 375! IF "$(CFG)" == "Optimize"
c5be433b 376# -O1 yields smaller code, which turns out to be faster than -O2
377#OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG
378OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG
137443ea 379! ELSE
af883608 380OPTIMIZE = -Od $(RUNTIME) -DNDEBUG
137443ea 381! ENDIF
eb480a0b 382LINK_DBG = -release
383!ENDIF
384
c5be433b 385!IF "$(USE_OBJECT)" == "define"
eb480a0b 386OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
c5be433b 387BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
137443ea 388!ENDIF
68dc0745 389
f7aeb604 390!IF "$(USE_PERLCRT)" != "define"
391BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
392!ENDIF
393
7fac1903 394LIBBASEFILES = $(DELAYLOAD) $(CRYPT_LIB) \
f7aeb604 395 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
396 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
397 netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
eb480a0b 398 version.lib odbc32.lib odbccp32.lib
3e3baf6d 399
e7083a8c 400# we add LIBC here, since we may be using PerlCRT.dll
401LIBFILES = $(LIBBASEFILES) $(LIBC)
402
eb480a0b 403CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
404 $(PCHFLAGS) $(OPTIMIZE)
28004758 405LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
406 -libpath:"$(INST_COREDIR)" \
407 -machine:$(PROCESSOR_ARCHITECTURE)
eb480a0b 408OBJOUT_FLAG = -Fo
409EXEOUT_FLAG = -Fe
410
c5be433b 411CFLAGS_O = $(CFLAGS) $(BUILDOPT)
137443ea 412
413#################### do not edit below this line #######################
414############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
415
d56e6723 416o = .obj
417
137443ea 418#
419# Rules
420#
137443ea 421
fd9459bc 422.SUFFIXES : .c $(o) .dll .lib .exe .rc .res
d56e6723 423
424.c$(o):
eb480a0b 425 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
426
427.y.c:
428 $(NOOP)
137443ea 429
d56e6723 430$(o).dll:
3e3baf6d 431 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
dc050285 432 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
68dc0745 433
fd9459bc 434.rc.res:
e9ff6d27 435 $(RSC) -i.. $<
fd9459bc 436
68dc0745 437#
68dc0745 438# various targets
3075ddba 439PERLIMPLIB = ..\perl56.lib
440PERLDLL = ..\perl56.dll
26618a56 441
eb480a0b 442MINIPERL = ..\miniperl.exe
443MINIDIR = .\mini
444PERLEXE = ..\perl.exe
7766f137 445WPERLEXE = ..\wperl.exe
eb480a0b 446GLOBEXE = ..\perlglob.exe
447CONFIGPM = ..\lib\Config.pm
448MINIMOD = ..\lib\ExtUtils\Miniperl.pm
449X2P = ..\x2p\a2p.exe
450
451PL2BAT = bin\pl2bat.pl
452GLOBBAT = bin\perlglob.bat
453
4a71ed0c 454UTILS = \
455 ..\utils\h2ph \
456 ..\utils\splain \
95667ae4 457 ..\utils\dprofpp \
4a71ed0c 458 ..\utils\perlbug \
459 ..\utils\pl2pm \
460 ..\utils\c2ph \
461 ..\utils\h2xs \
462 ..\utils\perldoc \
4a71ed0c 463 ..\utils\perlcc \
464 ..\pod\checkpods \
465 ..\pod\pod2html \
466 ..\pod\pod2latex \
467 ..\pod\pod2man \
468 ..\pod\pod2text \
360aca43 469 ..\pod\pod2usage \
470 ..\pod\podchecker \
471 ..\pod\podselect \
4a71ed0c 472 ..\x2p\find2perl \
473 ..\x2p\s2p \
c4bbdec3 474 bin\exetype.pl \
4a71ed0c 475 bin\runperl.pl \
476 bin\pl2bat.pl \
477 bin\perlglob.pl \
478 bin\search.pl
479
eb480a0b 480MAKE = nmake -nologo
481
482CFGSH_TMPL = config.vc
483CFGH_TMPL = config_H.vc
e7083a8c 484
eb480a0b 485XCOPY = xcopy /f /r /i /d
486RCOPY = xcopy /f /r /i /e /d
487NOOP = @echo
488NULL =
1c1c7f20 489
68dc0745 490#
491# filenames given to xsubpp must have forward slashes (since it puts
492# full pathnames in #line strings)
eb480a0b 493XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
494 -C++ -prototypes
495
852c2e52 496MICROCORE_SRC = \
eb480a0b 497 ..\av.c \
eb480a0b 498 ..\deb.c \
499 ..\doio.c \
500 ..\doop.c \
501 ..\dump.c \
502 ..\globals.c \
503 ..\gv.c \
504 ..\hv.c \
505 ..\mg.c \
506 ..\op.c \
507 ..\perl.c \
51371543 508 ..\perlapi.c \
eb480a0b 509 ..\perly.c \
510 ..\pp.c \
511 ..\pp_ctl.c \
512 ..\pp_hot.c \
513 ..\pp_sys.c \
514 ..\regcomp.c \
515 ..\regexec.c \
516 ..\run.c \
517 ..\scope.c \
518 ..\sv.c \
519 ..\taint.c \
520 ..\toke.c \
521 ..\universal.c \
a176fa2a 522 ..\utf8.c \
349fd7b7 523 ..\util.c \
524 ..\xsutils.c
eb480a0b 525
0cb96387 526EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
527
eb480a0b 528!IF "$(PERL_MALLOC)" == "define"
852c2e52 529EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
eb480a0b 530!ENDIF
531
c5be433b 532!IF "$(USE_OBJECT)" != "define"
852c2e52 533EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
eb480a0b 534!ENDIF
535
536WIN32_SRC = \
537 .\win32.c \
c44d3fdb 538 .\win32sck.c \
539 .\win32thread.c
eb480a0b 540
8d9b2e3c 541!IF "$(CRYPT_SRC)" != ""
542WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
543!ENDIF
544
eb480a0b 545DLL_SRC = $(DYNALOADER).c
546
eb480a0b 547X2P_SRC = \
548 ..\x2p\a2p.c \
549 ..\x2p\hash.c \
550 ..\x2p\str.c \
551 ..\x2p\util.c \
552 ..\x2p\walk.c
553
852c2e52 554CORE_NOCFG_H = \
eb480a0b 555 ..\av.h \
eb480a0b 556 ..\cop.h \
557 ..\cv.h \
558 ..\dosish.h \
559 ..\embed.h \
560 ..\form.h \
561 ..\gv.h \
562 ..\handy.h \
563 ..\hv.h \
0f4eea8f 564 ..\iperlsys.h \
eb480a0b 565 ..\mg.h \
566 ..\nostdio.h \
567 ..\op.h \
568 ..\opcode.h \
569 ..\perl.h \
51371543 570 ..\perlapi.h \
eb480a0b 571 ..\perlsdio.h \
572 ..\perlsfio.h \
573 ..\perly.h \
574 ..\pp.h \
575 ..\proto.h \
576 ..\regexp.h \
577 ..\scope.h \
578 ..\sv.h \
579 ..\thread.h \
580 ..\unixish.h \
a176fa2a 581 ..\utf8.h \
eb480a0b 582 ..\util.h \
2985053f 583 ..\warnings.h \
eb480a0b 584 ..\XSUB.h \
eb480a0b 585 ..\EXTERN.h \
586 ..\perlvars.h \
587 ..\intrpvar.h \
588 ..\thrdvar.h \
589 .\include\dirent.h \
590 .\include\netdb.h \
591 .\include\sys\socket.h \
7766f137 592 .\win32.h \
593 .\perlhost.h \
594 .\vdir.h \
595 .\vmem.h
eb480a0b 596
852c2e52 597CORE_H = $(CORE_NOCFG_H) .\config.h
598
599MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
600CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
eb480a0b 601WIN32_OBJ = $(WIN32_SRC:.c=.obj)
852c2e52 602MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
603 $(MINIDIR)\miniperlmain$(o) \
604 $(MINIDIR)\perlio$(o)
eb480a0b 605MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
606MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
eb480a0b 607DLL_OBJ = $(DLL_SRC:.c=.obj)
608X2P_OBJ = $(X2P_SRC:.c=.obj)
609
eb480a0b 610PERLDLL_OBJ = $(CORE_OBJ)
611PERLEXE_OBJ = perlmain$(o)
612
eb480a0b 613PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
0cb96387 614#PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
eb480a0b 615
baed7233 616!IF "$(USE_SETARGV)" != ""
617SETARGV_OBJ = setargv$(o)
618!ENDIF
619
823edd99 620DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
f91101c9 621 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
622 Sys/Hostname
eb480a0b 623STATIC_EXT = DynaLoader
eab60bb1 624NONXS_EXT = Errno
eb480a0b 625
626DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
627SOCKET = $(EXTDIR)\Socket\Socket
628FCNTL = $(EXTDIR)\Fcntl\Fcntl
629OPCODE = $(EXTDIR)\Opcode\Opcode
630SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
631IO = $(EXTDIR)\IO\IO
632POSIX = $(EXTDIR)\POSIX\POSIX
633ATTRS = $(EXTDIR)\attrs\attrs
634THREAD = $(EXTDIR)\Thread\Thread
635B = $(EXTDIR)\B\B
823edd99 636RE = $(EXTDIR)\re\re
637DUMPER = $(EXTDIR)\Data\Dumper\Dumper
eab60bb1 638ERRNO = $(EXTDIR)\Errno\Errno
3967c732 639PEEK = $(EXTDIR)\Devel\Peek\Peek
a6c40364 640BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
38b3a85b 641DPROF = $(EXTDIR)\Devel\DProf\DProf
4f49e16e 642GLOB = $(EXTDIR)\File\Glob\Glob
f91101c9 643HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
eb480a0b 644
645SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
646FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
647OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
648SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
649IO_DLL = $(AUTODIR)\IO\IO.dll
650POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
651ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
652THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
653B_DLL = $(AUTODIR)\B\B.dll
823edd99 654DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
3967c732 655PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
15e52e56 656RE_DLL = $(AUTODIR)\re\re.dll
b295d113 657BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
38b3a85b 658DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
4f49e16e 659GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
f91101c9 660HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
eb480a0b 661
eab60bb1 662ERRNO_PM = $(LIBDIR)\Errno.pm
663
eb480a0b 664EXTENSION_C = \
665 $(SOCKET).c \
666 $(FCNTL).c \
667 $(OPCODE).c \
668 $(SDBM_FILE).c \
669 $(IO).c \
670 $(POSIX).c \
671 $(ATTRS).c \
672 $(THREAD).c \
15e52e56 673 $(RE).c \
823edd99 674 $(DUMPER).c \
3967c732 675 $(PEEK).c \
b295d113 676 $(B).c \
38b3a85b 677 $(BYTELOADER).c \
4f49e16e 678 $(DPROF).c \
f91101c9 679 $(GLOB).c \
680 $(HOSTNAME).c
eb480a0b 681
682EXTENSION_DLL = \
683 $(SOCKET_DLL) \
684 $(FCNTL_DLL) \
685 $(OPCODE_DLL) \
686 $(SDBM_FILE_DLL)\
687 $(IO_DLL) \
688 $(POSIX_DLL) \
51aa15f3 689 $(ATTRS_DLL) \
823edd99 690 $(DUMPER_DLL) \
3967c732 691 $(PEEK_DLL) \
b295d113 692 $(B_DLL) \
c5be433b 693 $(RE_DLL) \
694 $(THREAD_DLL) \
38b3a85b 695 $(BYTELOADER_DLL) \
4f49e16e 696 $(DPROF_DLL) \
f91101c9 697 $(GLOB_DLL) \
698 $(HOSTNAME_DLL)
26ca90b6 699
eab60bb1 700EXTENSION_PM = \
701 $(ERRNO_PM)
702
eb480a0b 703POD2HTML = $(PODDIR)\pod2html
704POD2MAN = $(PODDIR)\pod2man
705POD2LATEX = $(PODDIR)\pod2latex
706POD2TEXT = $(PODDIR)\pod2text
707
708CFG_VARS = \
709 "INST_DRV=$(INST_DRV)" \
710 "INST_TOP=$(INST_TOP)" \
e5a95ffb 711 "INST_VER=$(INST_VER)" \
0cb96387 712 "INST_ARCH=$(INST_ARCH)" \
eb480a0b 713 "archname=$(ARCHNAME)" \
714 "cc=$(CC)" \
c5be433b 715 "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
eb480a0b 716 "cf_email=$(EMAIL)" \
717 "d_crypt=$(D_CRYPT)" \
718 "d_mymalloc=$(PERL_MALLOC)" \
719 "libs=$(LIBFILES)" \
80252599 720 "incpath=$(CCINCDIR:"=\")" \
721 "libperl=$(PERLIMPLIB:..\=)" \
722 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
eb480a0b 723 "libc=$(LIBC)" \
724 "make=nmake" \
725 "static_ext=$(STATIC_EXT)" \
726 "dynamic_ext=$(DYNAMIC_EXT)" \
eab60bb1 727 "nonxs_ext=$(NONXS_EXT)" \
aaacdc8b 728 "use5005threads=$(USE_5005THREADS)" \
729 "useithreads=$(USE_ITHREADS)" \
730 "usethreads=$(USE_5005THREADS)" \
b86a2fa7 731 "usemultiplicity=$(USE_MULTI)" \
80252599 732 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
733 "optimize=$(OPTIMIZE:"=\")"
924b3ec4 734
137443ea 735#
736# Top targets
737#
0a753a76 738
9e5f57de 739all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
c5be433b 740 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
0a753a76 741
d56e6723 742$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
0a753a76 743
137443ea 744#------------------------------------------------------------
0a753a76 745
eb480a0b 746$(GLOBEXE) : perlglob$(o)
dc050285 747 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
d56e6723 748 perlglob$(o) setargv$(o)
0a753a76 749
d56e6723 750perlglob$(o) : perlglob.c
137443ea 751
3e3baf6d 752config.w32 : $(CFGSH_TMPL)
753 copy $(CFGSH_TMPL) config.w32
754
d55594ae 755.\config.h : $(CFGH_TMPL)
3e3baf6d 756 -del /f config.h
757 copy $(CFGH_TMPL) config.h
758
137443ea 759..\config.sh : config.w32 $(MINIPERL) config_sh.PL
924b3ec4 760 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
137443ea 761
ac4c12e7 762# this target is for when changes to the main config.sh happen
763# edit config.{b,v,g}c and make this target once for each supported
764# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
765regen_config_h:
766 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
767 cd ..
768 -del /f perl.exe
769 perl configpm
770 cd win32
771 -del /f $(CFGH_TMPL)
80252599 772 -mkdir $(COREDIR)
e5a95ffb 773 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
ac4c12e7 774 rename config.h $(CFGH_TMPL)
775
83437bec 776$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
137443ea 777 cd .. && miniperl configpm
c90c0ff4 778 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
d07c2202 779 $(XCOPY) ..\*.h $(COREDIR)\*.*
780 $(XCOPY) *.h $(COREDIR)\*.*
15e52e56 781 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
d07c2202 782 $(RCOPY) include $(COREDIR)\*.*
e5a95ffb 783 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
80252599 784 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
137443ea 785
eb480a0b 786$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
137443ea 787 $(LINK32) -subsystem:console -out:$@ @<<
eb480a0b 788 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
137443ea 789<<
790
eb480a0b 791$(MINIDIR) :
792 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
793
852c2e52 794$(MINICORE_OBJ) : $(CORE_NOCFG_H)
fe0bfefd 795 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
eb480a0b 796
852c2e52 797$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
eb480a0b 798 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
799
7766f137 800# -DPERL_IMPLICIT_SYS needs C++ for perllib.c
801!IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
802perllib$(o) : perllib.c
803 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
804!ENDIF
805
852c2e52 806# 1. we don't want to rebuild miniperl.exe when config.h changes
807# 2. we don't want to rebuild miniperl.exe with non-default config.h
808$(MINI_OBJ) : $(CORE_NOCFG_H)
809
eb480a0b 810$(WIN32_OBJ) : $(CORE_H)
811$(CORE_OBJ) : $(CORE_H)
eb480a0b 812$(DLL_OBJ) : $(CORE_H)
eb480a0b 813$(X2P_OBJ) : $(CORE_H)
0a753a76 814
549a6b10 815perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
816 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
910dfcc8 817 CCTYPE=$(CCTYPE) > perldll.def
0a753a76 818
fd9459bc 819$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
137443ea 820 $(LINK32) -dll -def:perldll.def -out:$@ @<<
729a02f2 821 $(LINK_FLAGS) /base:0x28000000 $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
137443ea 822<<
d07c2202 823 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
137443ea 824
83437bec 825$(MINIMOD) : $(MINIPERL) ..\minimod.pl
826 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
827
eb480a0b 828..\x2p\a2p$(o) : ..\x2p\a2p.c
829 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
830
831..\x2p\hash$(o) : ..\x2p\hash.c
832 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
833
834..\x2p\str$(o) : ..\x2p\str.c
835 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
836
837..\x2p\util$(o) : ..\x2p\util.c
838 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
839
840..\x2p\walk$(o) : ..\x2p\walk.c
841 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
842
843$(X2P) : $(MINIPERL) $(X2P_OBJ)
844 $(MINIPERL) ..\x2p\find2perl.PL
845 $(MINIPERL) ..\x2p\s2p.PL
d07c2202 846 $(LINK32) -subsystem:console -out:$@ @<<
eb480a0b 847 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
d07c2202 848<<
849
83437bec 850perlmain.c : runperl.c
0a753a76 851 copy runperl.c perlmain.c
137443ea 852
d56e6723 853perlmain$(o) : perlmain.c
8957be0a 854 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
137443ea 855
fd9459bc 856$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
eb480a0b 857 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
fd9459bc 858 $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
7766f137 859 copy $(PERLEXE) $(WPERLEXE)
2f8d1947 860 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
0a753a76 861 copy splittree.pl ..
eb480a0b 862 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
0a753a76 863
137443ea 864$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
eb480a0b 865 if not exist $(AUTODIR) mkdir $(AUTODIR)
a1dd9325 866 cd $(EXTDIR)\$(*B)
bfab39a2 867 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
8454a2ba 868 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
a1dd9325 869 cd ..\..\win32
68dc0745 870 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
8454a2ba 871 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
68dc0745 872 cd $(EXTDIR)\$(*B)
873 $(XSUBPP) dl_win32.xs > $(*B).c
0a753a76 874 cd ..\..\win32
875
68dc0745 876$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
877 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
0a753a76 878
823edd99 879$(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
880 cd $(EXTDIR)\Data\$(*B)
881 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
882 $(MAKE)
883 cd ..\..\..\win32
884
38b3a85b 885$(DPROF_DLL): $(PERLEXE) $(DPROF).xs
886 cd $(EXTDIR)\Devel\$(*B)
887 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
888 $(MAKE)
889 cd ..\..\..\win32
890
4f49e16e 891$(GLOB_DLL): $(PERLEXE) $(GLOB).xs
892 cd $(EXTDIR)\File\$(*B)
893 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
894 $(MAKE)
895 cd ..\..\..\win32
896
3967c732 897$(PEEK_DLL): $(PERLEXE) $(PEEK).xs
898 cd $(EXTDIR)\Devel\$(*B)
899 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
900 $(MAKE)
901 cd ..\..\..\win32
902
15e52e56 903$(RE_DLL): $(PERLEXE) $(RE).xs
904 cd $(EXTDIR)\$(*B)
905 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
906 $(MAKE)
907 cd ..\..\win32
908
2a321948 909$(B_DLL): $(PERLEXE) $(B).xs
a98bd6f4 910 cd $(EXTDIR)\$(*B)
911 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
912 $(MAKE)
913 cd ..\..\win32
914
d55594ae 915$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
059e4e88 916 cd $(EXTDIR)\$(*B)
917 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
918 $(MAKE)
919 cd ..\..\win32
920
2a321948 921$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
922 cd $(EXTDIR)\$(*B)
923 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
924 $(MAKE)
925 cd ..\..\win32
d55594ae 926
6dead956 927$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
928 cd $(EXTDIR)\$(*B)
929 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
930 $(MAKE)
931 cd ..\..\win32
932
eb480a0b 933$(IO_DLL): $(PERLEXE) $(IO).xs
68dc0745 934 cd $(EXTDIR)\$(*B)
137443ea 935 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
936 $(MAKE)
0a753a76 937 cd ..\..\win32
938
137443ea 939$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
68dc0745 940 cd $(EXTDIR)\$(*B)
137443ea 941 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
942 $(MAKE)
68dc0745 943 cd ..\..\win32
0a753a76 944
137443ea 945$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
68dc0745 946 cd $(EXTDIR)\$(*B)
137443ea 947 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
948 $(MAKE)
0a753a76 949 cd ..\..\win32
950
137443ea 951$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
68dc0745 952 cd $(EXTDIR)\$(*B)
137443ea 953 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
954 $(MAKE)
68dc0745 955 cd ..\..\win32
0a753a76 956
059e4e88 957$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
68dc0745 958 cd $(EXTDIR)\$(*B)
137443ea 959 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
960 $(MAKE)
0a753a76 961 cd ..\..\win32
962
f91101c9 963$(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
964 cd $(EXTDIR)\Sys\$(*B)
965 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
966 $(MAKE)
967 cd ..\..\..\win32
968
b295d113 969$(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
970 cd $(EXTDIR)\$(*B)
971 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
972 $(MAKE)
973 cd ..\..\win32
974
eab60bb1 975$(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
976 cd $(EXTDIR)\$(*B)
977 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
978 $(MAKE)
979 cd ..\..\win32
980
68dc0745 981doc: $(PERLEXE)
d07c2202 982 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
b3b61bd8 983 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
3e3baf6d 984 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
68dc0745 985
4a71ed0c 986utils: $(PERLEXE) $(X2P)
3fe9a6f1 987 cd ..\utils
eb480a0b 988 $(MAKE) PERL=$(MINIPERL)
4a71ed0c 989 cd ..\pod
66aa1127 990 copy ..\README.win32 .\perlwin32.pod
4a71ed0c 991 $(MAKE) -f ..\win32\pod.mak converters
3fe9a6f1 992 cd ..\win32
4a71ed0c 993 $(PERLEXE) $(PL2BAT) $(UTILS)
3fe9a6f1 994
137443ea 995distclean: clean
9e5f57de 996 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
83437bec 997 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
3e3baf6d 998 -del /f *.def *.map
eab60bb1 999 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
1000 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
eb480a0b 1001 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1002 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
8454a2ba 1003 -del /f $(LIBDIR)\XSLoader.pm
eb480a0b 1004 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1005 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1006 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
15e52e56 1007 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
b295d113 1008 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
38b3a85b 1009 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
4f49e16e 1010 -del /f $(LIBDIR)\File\Glob.pm
eb480a0b 1011 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
1012 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
1013 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
823edd99 1014 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
68dc0745 1015 -del /f $(PODDIR)\*.html
1016 -del /f $(PODDIR)\*.bat
eb480a0b 1017 cd ..\utils
5920a0ba 1018 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
eb480a0b 1019 -del /f *.bat
1020 cd ..\win32
1021 cd ..\x2p
1022 -del /f find2perl s2p
1023 -del /f *.bat
1024 cd ..\win32
1025 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1026 -del /f $(CONFIGPM)
d444a431 1027 -del /f bin\*.bat
3e3baf6d 1028 cd $(EXTDIR)
22c35a8c 1029 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
3e3baf6d 1030 cd ..\win32
eb480a0b 1031 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
1032 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
68dc0745 1033
4a71ed0c 1034install : all installbare installhtml
6dead956 1035
4a71ed0c 1036installbare : utils
d07c2202 1037 $(PERLEXE) ..\installperl
7766f137 1038 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
68dc0745 1039 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
e5a95ffb 1040 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
6dead956 1041
1042installhtml : doc
3e3baf6d 1043 $(RCOPY) html\*.* $(INST_HTML)\*.*
68dc0745 1044
137443ea 1045inst_lib : $(CONFIGPM)
68dc0745 1046 copy splittree.pl ..
eb480a0b 1047 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
c90c0ff4 1048 $(RCOPY) ..\lib $(INST_LIB)\*.*
0a753a76 1049
dfb634a9 1050minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
137443ea 1051 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1052 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1053 attrib -r ..\t\*.*
1054 copy test ..\t
1055 cd ..\t
1056 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1057 cd ..\win32
1058
dfb634a9 1059test-prep : all utils
68dc0745 1060 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1061 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1062 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
fb73857a 1063
1064test : test-prep
1065 cd ..\t
1066 $(PERLEXE) -I..\lib harness
1067 cd ..\win32
1068
1069test-notty : test-prep
1070 set PERL_SKIP_TTY_TEST=1
137443ea 1071 cd ..\t
1072 $(PERLEXE) -I..\lib harness
68dc0745 1073 cd ..\win32
137443ea 1074
1075clean :
d56e6723 1076 -@erase miniperlmain$(o)
137443ea 1077 -@erase $(MINIPERL)
d56e6723 1078 -@erase perlglob$(o)
1079 -@erase perlmain$(o)
3e3baf6d 1080 -@erase config.w32
1081 -@erase /f config.h
137443ea 1082 -@erase $(GLOBEXE)
1083 -@erase $(PERLEXE)
7766f137 1084 -@erase $(WPERLEXE)
137443ea 1085 -@erase $(PERLDLL)
1086 -@erase $(CORE_OBJ)
eb480a0b 1087 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
137443ea 1088 -@erase $(WIN32_OBJ)
1089 -@erase $(DLL_OBJ)
d07c2202 1090 -@erase $(X2P_OBJ)
c5be433b 1091 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
d444a431 1092 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
d07c2202 1093 -@erase ..\x2p\*.exe ..\x2p\*.bat
137443ea 1094 -@erase *.ilk
1095 -@erase *.pdb