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