This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] integrate mainline to pick up trivial changes
[perl5.git] / win32 / makefile.mk
CommitLineData
08aa1457 1#
d56e6723
GS
2# Makefile to build perl on Windowns NT using DMAKE.
3# Supported compilers:
4# Visual C++ 2.0 thro 5.0
5# Borland C++ 5.02
6# Mingw32-0.1.4 with gcc-2.7.2
08aa1457
PP
7#
8# This is set up to build a perl.exe that runs off a shared library
9# (perl.dll). Also makes individual DLLs for the XS extensions.
10#
11
12#
13# Set these to wherever you want "nmake install" to put your
14# newly built perl.
d56e6723 15INST_DRV *= c:
26ca90b6 16INST_TOP *= $(INST_DRV)\perl\5004.5x
d56e6723
GS
17
18#
d07c2202 19# uncomment to enable threads-capabilities
07ba5892 20#USE_THREADS *= define
08aa1457
PP
21
22#
d56e6723
GS
23# uncomment one
24#CCTYPE *= MSVC20
25#CCTYPE *= MSVC
4a52a3da
GS
26CCTYPE *= BORLAND
27#CCTYPE *= GCC
08aa1457
PP
28
29#
8f818fa0 30# uncomment next line if you want to use the perl object
26ca90b6
GS
31# Currently, this cannot be enabled if you ask for threads above
32#OBJECT *= -DPERL_OBJECT
8f818fa0
GS
33
34#
08aa1457 35# uncomment next line if you want debug version of perl (big,slow)
d56e6723 36#CFG *= Debug
08aa1457
PP
37
38#
26618a56 39# if you have the source for des_fcrypt(), uncomment this and make sure the
a1dd9325
GS
40# file exists (see README.win32). File should be located at the perl
41# top level directory.
26618a56
GS
42#CRYPT_SRC *= des_fcrypt.c
43
44#
45# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
46# library, uncomment this, and make sure the library exists (see README.win32)
a1dd9325 47# Specify the full pathname of the library.
26618a56
GS
48#CRYPT_LIB *= des_fcrypt.lib
49
50#
1c1c7f20
GS
51# set this if you wish to use perl's malloc
52# WARNING: Turning this on/off WILL break binary compatibility with extensions
53# you may have compiled with/without it. Be prepared to recompile all extensions
26ca90b6
GS
54# if you change the default. Currently, this cannot be enabled if you ask for
55# PERL_OBJECT above.
ac4c12e7 56#PERL_MALLOC *= define
1c1c7f20
GS
57
58#
08aa1457 59# set the install locations of the compiler include/libraries
eb480a0b
GS
60# (you'll need to quote the value if it contains spaces: i.e.
61# CCHOME *= "f:\Program Files\vc"
62#
d56e6723 63#CCHOME *= f:\msdev\vc
4a52a3da
GS
64CCHOME *= C:\bc5
65#CCHOME *= D:\packages\mingw32
d56e6723
GS
66CCINCDIR *= $(CCHOME)\include
67CCLIBDIR *= $(CCHOME)\lib
08aa1457
PP
68
69#
70# set this to point to cmd.exe (only needed if you use some
71# alternate shell that doesn't grok cmd.exe style commands)
d56e6723 72#SHELL *= g:\winnt\system32\cmd.exe
08aa1457
PP
73
74#
75# set this to your email address (perl will guess a value from
76# from your loginname and your hostname, which may not be right)
eb480a0b 77#EMAIL *=
08aa1457
PP
78
79##################### CHANGE THESE ONLY IF YOU MUST #####################
80
26618a56 81.IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
eb480a0b 82D_CRYPT = undef
26618a56 83.ELSE
eb480a0b
GS
84D_CRYPT = define
85CRYPT_FLAG = -DHAVE_DES_FCRYPT
26618a56
GS
86.ENDIF
87
eb480a0b
GS
88.IF "$(OBJECT)" != ""
89PERL_MALLOC != undef
1c1c7f20
GS
90.ENDIF
91
eb480a0b
GS
92PERL_MALLOC *= undef
93
94USE_THREADS *= undef
95
924b3ec4
GS
96#BUILDOPT *= -DMULTIPLICITY
97#BUILDOPT *= -DPERL_GLOBAL_STRUCT -DMULTIPLICITY
d07c2202
GS
98# -DUSE_PERLIO -D__STDC__=1 -DUSE_SFIO -DI_SFIO -I\sfio97\include
99
100.IMPORT .IGNORE : PROCESSOR_ARCHITECTURE
101
102PROCESSOR_ARCHITECTURE *= x86
103
924b3ec4 104.IF "$(USE_THREADS)" == "define"
d07c2202 105ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
924b3ec4
GS
106.ELSE
107ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
d07c2202
GS
108.ENDIF
109
110ARCHDIR = ..\lib\$(ARCHNAME)
111COREDIR = ..\lib\CORE
eb480a0b 112AUTODIR = ..\lib\auto
d07c2202 113
08aa1457
PP
114#
115# Programs to compile, build .lib files and link
116#
117
118.USESHELL :
119
120.IF "$(CCTYPE)" == "BORLAND"
121
eb480a0b
GS
122CC = bcc32
123LINK32 = tlink32
064a70d4 124LIB32 = tlib /P128
eb480a0b 125IMPLIB = implib -c
08aa1457
PP
126
127#
128# Options
129#
eb480a0b
GS
130RUNTIME = -D_RTLDLL
131INCLUDES = -I.\include -I. -I.. -I$(CCINCDIR)
132#PCHFLAGS = -H -Hc -H=c:\temp\bcmoduls.pch
133DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG)
134LOCDEFS = -DPERLDLL -DPERL_CORE
135SUBSYS = console
136CXX_FLAG = -P
08aa1457 137
eb480a0b
GS
138LIBC = cw32mti.lib
139LIBFILES = $(CRYPT_LIB) import32.lib $(LIBC) odbc32.lib odbccp32.lib
08aa1457
PP
140
141.IF "$(CFG)" == "Debug"
eb480a0b
GS
142OPTIMIZE = -v $(RUNTIME) -DDEBUGGING
143LINK_DBG = -v
08aa1457 144.ELSE
6a6688c3 145OPTIMIZE = -O2 $(RUNTIME)
eb480a0b 146LINK_DBG =
08aa1457
PP
147.ENDIF
148
eb480a0b
GS
149CFLAGS = -w -d -tWM -tWD $(INCLUDES) $(DEFINES) $(LOCDEFS) \
150 $(PCHFLAGS) $(OPTIMIZE)
151LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
152OBJOUT_FLAG = -o
153EXEOUT_FLAG = -e
064a70d4 154LIBOUT_FLAG =
d56e6723
GS
155
156.ELIF "$(CCTYPE)" == "GCC"
157
eb480a0b
GS
158CC = gcc -pipe
159LINK32 = gcc -pipe
064a70d4 160LIB32 = ar rc
eb480a0b 161IMPLIB = dlltool
d56e6723
GS
162
163o = .o
164
165#
166# Options
167#
eb480a0b
GS
168RUNTIME =
169INCLUDES = -I.\include -I. -I..
170DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG)
171LOCDEFS = -DPERLDLL -DPERL_CORE
172SUBSYS = console
173CXX_FLAG = -xc++
d56e6723 174
eb480a0b
GS
175LIBC = -lcrtdll
176LIBFILES = $(CRYPT_LIB) -ladvapi32 -luser32 -lnetapi32 -lwsock32 -lmingw32 \
177 -lgcc -lmoldname $(LIBC) -lkernel32
d56e6723
GS
178
179.IF "$(CFG)" == "Debug"
eb480a0b
GS
180OPTIMIZE = -g -O2 $(RUNTIME) -DDEBUGGING
181LINK_DBG = -g
d56e6723 182.ELSE
eb480a0b
GS
183OPTIMIZE = -g -O2 $(RUNTIME)
184LINK_DBG =
d56e6723
GS
185.ENDIF
186
eb480a0b
GS
187CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
188LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
189OBJOUT_FLAG = -o
190EXEOUT_FLAG = -o
064a70d4 191LIBOUT_FLAG =
08aa1457
PP
192
193.ELSE
194
eb480a0b
GS
195CC = cl.exe
196LINK32 = link.exe
197LIB32 = $(LINK32) -lib
198
08aa1457
PP
199#
200# Options
201#
ac4c12e7
GS
202.IF "$(OBJECT)" == "-DPERL_OBJECT"
203RUNTIME = -MT
204# XXX building with -MD fails many tests, but cannot investigate
205# because building with debug crashes compiler :-( GSAR )-:
206#RUNTIME = -MD
207.ELSE
eb480a0b 208RUNTIME = -MD
08aa1457 209.ENDIF
eb480a0b
GS
210
211INCLUDES = -I.\include -I. -I..
212#PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
213DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) $(CRYPT_FLAG)
214LOCDEFS = -DPERLDLL -DPERL_CORE
215SUBSYS = console
216CXX_FLAG = -TP -GX
08aa1457
PP
217
218.IF "$(RUNTIME)" == "-MD"
eb480a0b 219LIBC = msvcrt.lib
08aa1457 220.ELSE
eb480a0b 221LIBC = libcmt.lib
08aa1457
PP
222.ENDIF
223
224.IF "$(CFG)" == "Debug"
225.IF "$(CCTYPE)" == "MSVC20"
eb480a0b 226OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
08aa1457 227.ELSE
3dfd1da1 228OPTIMIZE = -Od $(RUNTIME)d -Zi -D_DEBUG -DDEBUGGING
08aa1457 229.ENDIF
eb480a0b 230LINK_DBG = -debug -pdb:none
08aa1457
PP
231.ELSE
232.IF "$(CCTYPE)" == "MSVC20"
58a50f62 233OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG
08aa1457 234.ELSE
58a50f62 235OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG
08aa1457 236.ENDIF
eb480a0b 237LINK_DBG = -release
08aa1457
PP
238.ENDIF
239
eb480a0b
GS
240# we don't add LIBC here, the compiler does it based on -MD/-MT
241LIBFILES = $(CRYPT_LIB) oldnames.lib kernel32.lib user32.lib gdi32.lib \
242 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib \
243 oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
244 version.lib odbc32.lib odbccp32.lib
08aa1457 245
eb480a0b
GS
246CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
247 $(PCHFLAGS) $(OPTIMIZE)
248LINK_FLAGS = -nologo $(LINK_DBG) -machine:$(PROCESSOR_ARCHITECTURE)
249OBJOUT_FLAG = -Fo
250EXEOUT_FLAG = -Fe
064a70d4 251LIBOUT_FLAG = /out:
08aa1457
PP
252
253.ENDIF
254
eb480a0b
GS
255.IF "$(OBJECT)" != ""
256OPTIMIZE += $(CXX_FLAG)
257.ENDIF
258
259CFLAGS_O = $(CFLAGS) $(OBJECT)
260
08aa1457
PP
261#################### do not edit below this line #######################
262############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
263
d56e6723
GS
264o *= .obj
265
eb480a0b
GS
266LKPRE = INPUT (
267LKPOST = )
268
08aa1457
PP
269#
270# Rules
271#
08aa1457 272
d56e6723
GS
273.SUFFIXES : .c $(o) .dll .lib .exe .a
274
275.c$(o):
eb480a0b 276 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
d07c2202
GS
277
278.y.c:
279 $(NOOP)
08aa1457 280
d56e6723 281$(o).dll:
08aa1457 282.IF "$(CCTYPE)" == "BORLAND"
d56e6723 283 $(LINK32) -Tpd -ap $(LINK_FLAGS) c0d32$(o) $<,$@,,$(LIBFILES),$(*B).def
08aa1457 284 $(IMPLIB) $(*B).lib $@
d56e6723
GS
285.ELIF "$(CCTYPE)" == "GCC"
286 $(LINK32) -o $@ $(LINK_FLAGS) $< $(LIBFILES)
287 $(IMPLIB) -def $(*B).def $(*B).lib $@
08aa1457 288.ELSE
08aa1457 289 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
dc050285 290 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
08aa1457
PP
291.ENDIF
292
293#
eb480a0b
GS
294INST_BIN = $(INST_TOP)\bin
295INST_LIB = $(INST_TOP)\lib
296INST_POD = $(INST_LIB)\pod
297INST_HTML = $(INST_POD)\html
298LIBDIR = ..\lib
299EXTDIR = ..\ext
300PODDIR = ..\pod
301EXTUTILSDIR = $(LIBDIR)\extutils
08aa1457
PP
302
303#
304# various targets
eb480a0b
GS
305.IF "$(OBJECT)" == "-DPERL_OBJECT"
306PERLIMPLIB = ..\perlcore.lib
307PERLDLL = ..\perlcore.dll
58a50f62 308CAPILIB = $(COREDIR)\PerlCAPI.lib
eb480a0b
GS
309.ELSE
310PERLIMPLIB = ..\perl.lib
311PERLDLL = ..\perl.dll
58a50f62 312CAPILIB =
eb480a0b
GS
313.ENDIF
314
315MINIPERL = ..\miniperl.exe
316MINIDIR = .\mini
317PERLEXE = ..\perl.exe
318GLOBEXE = ..\perlglob.exe
319CONFIGPM = ..\lib\Config.pm
320MINIMOD = ..\lib\ExtUtils\Miniperl.pm
321X2P = ..\x2p\a2p.exe
322
323PL2BAT = bin\pl2bat.pl
324GLOBBAT = bin\perlglob.bat
08aa1457
PP
325
326.IF "$(CCTYPE)" == "BORLAND"
327
eb480a0b
GS
328CFGSH_TMPL = config.bc
329CFGH_TMPL = config_H.bc
d56e6723
GS
330
331.ELIF "$(CCTYPE)" == "GCC"
332
eb480a0b
GS
333CFGSH_TMPL = config.gc
334CFGH_TMPL = config_H.gc
08aa1457
PP
335
336.ELSE
337
eb480a0b
GS
338CFGSH_TMPL = config.vc
339CFGH_TMPL = config_H.vc
340PERL95EXE = ..\perl95.exe
08aa1457
PP
341
342.ENDIF
343
eb480a0b
GS
344XCOPY = xcopy /f /r /i /d
345RCOPY = xcopy /f /r /i /e /d
346NOOP = @echo
08aa1457 347
eb480a0b
GS
348#
349# filenames given to xsubpp must have forward slashes (since it puts
350# full pathnames in #line strings)
351XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
352 -C++ -prototypes
353
354CORE_SRC = \
355 ..\av.c \
356 ..\byterun.c \
357 ..\deb.c \
358 ..\doio.c \
359 ..\doop.c \
360 ..\dump.c \
361 ..\globals.c \
362 ..\gv.c \
363 ..\hv.c \
364 ..\mg.c \
365 ..\op.c \
366 ..\perl.c \
367 ..\perly.c \
368 ..\pp.c \
369 ..\pp_ctl.c \
370 ..\pp_hot.c \
371 ..\pp_sys.c \
372 ..\regcomp.c \
373 ..\regexec.c \
374 ..\run.c \
375 ..\scope.c \
376 ..\sv.c \
377 ..\taint.c \
378 ..\toke.c \
379 ..\universal.c \
380 ..\util.c
381
a1dd9325
GS
382.IF "$(CRYPT_SRC)" != ""
383CORE_SRC += ..\$(CRYPT_SRC)
384.ENDIF
26618a56 385
1c1c7f20 386.IF "$(PERL_MALLOC)" == "define"
eb480a0b 387CORE_SRC += ..\malloc.c
1c1c7f20
GS
388.ENDIF
389
eb480a0b
GS
390.IF "$(OBJECT)" == ""
391CORE_SRC += ..\perlio.c
392.ENDIF
393
394WIN32_SRC = \
395 .\win32.c \
396 .\win32sck.c
397
398.IF "$(USE_THREADS)" == "define"
399WIN32_SRC += .\win32thread.c
400.ENDIF
401
402PERL95_SRC = \
403 perl95.c \
404 win32mt.c \
405 win32sckmt.c
406
a1dd9325
GS
407.IF "$(CRYPT_SRC)" != ""
408PERL95_SRC += ..\$(CRYPT_SRC)
409.ENDIF
410
eb480a0b
GS
411DLL_SRC = $(DYNALOADER).c
412
413
414.IF "$(OBJECT)" == ""
415DLL_SRC += perllib.c
416.ENDIF
417
418X2P_SRC = \
419 ..\x2p\a2p.c \
420 ..\x2p\hash.c \
421 ..\x2p\str.c \
422 ..\x2p\util.c \
423 ..\x2p\walk.c
424
425CORE_H = \
426 ..\av.h \
427 ..\byterun.h \
428 ..\bytecode.h \
429 ..\cop.h \
430 ..\cv.h \
431 ..\dosish.h \
432 ..\embed.h \
433 ..\form.h \
434 ..\gv.h \
435 ..\handy.h \
436 ..\hv.h \
437 ..\mg.h \
438 ..\nostdio.h \
439 ..\op.h \
440 ..\opcode.h \
441 ..\perl.h \
442 ..\perlio.h \
443 ..\perlsdio.h \
444 ..\perlsfio.h \
445 ..\perly.h \
446 ..\pp.h \
447 ..\proto.h \
448 ..\regexp.h \
449 ..\scope.h \
450 ..\sv.h \
451 ..\thread.h \
452 ..\unixish.h \
453 ..\util.h \
454 ..\XSUB.h \
455 .\config.h \
456 ..\EXTERN.h \
457 ..\perlvars.h \
458 ..\intrpvar.h \
459 ..\thrdvar.h \
460 .\include\dirent.h \
461 .\include\netdb.h \
462 .\include\sys\socket.h \
463 .\win32.h
464
465CORE_OBJ = $(CORE_SRC:db:+$(o))
466WIN32_OBJ = $(WIN32_SRC:db:+$(o))
467MINICORE_OBJ = $(MINIDIR)\{$(CORE_OBJ:f) miniperlmain$(o)}
468MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)}
469MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
ac4c12e7 470PERL95_OBJ = $(PERL95_SRC:db:+$(o)) DynaLoadmt$(o)
eb480a0b
GS
471DLL_OBJ = $(DLL_SRC:db:+$(o))
472X2P_OBJ = $(X2P_SRC:db:+$(o))
473
474.IF "$(OBJECT)" != ""
475MINICORE_OBJ += $(MINIDIR)\perlio$(o)
476.ENDIF
477
478PERLDLL_OBJ = $(CORE_OBJ)
479PERLEXE_OBJ = perlmain$(o)
480
481.IF "$(OBJECT)" == ""
482PERLDLL_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
483.ELSE
484PERLEXE_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
485.ENDIF
486
487DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B
488STATIC_EXT = DynaLoader
489
490DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
491SOCKET = $(EXTDIR)\Socket\Socket
492FCNTL = $(EXTDIR)\Fcntl\Fcntl
493OPCODE = $(EXTDIR)\Opcode\Opcode
494SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
495IO = $(EXTDIR)\IO\IO
496POSIX = $(EXTDIR)\POSIX\POSIX
497ATTRS = $(EXTDIR)\attrs\attrs
498THREAD = $(EXTDIR)\Thread\Thread
499B = $(EXTDIR)\B\B
500
501SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
502FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
503OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
504SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
505IO_DLL = $(AUTODIR)\IO\IO.dll
506POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
507ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
508THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
509B_DLL = $(AUTODIR)\B\B.dll
510
ac4c12e7 511EXTENSION_C = \
eb480a0b
GS
512 $(SOCKET).c \
513 $(FCNTL).c \
514 $(OPCODE).c \
515 $(SDBM_FILE).c \
516 $(IO).c \
517 $(POSIX).c \
518 $(ATTRS).c \
519 $(THREAD).c \
520 $(B).c
521
ac4c12e7 522EXTENSION_DLL = \
eb480a0b
GS
523 $(SOCKET_DLL) \
524 $(FCNTL_DLL) \
525 $(OPCODE_DLL) \
526 $(SDBM_FILE_DLL)\
527 $(IO_DLL) \
528 $(POSIX_DLL) \
ac4c12e7 529 $(ATTRS_DLL)
26ca90b6
GS
530
531.IF "$(OBJECT)" == ""
532EXTENSION_DLL += \
eb480a0b
GS
533 $(THREAD_DLL) \
534 $(B_DLL)
26ca90b6 535.ENDIF
eb480a0b
GS
536
537POD2HTML = $(PODDIR)\pod2html
538POD2MAN = $(PODDIR)\pod2man
539POD2LATEX = $(PODDIR)\pod2latex
540POD2TEXT = $(PODDIR)\pod2text
541
542CFG_VARS = \
543 "INST_DRV=$(INST_DRV)" \
544 "INST_TOP=$(INST_TOP)" \
545 "archname=$(ARCHNAME)" \
546 "cc=$(CC)" \
ac4c12e7 547 "ccflags=$(OPTIMIZE) $(DEFINES) $(OBJECT)" \
eb480a0b
GS
548 "cf_email=$(EMAIL)" \
549 "d_crypt=$(D_CRYPT)" \
550 "d_mymalloc=$(PERL_MALLOC)" \
551 "libs=$(LIBFILES:f)" \
552 "incpath=$(CCINCDIR)" \
ac4c12e7 553 "libperl=$(PERLIMPLIB)" \
eb480a0b
GS
554 "libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" \
555 "libc=$(LIBC)" \
556 "make=dmake" \
557 "static_ext=$(STATIC_EXT)" \
558 "dynamic_ext=$(DYNAMIC_EXT)" \
559 "usethreads=$(USE_THREADS)" \
560 "LINK_FLAGS=$(LINK_FLAGS)" \
561 "optimize=$(OPTIMIZE)"
924b3ec4 562
08aa1457
PP
563#
564# Top targets
565#
566
58a50f62 567all : $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) $(PERL95EXE) $(CAPILIB) $(X2P) \
eb480a0b 568 $(EXTENSION_DLL)
08aa1457 569
d56e6723 570$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
08aa1457
PP
571
572#------------------------------------------------------------
573
eb480a0b 574$(GLOBEXE) : perlglob$(o)
08aa1457
PP
575.IF "$(CCTYPE)" == "BORLAND"
576 $(CC) -c -w -v -tWM -I$(CCINCDIR) perlglob.c
d56e6723
GS
577 $(LINK32) -Tpe -ap $(LINK_FLAGS) c0x32$(o) perlglob$(o) \
578 $(CCLIBDIR)\32BIT\wildargs$(o),$@,,import32.lib cw32mt.lib,
579.ELIF "$(CCTYPE)" == "GCC"
580 $(LINK32) $(LINK_FLAGS) -o $@ perlglob$(o) $(LIBFILES)
08aa1457 581.ELSE
dc050285 582 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
d56e6723 583 perlglob$(o) setargv$(o)
08aa1457
PP
584.ENDIF
585
d56e6723 586perlglob$(o) : perlglob.c
08aa1457 587
08aa1457
PP
588config.w32 : $(CFGSH_TMPL)
589 copy $(CFGSH_TMPL) config.w32
590
d55594ae 591.\config.h : $(CFGH_TMPL)
08aa1457
PP
592 -del /f config.h
593 copy $(CFGH_TMPL) config.h
594
595..\config.sh : config.w32 $(MINIPERL) config_sh.PL
924b3ec4
GS
596 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
597
598# this target is for when changes to the main config.sh happen
599# edit config.{b,v,g}c and make this target once for each supported
600# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
601regen_config_h:
602 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
603 -cd .. && del /f perl.exe
604 cd .. && perl configpm
605 -del /f $(CFGH_TMPL)
606 -mkdir ..\lib\CORE
607 -perl -I..\lib config_h.PL
608 rename config.h $(CFGH_TMPL)
08aa1457
PP
609
610$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
611 cd .. && miniperl configpm
612 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
d07c2202
GS
613 $(XCOPY) ..\*.h $(COREDIR)\*.*
614 $(XCOPY) *.h $(COREDIR)\*.*
615 $(RCOPY) include $(COREDIR)\*.*
1c1c7f20 616 $(MINIPERL) -I..\lib config_h.PL || $(MAKE) $(MAKEMACROS) $(CONFIGPM)
08aa1457 617
eb480a0b 618$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
08aa1457
PP
619.IF "$(CCTYPE)" == "BORLAND"
620 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
eb480a0b 621 @$(mktmp c0x32$(o) $(MINI_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
d56e6723
GS
622.ELIF "$(CCTYPE)" == "GCC"
623 $(LINK32) -v -o $@ $(LINK_FLAGS) \
eb480a0b 624 $(mktmp $(LKPRE) $(MINI_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
08aa1457
PP
625.ELSE
626 $(LINK32) -subsystem:console -out:$@ \
eb480a0b 627 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ:s,\,\\))
08aa1457
PP
628.ENDIF
629
eb480a0b
GS
630$(MINIDIR) :
631 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
632
633$(MINICORE_OBJ) : $(CORE_H)
634 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ ..\$(*B).c
635
636$(MINIWIN32_OBJ) : $(CORE_H)
637 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*B).c
638
639$(WIN32_OBJ) : $(CORE_H)
640$(CORE_OBJ) : $(CORE_H)
641$(MINI_OBJ) : $(CORE_H)
642$(DLL_OBJ) : $(CORE_H)
643$(PERL95_OBJ) : $(CORE_H)
644$(X2P_OBJ) : $(CORE_H)
08aa1457 645
d55594ae 646perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym makedef.pl
eb480a0b 647 $(MINIPERL) -w makedef.pl $(OPTIMIZE) $(DEFINES) $(OBJECT) \
910dfcc8 648 CCTYPE=$(CCTYPE) > perldll.def
08aa1457 649
eb480a0b 650$(PERLDLL): perldll.def $(PERLDLL_OBJ)
08aa1457
PP
651.IF "$(CCTYPE)" == "BORLAND"
652 $(LINK32) -Tpd -ap $(LINK_FLAGS) \
eb480a0b 653 @$(mktmp c0d32$(o) $(PERLDLL_OBJ:s,\,\\)\n \
08aa1457
PP
654 $@,\n \
655 $(LIBFILES)\n \
656 perldll.def\n)
657 $(IMPLIB) $*.lib $@
d56e6723 658.ELIF "$(CCTYPE)" == "GCC"
3730b96e 659 $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(LINK_FLAGS) \
eb480a0b 660 $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
d56e6723
GS
661 dlltool --output-lib $(PERLIMPLIB) \
662 --dllname perl.dll \
663 --def perldll.def \
664 --base-file perl.base \
665 --output-exp perl.exp
3730b96e 666 $(LINK32) -mdll -o $@ $(LINK_FLAGS) \
eb480a0b
GS
667 $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) \
668 perl.exp $(LKPOST))
08aa1457
PP
669.ELSE
670 $(LINK32) -dll -def:perldll.def -out:$@ \
eb480a0b 671 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(PERLDLL_OBJ:s,\,\\))
08aa1457 672.ENDIF
d07c2202 673 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
08aa1457
PP
674
675perl.def : $(MINIPERL) makeperldef.pl
676 $(MINIPERL) -I..\lib makeperldef.pl $(NULL) > perl.def
677
678$(MINIMOD) : $(MINIPERL) ..\minimod.pl
679 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
680
eb480a0b
GS
681..\x2p\a2p$(o) : ..\x2p\a2p.c
682 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
683
684..\x2p\hash$(o) : ..\x2p\hash.c
685 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
686
687..\x2p\str$(o) : ..\x2p\str.c
688 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
689
690..\x2p\util$(o) : ..\x2p\util.c
691 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
692
693..\x2p\walk$(o) : ..\x2p\walk.c
694 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
695
696$(X2P) : $(MINIPERL) $(X2P_OBJ)
d07c2202
GS
697 $(MINIPERL) ..\x2p\find2perl.PL
698 $(MINIPERL) ..\x2p\s2p.PL
699.IF "$(CCTYPE)" == "BORLAND"
700 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
701 @$(mktmp c0x32$(o) $(X2P_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
702.ELIF "$(CCTYPE)" == "GCC"
703 $(LINK32) -v -o $@ $(LINK_FLAGS) \
704 $(mktmp $(LKPRE) $(X2P_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
705.ELSE
706 $(LINK32) -subsystem:console -out:$@ \
422938c9 707 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ:s,\,\\))
d07c2202
GS
708.ENDIF
709
08aa1457
PP
710perlmain.c : runperl.c
711 copy runperl.c perlmain.c
712
d56e6723 713perlmain$(o) : perlmain.c
8957be0a 714 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
08aa1457 715
eb480a0b 716$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ)
08aa1457
PP
717.IF "$(CCTYPE)" == "BORLAND"
718 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
8957be0a
GS
719 @$(mktmp c0x32$(o) $(PERLEXE_OBJ:s,\,\\)\n \
720 $(@:s,\,\\),\n \
08aa1457 721 $(PERLIMPLIB) $(LIBFILES)\n)
d56e6723
GS
722.ELIF "$(CCTYPE)" == "GCC"
723 $(LINK32) -o $@ $(LINK_FLAGS) \
eb480a0b 724 $(PERLEXE_OBJ) $(PERLIMPLIB) $(LIBFILES)
08aa1457 725.ELSE
d56e6723 726 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
eb480a0b 727 $(PERLEXE_OBJ) $(PERLIMPLIB)
08aa1457
PP
728.ENDIF
729 copy splittree.pl ..
eb480a0b 730 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
08aa1457
PP
731
732.IF "$(CCTYPE)" != "BORLAND"
d56e6723 733.IF "$(CCTYPE)" != "GCC"
08aa1457
PP
734
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
08aa1457 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
fb73857a
PP
752
753$(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
eb480a0b
GS
754 $(LINK32) -subsystem:console -nodefaultlib -out:$@ $(LINK_FLAGS) \
755 $(LIBFILES) $(PERL95_OBJ) $(PERLIMPLIB) libcmt.lib
08aa1457
PP
756
757.ENDIF
d56e6723 758.ENDIF
08aa1457
PP
759
760$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
eb480a0b 761 if not exist $(AUTODIR) mkdir $(AUTODIR)
a1dd9325 762 cd $(EXTDIR)\$(*B) && ..\$(MINIPERL) -I..\..\lib $(*B).pm.PL
08aa1457
PP
763 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
764 cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
765 $(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .
766
064a70d4
GS
767.IF "$(OBJECT)" == "-DPERL_OBJECT"
768
58a50f62
GS
769PerlCAPI.cpp : $(MINIPERL)
770 $(MINIPERL) GenCAPI.pl $(COREDIR)
771
772PerlCAPI$(o) : PerlCAPI.cpp
064a70d4
GS
773.IF "$(CCTYPE)" == "BORLAND"
774 $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
775.ELIF "$(CCTYPE)" == "GCC"
776 $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
777.ELSE
58a50f62
GS
778 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
779 $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
064a70d4 780.ENDIF
58a50f62
GS
781
782$(CAPILIB) : PerlCAPI.cpp PerlCAPI$(o)
064a70d4
GS
783.IF "$(CCTYPE)" == "BORLAND"
784 $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) +PerlCAPI$(o)
785.ELSE
786 $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) PerlCAPI$(o)
787.ENDIF
788
789.ENDIF
58a50f62 790
08aa1457
PP
791$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
792 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
793
2a321948
GS
794$(B_DLL): $(PERLEXE) $(B).xs
795 cd $(EXTDIR)\$(*B) && \
796 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
797 cd $(EXTDIR)\$(*B) && $(MAKE)
798
a98bd6f4
GS
799$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
800 cd $(EXTDIR)\$(*B) && \
801 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
802 cd $(EXTDIR)\$(*B) && $(MAKE)
803
5d925967
GS
804$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
805 cd $(EXTDIR)\$(*B) && \
806 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
807 cd $(EXTDIR)\$(*B) && $(MAKE)
808
6dead956
GS
809$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
810 cd $(EXTDIR)\$(*B) && \
811 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
812 cd $(EXTDIR)\$(*B) && $(MAKE)
813
5d925967 814$(IO_DLL): $(PERLEXE) $(IO).xs
08aa1457
PP
815 cd $(EXTDIR)\$(*B) && \
816 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
817 cd $(EXTDIR)\$(*B) && $(MAKE)
818
819$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
820 cd $(EXTDIR)\$(*B) && \
821 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
822 cd $(EXTDIR)\$(*B) && $(MAKE)
823
824$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
825 cd $(EXTDIR)\$(*B) && \
826 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
827 cd $(EXTDIR)\$(*B) && $(MAKE)
828
829$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
830 cd $(EXTDIR)\$(*B) && \
831 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
832 cd $(EXTDIR)\$(*B) && $(MAKE)
833
5d925967 834$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
08aa1457
PP
835 cd $(EXTDIR)\$(*B) && \
836 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
837 cd $(EXTDIR)\$(*B) && $(MAKE)
838
839doc: $(PERLEXE)
84902520
TB
840 cd ..\pod && $(MAKE) -f ..\win32\pod.mak checkpods \
841 pod2html pod2latex pod2man pod2text
842 cd ..\pod && $(XCOPY) *.bat ..\win32\bin\*.*
08aa1457 843 copy ..\README.win32 ..\pod\perlwin32.pod
d07c2202 844 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
b3b61bd8 845 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
08aa1457
PP
846 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
847
848utils: $(PERLEXE)
849 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
850 cd ..\utils && $(PERLEXE) ..\win32\$(PL2BAT) h2ph splain perlbug \
851 pl2pm c2ph h2xs perldoc pstruct
d444a431 852 $(XCOPY) ..\utils\*.bat bin\*.*
d07c2202 853 $(PERLEXE) -I..\lib $(PL2BAT) bin\network.pl bin\www.pl bin\runperl.pl \
dfb634a9 854 bin\pl2bat.pl bin\perlglob.pl
08aa1457
PP
855
856distclean: clean
dc050285 857 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
08aa1457
PP
858 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
859 -del /f *.def *.map
eb480a0b
GS
860 -del /f $(EXTENSION_DLL)
861 -del /f $(EXTENSION_C) $(DYNALOADER).c
862 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
863 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
864 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
865 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
866 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
867 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm
868 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
869 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
870 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
08aa1457
PP
871 -del /f $(PODDIR)\*.html
872 -del /f $(PODDIR)\*.bat
eb480a0b
GS
873 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc pstruct *.bat
874 -cd ..\x2p && del /f find2perl s2p *.bat
d444a431 875 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
eb480a0b 876 -del /f $(CONFIGPM)
d444a431
TB
877.IF "$(PERL95EXE)" != ""
878 -del /f perl95.c
879.ENDIF
880 -del /f bin\*.bat
d56e6723 881 -cd $(EXTDIR) && del /s *.lib *.def *.map *.bs Makefile *$(o) pm_to_blib
eb480a0b 882 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
d07c2202 883 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
08aa1457 884
6dead956
GS
885install : all installbare installutils installhtml
886
887installbare :
d07c2202 888 $(PERLEXE) ..\installperl
08aa1457
PP
889.IF "$(PERL95EXE)" != ""
890 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
891.ENDIF
6dead956
GS
892
893installutils : utils
08aa1457 894 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
d444a431 895 $(XCOPY) bin\*.bat $(INST_BIN)\*.*
08aa1457 896 $(XCOPY) ..\pod\*.bat $(INST_BIN)\*.*
6dead956
GS
897
898installhtml : doc
08aa1457
PP
899 $(RCOPY) html\*.* $(INST_HTML)\*.*
900
901inst_lib : $(CONFIGPM)
902 copy splittree.pl ..
eb480a0b 903 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
08aa1457
PP
904 $(RCOPY) ..\lib $(INST_LIB)\*.*
905
dfb634a9 906minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
08aa1457
PP
907 $(XCOPY) $(MINIPERL) ..\t\perl.exe
908.IF "$(CCTYPE)" == "BORLAND"
909 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
910.ELSE
911 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
912.ENDIF
913 attrib -r ..\t\*.*
914 copy test ..\t
915 cd ..\t && \
916 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
917
dfb634a9 918test-prep : all utils
08aa1457
PP
919 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
920 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
921.IF "$(CCTYPE)" == "BORLAND"
922 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
923.ELSE
924 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
925.ENDIF
32f822de
GS
926
927test : test-prep
08aa1457
PP
928 cd ..\t && $(PERLEXE) -I..\lib harness
929
32f822de
GS
930test-notty : test-prep
931 set PERL_SKIP_TTY_TEST=1 && \
932 cd ..\t && $(PERLEXE) -I.\lib harness
933
08aa1457 934clean :
d56e6723 935 -@erase miniperlmain$(o)
08aa1457 936 -@erase $(MINIPERL)
d56e6723
GS
937 -@erase perlglob$(o)
938 -@erase perlmain$(o)
08aa1457
PP
939 -@erase config.w32
940 -@erase /f config.h
941 -@erase $(GLOBEXE)
942 -@erase $(PERLEXE)
943 -@erase $(PERLDLL)
944 -@erase $(CORE_OBJ)
eb480a0b 945 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
08aa1457
PP
946 -@erase $(WIN32_OBJ)
947 -@erase $(DLL_OBJ)
d07c2202 948 -@erase $(X2P_OBJ)
d56e6723 949 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp
d444a431 950 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
d07c2202 951 -@erase ..\x2p\*.exe ..\x2p\*.bat
08aa1457
PP
952 -@erase *.ilk
953 -@erase *.pdb