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