This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
intuit @INC pathnames from exe location only if dll location
[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.
193fb0af 25INST_VER *= \5.00467
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
852c2e52 355MICROCORE_SRC = \
eb480a0b
GS
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 383.IF "$(CRYPT_SRC)" != ""
852c2e52 384MICROCORE_SRC += ..\$(CRYPT_SRC)
a1dd9325 385.ENDIF
26618a56 386
1c1c7f20 387.IF "$(PERL_MALLOC)" == "define"
852c2e52 388EXTRACORE_SRC += ..\malloc.c
1c1c7f20
GS
389.ENDIF
390
eb480a0b 391.IF "$(OBJECT)" == ""
852c2e52 392EXTRACORE_SRC += ..\perlio.c
eb480a0b
GS
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
852c2e52 426CORE_NOCFG_H = \
eb480a0b
GS
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 \
eb480a0b
GS
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
852c2e52
GS
465CORE_H = $(CORE_NOCFG_H) .\config.h
466
467MICROCORE_OBJ = $(MICROCORE_SRC:db:+$(o))
468CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o))
eb480a0b 469WIN32_OBJ = $(WIN32_SRC:db:+$(o))
852c2e52 470MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)}
eb480a0b
GS
471MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)}
472MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
af883608 473PERL95_OBJ = $(PERL95_SRC:db:+$(o))
eb480a0b
GS
474DLL_OBJ = $(DLL_SRC:db:+$(o))
475X2P_OBJ = $(X2P_SRC:db:+$(o))
476
eb480a0b
GS
477PERLDLL_OBJ = $(CORE_OBJ)
478PERLEXE_OBJ = perlmain$(o)
479
480.IF "$(OBJECT)" == ""
481PERLDLL_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
482.ELSE
483PERLEXE_OBJ += $(WIN32_OBJ) $(DLL_OBJ)
af883608 484PERL95_OBJ += DynaLoadmt$(o)
eb480a0b
GS
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) \
51aa15f3
GS
529 $(ATTRS_DLL) \
530 $(B_DLL)
26ca90b6
GS
531
532.IF "$(OBJECT)" == ""
533EXTENSION_DLL += \
51aa15f3 534 $(THREAD_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)" \
e5a95ffb 545 "INST_VER=$(INST_VER)" \
eb480a0b
GS
546 "archname=$(ARCHNAME)" \
547 "cc=$(CC)" \
ac4c12e7 548 "ccflags=$(OPTIMIZE) $(DEFINES) $(OBJECT)" \
eb480a0b
GS
549 "cf_email=$(EMAIL)" \
550 "d_crypt=$(D_CRYPT)" \
551 "d_mymalloc=$(PERL_MALLOC)" \
552 "libs=$(LIBFILES:f)" \
553 "incpath=$(CCINCDIR)" \
ac4c12e7 554 "libperl=$(PERLIMPLIB)" \
eb480a0b
GS
555 "libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" \
556 "libc=$(LIBC)" \
557 "make=dmake" \
558 "static_ext=$(STATIC_EXT)" \
559 "dynamic_ext=$(DYNAMIC_EXT)" \
560 "usethreads=$(USE_THREADS)" \
561 "LINK_FLAGS=$(LINK_FLAGS)" \
562 "optimize=$(OPTIMIZE)"
924b3ec4 563
08aa1457
PP
564#
565# Top targets
566#
567
852c2e52
GS
568all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) $(PERL95EXE) \
569 $(CAPILIB) $(X2P) $(EXTENSION_DLL)
08aa1457 570
d56e6723 571$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
08aa1457
PP
572
573#------------------------------------------------------------
574
eb480a0b 575$(GLOBEXE) : perlglob$(o)
08aa1457
PP
576.IF "$(CCTYPE)" == "BORLAND"
577 $(CC) -c -w -v -tWM -I$(CCINCDIR) perlglob.c
d56e6723
GS
578 $(LINK32) -Tpe -ap $(LINK_FLAGS) c0x32$(o) perlglob$(o) \
579 $(CCLIBDIR)\32BIT\wildargs$(o),$@,,import32.lib cw32mt.lib,
580.ELIF "$(CCTYPE)" == "GCC"
581 $(LINK32) $(LINK_FLAGS) -o $@ perlglob$(o) $(LIBFILES)
08aa1457 582.ELSE
dc050285 583 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
d56e6723 584 perlglob$(o) setargv$(o)
08aa1457
PP
585.ENDIF
586
d56e6723 587perlglob$(o) : perlglob.c
08aa1457 588
08aa1457
PP
589config.w32 : $(CFGSH_TMPL)
590 copy $(CFGSH_TMPL) config.w32
591
852c2e52 592.\config.h : $(CFGH_TMPL) $(CORE_NOCFG_H)
08aa1457
PP
593 -del /f config.h
594 copy $(CFGH_TMPL) config.h
595
596..\config.sh : config.w32 $(MINIPERL) config_sh.PL
924b3ec4
GS
597 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
598
599# this target is for when changes to the main config.sh happen
600# edit config.{b,v,g}c and make this target once for each supported
601# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
602regen_config_h:
603 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
604 -cd .. && del /f perl.exe
605 cd .. && perl configpm
606 -del /f $(CFGH_TMPL)
607 -mkdir ..\lib\CORE
e5a95ffb 608 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
924b3ec4 609 rename config.h $(CFGH_TMPL)
08aa1457
PP
610
611$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
612 cd .. && miniperl configpm
613 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
d07c2202
GS
614 $(XCOPY) ..\*.h $(COREDIR)\*.*
615 $(XCOPY) *.h $(COREDIR)\*.*
616 $(RCOPY) include $(COREDIR)\*.*
e5a95ffb
GS
617 $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \
618 || $(MAKE) $(MAKEMACROS) $(CONFIGPM)
08aa1457 619
eb480a0b 620$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
08aa1457
PP
621.IF "$(CCTYPE)" == "BORLAND"
622 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
eb480a0b 623 @$(mktmp c0x32$(o) $(MINI_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
d56e6723
GS
624.ELIF "$(CCTYPE)" == "GCC"
625 $(LINK32) -v -o $@ $(LINK_FLAGS) \
eb480a0b 626 $(mktmp $(LKPRE) $(MINI_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
08aa1457
PP
627.ELSE
628 $(LINK32) -subsystem:console -out:$@ \
eb480a0b 629 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ:s,\,\\))
08aa1457
PP
630.ENDIF
631
eb480a0b
GS
632$(MINIDIR) :
633 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
634
852c2e52 635$(MINICORE_OBJ) : $(CORE_NOCFG_H)
eb480a0b
GS
636 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ ..\$(*B).c
637
852c2e52 638$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
eb480a0b
GS
639 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*B).c
640
852c2e52
GS
641# 1. we don't want to rebuild miniperl.exe when config.h changes
642# 2. we don't want to rebuild miniperl.exe with non-default config.h
643$(MINI_OBJ) : $(CORE_NOCFG_H)
644
eb480a0b
GS
645$(WIN32_OBJ) : $(CORE_H)
646$(CORE_OBJ) : $(CORE_H)
eb480a0b
GS
647$(DLL_OBJ) : $(CORE_H)
648$(PERL95_OBJ) : $(CORE_H)
649$(X2P_OBJ) : $(CORE_H)
08aa1457 650
d55594ae 651perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym makedef.pl
eb480a0b 652 $(MINIPERL) -w makedef.pl $(OPTIMIZE) $(DEFINES) $(OBJECT) \
910dfcc8 653 CCTYPE=$(CCTYPE) > perldll.def
08aa1457 654
eb480a0b 655$(PERLDLL): perldll.def $(PERLDLL_OBJ)
08aa1457
PP
656.IF "$(CCTYPE)" == "BORLAND"
657 $(LINK32) -Tpd -ap $(LINK_FLAGS) \
eb480a0b 658 @$(mktmp c0d32$(o) $(PERLDLL_OBJ:s,\,\\)\n \
08aa1457
PP
659 $@,\n \
660 $(LIBFILES)\n \
661 perldll.def\n)
662 $(IMPLIB) $*.lib $@
d56e6723 663.ELIF "$(CCTYPE)" == "GCC"
3730b96e 664 $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(LINK_FLAGS) \
eb480a0b 665 $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
d56e6723
GS
666 dlltool --output-lib $(PERLIMPLIB) \
667 --dllname perl.dll \
668 --def perldll.def \
669 --base-file perl.base \
670 --output-exp perl.exp
3730b96e 671 $(LINK32) -mdll -o $@ $(LINK_FLAGS) \
eb480a0b
GS
672 $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) \
673 perl.exp $(LKPOST))
08aa1457
PP
674.ELSE
675 $(LINK32) -dll -def:perldll.def -out:$@ \
eb480a0b 676 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(PERLDLL_OBJ:s,\,\\))
08aa1457 677.ENDIF
d07c2202 678 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
08aa1457
PP
679
680perl.def : $(MINIPERL) makeperldef.pl
681 $(MINIPERL) -I..\lib makeperldef.pl $(NULL) > perl.def
682
683$(MINIMOD) : $(MINIPERL) ..\minimod.pl
684 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
685
eb480a0b
GS
686..\x2p\a2p$(o) : ..\x2p\a2p.c
687 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
688
689..\x2p\hash$(o) : ..\x2p\hash.c
690 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
691
692..\x2p\str$(o) : ..\x2p\str.c
693 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
694
695..\x2p\util$(o) : ..\x2p\util.c
696 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
697
698..\x2p\walk$(o) : ..\x2p\walk.c
699 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
700
701$(X2P) : $(MINIPERL) $(X2P_OBJ)
d07c2202
GS
702 $(MINIPERL) ..\x2p\find2perl.PL
703 $(MINIPERL) ..\x2p\s2p.PL
704.IF "$(CCTYPE)" == "BORLAND"
705 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
706 @$(mktmp c0x32$(o) $(X2P_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
707.ELIF "$(CCTYPE)" == "GCC"
708 $(LINK32) -v -o $@ $(LINK_FLAGS) \
709 $(mktmp $(LKPRE) $(X2P_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
710.ELSE
711 $(LINK32) -subsystem:console -out:$@ \
422938c9 712 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ:s,\,\\))
d07c2202
GS
713.ENDIF
714
08aa1457
PP
715perlmain.c : runperl.c
716 copy runperl.c perlmain.c
717
d56e6723 718perlmain$(o) : perlmain.c
8957be0a 719 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
08aa1457 720
eb480a0b 721$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ)
08aa1457
PP
722.IF "$(CCTYPE)" == "BORLAND"
723 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
8957be0a
GS
724 @$(mktmp c0x32$(o) $(PERLEXE_OBJ:s,\,\\)\n \
725 $(@:s,\,\\),\n \
08aa1457 726 $(PERLIMPLIB) $(LIBFILES)\n)
d56e6723
GS
727.ELIF "$(CCTYPE)" == "GCC"
728 $(LINK32) -o $@ $(LINK_FLAGS) \
eb480a0b 729 $(PERLEXE_OBJ) $(PERLIMPLIB) $(LIBFILES)
08aa1457 730.ELSE
d56e6723 731 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
eb480a0b 732 $(PERLEXE_OBJ) $(PERLIMPLIB)
08aa1457
PP
733.ENDIF
734 copy splittree.pl ..
eb480a0b 735 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
08aa1457
PP
736
737.IF "$(CCTYPE)" != "BORLAND"
d56e6723 738.IF "$(CCTYPE)" != "GCC"
08aa1457
PP
739
740perl95.c : runperl.c
741 copy runperl.c perl95.c
742
d56e6723 743perl95$(o) : perl95.c
eb480a0b 744 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c perl95.c
08aa1457 745
d56e6723 746win32sckmt$(o) : win32sck.c
eb480a0b
GS
747 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
748 $(OBJOUT_FLAG)win32sckmt$(o) win32sck.c
fb73857a 749
d56e6723 750win32mt$(o) : win32.c
eb480a0b
GS
751 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
752 $(OBJOUT_FLAG)win32mt$(o) win32.c
fb73857a 753
ac4c12e7
GS
754DynaLoadmt$(o) : $(DYNALOADER).c
755 $(CC) $(CFLAGS_O) -MT -UPERLDLL -DWIN95FIX -c \
756 $(OBJOUT_FLAG)DynaLoadmt$(o) $(DYNALOADER).c
fb73857a
PP
757
758$(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
eb480a0b
GS
759 $(LINK32) -subsystem:console -nodefaultlib -out:$@ $(LINK_FLAGS) \
760 $(LIBFILES) $(PERL95_OBJ) $(PERLIMPLIB) libcmt.lib
08aa1457
PP
761
762.ENDIF
d56e6723 763.ENDIF
08aa1457
PP
764
765$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
eb480a0b 766 if not exist $(AUTODIR) mkdir $(AUTODIR)
bfab39a2 767 cd $(EXTDIR)\$(*B) && ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
08aa1457
PP
768 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
769 cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
770 $(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .
771
064a70d4
GS
772.IF "$(OBJECT)" == "-DPERL_OBJECT"
773
58a50f62
GS
774PerlCAPI.cpp : $(MINIPERL)
775 $(MINIPERL) GenCAPI.pl $(COREDIR)
776
777PerlCAPI$(o) : PerlCAPI.cpp
064a70d4
GS
778.IF "$(CCTYPE)" == "BORLAND"
779 $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
780.ELIF "$(CCTYPE)" == "GCC"
781 $(CC) $(CFLAGS_O) -c $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
782.ELSE
d17537aa 783 $(CC) $(CFLAGS_O) $(RUNTIME) -UPERLDLL -c \
58a50f62 784 $(OBJOUT_FLAG)PerlCAPI$(o) PerlCAPI.cpp
064a70d4 785.ENDIF
58a50f62
GS
786
787$(CAPILIB) : PerlCAPI.cpp PerlCAPI$(o)
064a70d4
GS
788.IF "$(CCTYPE)" == "BORLAND"
789 $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) +PerlCAPI$(o)
790.ELSE
791 $(LIB32) $(LIBOUT_FLAG)$(CAPILIB) PerlCAPI$(o)
792.ENDIF
793
794.ENDIF
58a50f62 795
08aa1457
PP
796$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
797 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
798
2a321948
GS
799$(B_DLL): $(PERLEXE) $(B).xs
800 cd $(EXTDIR)\$(*B) && \
801 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
802 cd $(EXTDIR)\$(*B) && $(MAKE)
803
a98bd6f4
GS
804$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
805 cd $(EXTDIR)\$(*B) && \
806 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
807 cd $(EXTDIR)\$(*B) && $(MAKE)
808
5d925967
GS
809$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
810 cd $(EXTDIR)\$(*B) && \
811 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
812 cd $(EXTDIR)\$(*B) && $(MAKE)
813
6dead956
GS
814$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
815 cd $(EXTDIR)\$(*B) && \
816 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
817 cd $(EXTDIR)\$(*B) && $(MAKE)
818
5d925967 819$(IO_DLL): $(PERLEXE) $(IO).xs
08aa1457
PP
820 cd $(EXTDIR)\$(*B) && \
821 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
822 cd $(EXTDIR)\$(*B) && $(MAKE)
823
824$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
825 cd $(EXTDIR)\$(*B) && \
826 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
827 cd $(EXTDIR)\$(*B) && $(MAKE)
828
829$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
830 cd $(EXTDIR)\$(*B) && \
831 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
832 cd $(EXTDIR)\$(*B) && $(MAKE)
833
834$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
835 cd $(EXTDIR)\$(*B) && \
836 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
837 cd $(EXTDIR)\$(*B) && $(MAKE)
838
5d925967 839$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
08aa1457
PP
840 cd $(EXTDIR)\$(*B) && \
841 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
842 cd $(EXTDIR)\$(*B) && $(MAKE)
843
844doc: $(PERLEXE)
84902520
TB
845 cd ..\pod && $(MAKE) -f ..\win32\pod.mak checkpods \
846 pod2html pod2latex pod2man pod2text
847 cd ..\pod && $(XCOPY) *.bat ..\win32\bin\*.*
08aa1457 848 copy ..\README.win32 ..\pod\perlwin32.pod
d07c2202 849 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
b3b61bd8 850 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\
08aa1457
PP
851 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
852
853utils: $(PERLEXE)
854 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
855 cd ..\utils && $(PERLEXE) ..\win32\$(PL2BAT) h2ph splain perlbug \
856 pl2pm c2ph h2xs perldoc pstruct
d444a431 857 $(XCOPY) ..\utils\*.bat bin\*.*
d07c2202 858 $(PERLEXE) -I..\lib $(PL2BAT) bin\network.pl bin\www.pl bin\runperl.pl \
dfb634a9 859 bin\pl2bat.pl bin\perlglob.pl
08aa1457
PP
860
861distclean: clean
dc050285 862 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
08aa1457
PP
863 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
864 -del /f *.def *.map
eb480a0b
GS
865 -del /f $(EXTENSION_DLL)
866 -del /f $(EXTENSION_C) $(DYNALOADER).c
867 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
868 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
869 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
870 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
871 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
872 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm
873 -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO
874 -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread
875 -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B
08aa1457
PP
876 -del /f $(PODDIR)\*.html
877 -del /f $(PODDIR)\*.bat
eb480a0b
GS
878 -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc pstruct *.bat
879 -cd ..\x2p && del /f find2perl s2p *.bat
d444a431 880 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
eb480a0b 881 -del /f $(CONFIGPM)
d444a431
TB
882.IF "$(PERL95EXE)" != ""
883 -del /f perl95.c
884.ENDIF
885 -del /f bin\*.bat
d56e6723 886 -cd $(EXTDIR) && del /s *.lib *.def *.map *.bs Makefile *$(o) pm_to_blib
eb480a0b 887 -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR)
d07c2202 888 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
08aa1457 889
6dead956
GS
890install : all installbare installutils installhtml
891
892installbare :
d07c2202 893 $(PERLEXE) ..\installperl
08aa1457
PP
894.IF "$(PERL95EXE)" != ""
895 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
896.ENDIF
6dead956
GS
897
898installutils : utils
08aa1457 899 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
e5a95ffb
GS
900 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
901 $(XCOPY) ..\pod\*.bat $(INST_SCRIPT)\*.*
6dead956
GS
902
903installhtml : doc
08aa1457
PP
904 $(RCOPY) html\*.* $(INST_HTML)\*.*
905
906inst_lib : $(CONFIGPM)
907 copy splittree.pl ..
eb480a0b 908 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
08aa1457
PP
909 $(RCOPY) ..\lib $(INST_LIB)\*.*
910
dfb634a9 911minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
08aa1457
PP
912 $(XCOPY) $(MINIPERL) ..\t\perl.exe
913.IF "$(CCTYPE)" == "BORLAND"
914 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
915.ELSE
916 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
917.ENDIF
918 attrib -r ..\t\*.*
919 copy test ..\t
920 cd ..\t && \
921 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
922
dfb634a9 923test-prep : all utils
08aa1457
PP
924 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
925 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
926.IF "$(CCTYPE)" == "BORLAND"
927 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
928.ELSE
929 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
930.ENDIF
32f822de
GS
931
932test : test-prep
08aa1457
PP
933 cd ..\t && $(PERLEXE) -I..\lib harness
934
32f822de
GS
935test-notty : test-prep
936 set PERL_SKIP_TTY_TEST=1 && \
937 cd ..\t && $(PERLEXE) -I.\lib harness
938
08aa1457 939clean :
d56e6723 940 -@erase miniperlmain$(o)
08aa1457 941 -@erase $(MINIPERL)
d56e6723
GS
942 -@erase perlglob$(o)
943 -@erase perlmain$(o)
51aa15f3 944 -@erase PerlCAPI.cpp
08aa1457
PP
945 -@erase config.w32
946 -@erase /f config.h
947 -@erase $(GLOBEXE)
948 -@erase $(PERLEXE)
949 -@erase $(PERLDLL)
950 -@erase $(CORE_OBJ)
eb480a0b 951 -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR)
08aa1457
PP
952 -@erase $(WIN32_OBJ)
953 -@erase $(DLL_OBJ)
d07c2202 954 -@erase $(X2P_OBJ)
d56e6723 955 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp
d444a431 956 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
d07c2202 957 -@erase ..\x2p\*.exe ..\x2p\*.bat
08aa1457
PP
958 -@erase *.ilk
959 -@erase *.pdb