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