avoid inefficiency in change#3386 (every longjmp() was followed
[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 \
38b3a85b 549 Data/Dumper Devel/Peek ByteLoader Devel/DProf
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
eb480a0b 569
570SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
571FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
572OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
573SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
574IO_DLL = $(AUTODIR)\IO\IO.dll
575POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
576ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
577THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
578B_DLL = $(AUTODIR)\B\B.dll
823edd99 579DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
3967c732 580PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
15e52e56 581RE_DLL = $(AUTODIR)\re\re.dll
b295d113 582BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
38b3a85b 583DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
eb480a0b 584
eab60bb1 585ERRNO_PM = $(LIBDIR)\Errno.pm
586
eb480a0b 587EXTENSION_C = \
588 $(SOCKET).c \
589 $(FCNTL).c \
590 $(OPCODE).c \
591 $(SDBM_FILE).c \
592 $(IO).c \
593 $(POSIX).c \
594 $(ATTRS).c \
595 $(THREAD).c \
15e52e56 596 $(RE).c \
823edd99 597 $(DUMPER).c \
3967c732 598 $(PEEK).c \
b295d113 599 $(B).c \
38b3a85b 600 $(BYTELOADER).c \
601 $(DPROF).c
eb480a0b 602
603EXTENSION_DLL = \
604 $(SOCKET_DLL) \
605 $(FCNTL_DLL) \
606 $(OPCODE_DLL) \
607 $(SDBM_FILE_DLL)\
608 $(IO_DLL) \
609 $(POSIX_DLL) \
51aa15f3 610 $(ATTRS_DLL) \
823edd99 611 $(DUMPER_DLL) \
3967c732 612 $(PEEK_DLL) \
b295d113 613 $(B_DLL) \
c5be433b 614 $(RE_DLL) \
615 $(THREAD_DLL) \
38b3a85b 616 $(BYTELOADER_DLL) \
617 $(DPROF_DLL)
26ca90b6 618
eab60bb1 619EXTENSION_PM = \
620 $(ERRNO_PM)
621
eb480a0b 622POD2HTML = $(PODDIR)\pod2html
623POD2MAN = $(PODDIR)\pod2man
624POD2LATEX = $(PODDIR)\pod2latex
625POD2TEXT = $(PODDIR)\pod2text
626
627CFG_VARS = \
628 "INST_DRV=$(INST_DRV)" \
629 "INST_TOP=$(INST_TOP)" \
e5a95ffb 630 "INST_VER=$(INST_VER)" \
0cb96387 631 "INST_ARCH=$(INST_ARCH)" \
eb480a0b 632 "archname=$(ARCHNAME)" \
633 "cc=$(CC)" \
c5be433b 634 "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
eb480a0b 635 "cf_email=$(EMAIL)" \
636 "d_crypt=$(D_CRYPT)" \
637 "d_mymalloc=$(PERL_MALLOC)" \
638 "libs=$(LIBFILES)" \
80252599 639 "incpath=$(CCINCDIR:"=\")" \
640 "libperl=$(PERLIMPLIB:..\=)" \
641 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
eb480a0b 642 "libc=$(LIBC)" \
643 "make=nmake" \
644 "static_ext=$(STATIC_EXT)" \
645 "dynamic_ext=$(DYNAMIC_EXT)" \
eab60bb1 646 "nonxs_ext=$(NONXS_EXT)" \
eb480a0b 647 "usethreads=$(USE_THREADS)" \
b86a2fa7 648 "usemultiplicity=$(USE_MULTI)" \
80252599 649 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
650 "optimize=$(OPTIMIZE:"=\")"
924b3ec4 651
137443ea 652#
653# Top targets
654#
0a753a76 655
852c2e52 656all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) $(PERL95EXE) \
c5be433b 657 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
0a753a76 658
d56e6723 659$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
0a753a76 660
137443ea 661#------------------------------------------------------------
0a753a76 662
eb480a0b 663$(GLOBEXE) : perlglob$(o)
dc050285 664 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
d56e6723 665 perlglob$(o) setargv$(o)
0a753a76 666
d56e6723 667perlglob$(o) : perlglob.c
137443ea 668
3e3baf6d 669config.w32 : $(CFGSH_TMPL)
670 copy $(CFGSH_TMPL) config.w32
671
d55594ae 672.\config.h : $(CFGH_TMPL)
3e3baf6d 673 -del /f config.h
674 copy $(CFGH_TMPL) config.h
675
137443ea 676..\config.sh : config.w32 $(MINIPERL) config_sh.PL
924b3ec4 677 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
137443ea 678
ac4c12e7 679# this target is for when changes to the main config.sh happen
680# edit config.{b,v,g}c and make this target once for each supported
681# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
682regen_config_h:
683 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
684 cd ..
685 -del /f perl.exe
686 perl configpm
687 cd win32
688 -del /f $(CFGH_TMPL)
80252599 689 -mkdir $(COREDIR)
e5a95ffb 690 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
ac4c12e7 691 rename config.h $(CFGH_TMPL)
692
83437bec 693$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
137443ea 694 cd .. && miniperl configpm
c90c0ff4 695 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
d07c2202 696 $(XCOPY) ..\*.h $(COREDIR)\*.*
697 $(XCOPY) *.h $(COREDIR)\*.*
15e52e56 698 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
d07c2202 699 $(RCOPY) include $(COREDIR)\*.*
e5a95ffb 700 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
80252599 701 || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
137443ea 702
eb480a0b 703$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
137443ea 704 $(LINK32) -subsystem:console -out:$@ @<<
eb480a0b 705 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
137443ea 706<<
707
eb480a0b 708$(MINIDIR) :
709 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
710
852c2e52 711$(MINICORE_OBJ) : $(CORE_NOCFG_H)
eb480a0b 712 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ ..\$(*F).c
713
852c2e52 714$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
eb480a0b 715 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
716
852c2e52 717# 1. we don't want to rebuild miniperl.exe when config.h changes
718# 2. we don't want to rebuild miniperl.exe with non-default config.h
719$(MINI_OBJ) : $(CORE_NOCFG_H)
720
eb480a0b 721$(WIN32_OBJ) : $(CORE_H)
722$(CORE_OBJ) : $(CORE_H)
eb480a0b 723$(DLL_OBJ) : $(CORE_H)
724$(PERL95_OBJ) : $(CORE_H)
725$(X2P_OBJ) : $(CORE_H)
0a753a76 726
549a6b10 727perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
728 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
910dfcc8 729 CCTYPE=$(CCTYPE) > perldll.def
0a753a76 730
eb480a0b 731$(PERLDLL): perldll.def $(PERLDLL_OBJ)
137443ea 732 $(LINK32) -dll -def:perldll.def -out:$@ @<<
eb480a0b 733 $(LINK_FLAGS) $(LIBFILES) $(PERLDLL_OBJ)
137443ea 734<<
d07c2202 735 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
137443ea 736
83437bec 737$(MINIMOD) : $(MINIPERL) ..\minimod.pl
738 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
739
eb480a0b 740..\x2p\a2p$(o) : ..\x2p\a2p.c
741 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
742
743..\x2p\hash$(o) : ..\x2p\hash.c
744 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
745
746..\x2p\str$(o) : ..\x2p\str.c
747 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
748
749..\x2p\util$(o) : ..\x2p\util.c
750 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
751
752..\x2p\walk$(o) : ..\x2p\walk.c
753 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
754
755$(X2P) : $(MINIPERL) $(X2P_OBJ)
756 $(MINIPERL) ..\x2p\find2perl.PL
757 $(MINIPERL) ..\x2p\s2p.PL
d07c2202 758 $(LINK32) -subsystem:console -out:$@ @<<
eb480a0b 759 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
d07c2202 760<<
761
83437bec 762perlmain.c : runperl.c
0a753a76 763 copy runperl.c perlmain.c
137443ea 764
d56e6723 765perlmain$(o) : perlmain.c
8957be0a 766 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
137443ea 767
eb480a0b 768$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ)
769 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
baed7233 770 $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB)
0a753a76 771 copy splittree.pl ..
eb480a0b 772 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
0a753a76 773
e7083a8c 774!IF "$(USE_PERLCRT)" == ""
775
3e3baf6d 776perl95.c : runperl.c
777 copy runperl.c perl95.c
778
d56e6723 779perl95$(o) : perl95.c
eb480a0b 780 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c perl95.c
3e3baf6d 781
d56e6723 782win32sckmt$(o) : win32sck.c
eb480a0b 783 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
784 $(OBJOUT_FLAG)win32sckmt$(o) win32sck.c
fb73857a 785
d56e6723 786win32mt$(o) : win32.c
eb480a0b 787 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
788 $(OBJOUT_FLAG)win32mt$(o) win32.c
fb73857a 789
ac4c12e7 790DynaLoadmt$(o) : $(DYNALOADER).c
791 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
792 $(OBJOUT_FLAG)DynaLoadmt$(o) $(DYNALOADER).c
c69f6586 793
fb73857a 794$(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
eb480a0b 795 $(LINK32) -subsystem:console -nodefaultlib -out:$@ $(LINK_FLAGS) \
baed7233 796 $(LIBBASEFILES) $(PERL95_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) \
797 libcmt.lib
e7083a8c 798
799!ENDIF
3e3baf6d 800
137443ea 801$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
eb480a0b 802 if not exist $(AUTODIR) mkdir $(AUTODIR)
a1dd9325 803 cd $(EXTDIR)\$(*B)
bfab39a2 804 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
a1dd9325 805 cd ..\..\win32
68dc0745 806 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
807 cd $(EXTDIR)\$(*B)
808 $(XSUBPP) dl_win32.xs > $(*B).c
0a753a76 809 cd ..\..\win32
810
68dc0745 811$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
812 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
0a753a76 813
823edd99 814$(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
815 cd $(EXTDIR)\Data\$(*B)
816 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
817 $(MAKE)
818 cd ..\..\..\win32
819
38b3a85b 820$(DPROF_DLL): $(PERLEXE) $(DPROF).xs
821 cd $(EXTDIR)\Devel\$(*B)
822 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
823 $(MAKE)
824 cd ..\..\..\win32
825
3967c732 826$(PEEK_DLL): $(PERLEXE) $(PEEK).xs
827 cd $(EXTDIR)\Devel\$(*B)
828 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
829 $(MAKE)
830 cd ..\..\..\win32
831
15e52e56 832$(RE_DLL): $(PERLEXE) $(RE).xs
833 cd $(EXTDIR)\$(*B)
834 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
835 $(MAKE)
836 cd ..\..\win32
837
2a321948 838$(B_DLL): $(PERLEXE) $(B).xs
a98bd6f4 839 cd $(EXTDIR)\$(*B)
840 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
841 $(MAKE)
842 cd ..\..\win32
843
d55594ae 844$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
059e4e88 845 cd $(EXTDIR)\$(*B)
846 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
847 $(MAKE)
848 cd ..\..\win32
849
2a321948 850$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
851 cd $(EXTDIR)\$(*B)
852 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
853 $(MAKE)
854 cd ..\..\win32
d55594ae 855
6dead956 856$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
857 cd $(EXTDIR)\$(*B)
858 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
859 $(MAKE)
860 cd ..\..\win32
861
eb480a0b 862$(IO_DLL): $(PERLEXE) $(IO).xs
68dc0745 863 cd $(EXTDIR)\$(*B)
137443ea 864 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
865 $(MAKE)
0a753a76 866 cd ..\..\win32
867
137443ea 868$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
68dc0745 869 cd $(EXTDIR)\$(*B)
137443ea 870 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
871 $(MAKE)
68dc0745 872 cd ..\..\win32
0a753a76 873
137443ea 874$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
68dc0745 875 cd $(EXTDIR)\$(*B)
137443ea 876 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
877 $(MAKE)
0a753a76 878 cd ..\..\win32
879
137443ea 880$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
68dc0745 881 cd $(EXTDIR)\$(*B)
137443ea 882 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
883 $(MAKE)
68dc0745 884 cd ..\..\win32
0a753a76 885
059e4e88 886$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
68dc0745 887 cd $(EXTDIR)\$(*B)
137443ea 888 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
889 $(MAKE)
0a753a76 890 cd ..\..\win32
891
b295d113 892$(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
893 cd $(EXTDIR)\$(*B)
894 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
895 $(MAKE)
896 cd ..\..\win32
897
eab60bb1 898$(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
899 cd $(EXTDIR)\$(*B)
900 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
901 $(MAKE)
902 cd ..\..\win32
903
68dc0745 904doc: $(PERLEXE)
d07c2202 905 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
b3b61bd8 906 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
3e3baf6d 907 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
68dc0745 908
4a71ed0c 909utils: $(PERLEXE) $(X2P)
3fe9a6f1 910 cd ..\utils
eb480a0b 911 $(MAKE) PERL=$(MINIPERL)
4a71ed0c 912 cd ..\pod
66aa1127 913 copy ..\README.win32 .\perlwin32.pod
4a71ed0c 914 $(MAKE) -f ..\win32\pod.mak converters
3fe9a6f1 915 cd ..\win32
4a71ed0c 916 $(PERLEXE) $(PL2BAT) $(UTILS)
3fe9a6f1 917
137443ea 918distclean: clean
dc050285 919 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
83437bec 920 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
3e3baf6d 921 -del /f *.def *.map
eab60bb1 922 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
923 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
eb480a0b 924 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
925 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
926 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
927 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
928 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
15e52e56 929 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
b295d113 930 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
38b3a85b 931 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
eb480a0b 932 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
933 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
934 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
823edd99 935 -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data
68dc0745 936 -del /f $(PODDIR)\*.html
937 -del /f $(PODDIR)\*.bat
eb480a0b 938 cd ..\utils
95667ae4 939 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc pstruct dprofpp
eb480a0b 940 -del /f *.bat
941 cd ..\win32
942 cd ..\x2p
943 -del /f find2perl s2p
944 -del /f *.bat
945 cd ..\win32
946 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
947 -del /f $(CONFIGPM)
948 -del /f perl95.c
d444a431 949 -del /f bin\*.bat
3e3baf6d 950 cd $(EXTDIR)
22c35a8c 951 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
3e3baf6d 952 cd ..\win32
eb480a0b 953 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
954 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
68dc0745 955
4a71ed0c 956install : all installbare installhtml
6dead956 957
4a71ed0c 958installbare : utils
d07c2202 959 $(PERLEXE) ..\installperl
e7083a8c 960!IF "$(USE_PERLCRT)" == ""
3e3baf6d 961 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
e7083a8c 962!ENDIF
68dc0745 963 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
e5a95ffb 964 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
6dead956 965
966installhtml : doc
3e3baf6d 967 $(RCOPY) html\*.* $(INST_HTML)\*.*
68dc0745 968
137443ea 969inst_lib : $(CONFIGPM)
68dc0745 970 copy splittree.pl ..
eb480a0b 971 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
c90c0ff4 972 $(RCOPY) ..\lib $(INST_LIB)\*.*
0a753a76 973
dfb634a9 974minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
137443ea 975 $(XCOPY) $(MINIPERL) ..\t\perl.exe
976 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
977 attrib -r ..\t\*.*
978 copy test ..\t
979 cd ..\t
980 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
981 cd ..\win32
982
dfb634a9 983test-prep : all utils
68dc0745 984 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
985 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
986 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
fb73857a 987
988test : test-prep
989 cd ..\t
990 $(PERLEXE) -I..\lib harness
991 cd ..\win32
992
993test-notty : test-prep
994 set PERL_SKIP_TTY_TEST=1
137443ea 995 cd ..\t
996 $(PERLEXE) -I..\lib harness
68dc0745 997 cd ..\win32
137443ea 998
999clean :
d56e6723 1000 -@erase miniperlmain$(o)
137443ea 1001 -@erase $(MINIPERL)
d56e6723 1002 -@erase perlglob$(o)
1003 -@erase perlmain$(o)
3e3baf6d 1004 -@erase config.w32
1005 -@erase /f config.h
137443ea 1006 -@erase $(GLOBEXE)
1007 -@erase $(PERLEXE)
1008 -@erase $(PERLDLL)
1009 -@erase $(CORE_OBJ)
eb480a0b 1010 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
137443ea 1011 -@erase $(WIN32_OBJ)
1012 -@erase $(DLL_OBJ)
d07c2202 1013 -@erase $(X2P_OBJ)
c5be433b 1014 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
d444a431 1015 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
d07c2202 1016 -@erase ..\x2p\*.exe ..\x2p\*.bat
137443ea 1017 -@erase *.ilk
1018 -@erase *.pdb