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