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