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