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