This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Yet another twist.
[perl5.git] / win32 / Makefile
CommitLineData
1e71036e
JH
1#
2# Makefile to build perl on Windows NT using Microsoft NMAKE.
3# Supported compilers:
4# Visual C++ 5.x (possibly other versions)
5#
6# This is set up to build a perl.exe that runs off a shared library
7# (perl57.dll). Also makes individual DLLs for the XS extensions.
8#
9
10##
11## Make sure you read README.win32 *before* you mess with anything here!
12##
13
14##
15## Build configuration. Edit the values below to suit your needs.
16##
17
18#
19# Set these to wherever you want "nmake install" to put your
20# newly built perl.
21#
22INST_DRV = c:
23INST_TOP = $(INST_DRV)\perl
24
25#
26# Comment this out if you DON'T want your perl installation to be versioned.
27# This means that the new installation will overwrite any files from the
28# old installation at the same INST_TOP location. Leaving it enabled is
29# the safest route, as perl adds the extra version directory to all the
30# locations it installs files to. If you disable it, an alternative
31# versioned installation can be obtained by setting INST_TOP above to a
32# path that includes an arbitrary version string.
33#
34#INST_VER = \5.7.2
35
36#
37# Comment this out if you DON'T want your perl installation to have
38# architecture specific components. This means that architecture-
39# specific files will be installed along with the architecture-neutral
40# files. Leaving it enabled is safer and more flexible, in case you
41# want to build multiple flavors of perl and install them together in
42# the same location. Commenting it out gives you a simpler
43# installation that is easier to understand for beginners.
44#
45#INST_ARCH = \$(ARCHNAME)
46
47#
48# uncomment to enable multiple interpreters. This is need for fork()
49# emulation.
50#
51USE_MULTI = define
52
53#
54# Beginnings of interpreter cloning/threads; still very incomplete.
55# This should be enabled to get the fork() emulation. This needs
56# USE_MULTI as well.
57#
58USE_ITHREADS = define
59
60#
61# uncomment to enable the implicit "host" layer for all system calls
62# made by perl. This needs USE_MULTI above. This is also needed to
63# get fork().
64#
65USE_IMP_SYS = define
66
67#
68# uncomment to enable the experimental PerlIO I/O subsystem.
69USE_PERLIO = define
70
71#
72# WARNING! This option is deprecated and will eventually go away (enable
73# USE_ITHREADS instead).
74#
75# uncomment to enable threads-capabilities. This is incompatible with
76# USE_ITHREADS, and is only here for people who may have come to rely
77# on the experimental Thread support that was in 5.005.
78#
79#USE_5005THREADS = define
80
81#
1e71036e
JH
82# uncomment one of the following lines if you are using either
83# Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
84#
85#CCTYPE = MSVC20
86#CCTYPE = MSVC60
87
88#
89# uncomment next line if you want debug version of perl (big,slow)
90#
91#CFG = Debug
92
93#
94# uncomment to enable use of PerlCRT.DLL when using the Visual C compiler.
95# It has patches that fix known bugs in older versions of MSVCRT.DLL.
96# This currently requires VC 5.0 with Service Pack 3 or later.
468f45d5 97# Get it from CPAN at http://www.cpan.org/authors/id/D/DO/DOUGL/
1e71036e
JH
98# and follow the directions in the package to install.
99#
100# Not recommended if you have VC 6.x and you're not running Windows 9x.
101#
102#USE_PERLCRT = define
103
104#
105# uncomment to enable linking with setargv.obj under the Visual C
106# compiler. Setting this options enables perl to expand wildcards in
107# arguments, but it may be harder to use alternate methods like
108# File::DosGlob that are more powerful. This option is supported only with
109# Visual C.
110#
111#USE_SETARGV = define
112
113#
114# if you have the source for des_fcrypt(), uncomment this and make sure the
115# file exists (see README.win32). File should be located in the same
116# directory as this file.
117#
118#CRYPT_SRC = fcrypt.c
119
120#
121# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
122# library, uncomment this, and make sure the library exists (see README.win32)
123# Specify the full pathname of the library.
124#
125#CRYPT_LIB = fcrypt.lib
126
127#
128# set this if you wish to use perl's malloc
129# WARNING: Turning this on/off WILL break binary compatibility with extensions
130# you may have compiled with/without it. Be prepared to recompile all
131# extensions if you change the default. Currently, this cannot be enabled
132# if you ask for USE_IMP_SYS above.
133#
134#PERL_MALLOC = define
135
136#
137# set the install locations of the compiler include/libraries
138# Running VCVARS32.BAT is *required* when using Visual C.
139# Some versions of Visual C don't define MSVCDIR in the environment,
140# so you may have to set CCHOME explicitly (spaces in the path name should
141# not be quoted)
142#
143#CCHOME = f:\msvc20
144CCHOME = $(MSVCDIR)
145CCINCDIR = $(CCHOME)\include
146CCLIBDIR = $(CCHOME)\lib
147
148#
149# Additional compiler flags can be specified here.
150#
151
152#
153# This should normally be disabled. Adding -DPERL_POLLUTE enables support
154# for old symbols by default, at the expense of extreme pollution. You most
155# probably just want to build modules that won't compile with
156# perl Makefile.PL POLLUTE=1
157# instead of enabling this. Please report such modules to the respective
158# authors.
159#
160#BUILDOPT = $(BUILDOPT) -DPERL_POLLUTE
161
162#
163# This should normally be disabled. Enabling it will disable the File::Glob
164# implementation of CORE::glob.
165#
166#BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
167
168#
169# This should normally be disabled. Enabling it causes perl to read scripts
170# in text mode (which is the 5.005 behavior) and will break ByteLoader.
171#BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
172
173#
174# specify semicolon-separated list of extra directories that modules will
175# look for libraries (spaces in path names need not be quoted)
176#
177EXTRALIBDIRS =
178
179#
180# set this to your email address (perl will guess a value from
181# from your loginname and your hostname, which may not be right)
182#
183#EMAIL =
184
185##
186## Build configuration ends.
187##
188
189##################### CHANGE THESE ONLY IF YOU MUST #####################
190
191!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
192D_CRYPT = undef
193!ELSE
194D_CRYPT = define
195CRYPT_FLAG = -DHAVE_DES_FCRYPT
196!ENDIF
197
1e71036e
JH
198!IF "$(PERL_MALLOC)" == ""
199PERL_MALLOC = undef
200!ENDIF
201
202!IF "$(USE_5005THREADS)" == ""
203USE_5005THREADS = undef
204!ENDIF
205
206!IF "$(USE_5005THREADS)" == "define"
207USE_ITHREADS = undef
208!ENDIF
209
210!IF "$(USE_IMP_SYS)" == "define"
211PERL_MALLOC = undef
212!ENDIF
213
214!IF "$(USE_MULTI)" == ""
215USE_MULTI = undef
216!ENDIF
217
1e71036e
JH
218!IF "$(USE_ITHREADS)" == ""
219USE_ITHREADS = undef
220!ENDIF
221
222!IF "$(USE_IMP_SYS)" == ""
223USE_IMP_SYS = undef
224!ENDIF
225
226!IF "$(USE_PERLIO)" == ""
227USE_PERLIO = undef
228!ENDIF
229
230!IF "$(USE_PERLCRT)" == ""
231USE_PERLCRT = undef
232!ENDIF
233
acfe0abc 234!IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)" == "defineundefundef"
1e71036e
JH
235USE_MULTI = define
236!ENDIF
237
acfe0abc 238!IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
1e71036e
JH
239USE_MULTI = define
240USE_5005THREADS = undef
241!ENDIF
242
acfe0abc 243!IF "$(USE_MULTI)$(USE_5005THREADS)" != "undefundef"
1e71036e
JH
244BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
245!ENDIF
246
247!IF "$(USE_IMP_SYS)" != "undef"
248BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
249!ENDIF
250
251!IF "$(PROCESSOR_ARCHITECTURE)" == ""
252PROCESSOR_ARCHITECTURE = x86
253!ENDIF
254
1e71036e
JH
255!IF "$(USE_5005THREADS)" == "define"
256ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
257!ELSE
258!IF "$(USE_MULTI)" == "define"
259ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
260!ELSE
261!IF "$(USE_PERLIO)" == "define"
262ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio
263!ELSE
264ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
265!ENDIF
266!ENDIF
267!ENDIF
1e71036e
JH
268
269!IF "$(USE_PERLIO)" == "define"
270BUILDOPT = $(BUILDOPT) -DUSE_PERLIO
271!ENDIF
272
273!IF "$(USE_ITHREADS)" == "define"
274ARCHNAME = $(ARCHNAME)-thread
275!ENDIF
276
277# Visual Studio 98 specific
278!IF "$(CCTYPE)" == "MSVC60"
279
280# VC 6.0 can load the socket dll on demand. Makes the test suite
281# run in about 10% less time.
282DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
283!ENDIF
284
285ARCHDIR = ..\lib\$(ARCHNAME)
286COREDIR = ..\lib\CORE
287AUTODIR = ..\lib\auto
288LIBDIR = ..\lib
289EXTDIR = ..\ext
290PODDIR = ..\pod
291EXTUTILSDIR = $(LIBDIR)\ExtUtils
292
293#
294INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
295INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
296INST_LIB = $(INST_TOP)$(INST_VER)\lib
297INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
298INST_COREDIR = $(INST_ARCHLIB)\CORE
299INST_POD = $(INST_LIB)\pod
300INST_HTML = $(INST_TOP)$(INST_VER)\html
301
302#
303# Programs to compile, build .lib files and link
304#
305
306CC = cl
307LINK32 = link
308LIB32 = $(LINK32) -lib
309RSC = rc
310
311#
312# Options
313#
314
315INCLUDES = -I$(COREDIR) -I.\include -I. -I..
316#PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
317DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
318LOCDEFS = -DPERLDLL -DPERL_CORE
319SUBSYS = console
320CXX_FLAG = -TP -GX
321
322!IF "$(USE_PERLCRT)" != "define"
323LIBC = msvcrt.lib
324!ELSE
325LIBC = PerlCRT.lib
326!ENDIF
327
328PERLEXE_RES =
329PERLDLL_RES =
330
331!IF "$(CFG)" == "Debug"
332! IF "$(CCTYPE)" == "MSVC20"
333OPTIMIZE = -Od -MD -Z7 -DDEBUGGING
334! ELSE
335OPTIMIZE = -Od -MD -Zi -DDEBUGGING
336! ENDIF
337LINK_DBG = -debug -pdb:none
338!ELSE
339# -O1 yields smaller code, which turns out to be faster than -O2
340#OPTIMIZE = -O2 -MD -DNDEBUG
341OPTIMIZE = -O1 -MD -DNDEBUG
342LINK_DBG = -release
343!ENDIF
344
1e71036e
JH
345!IF "$(USE_PERLCRT)" != "define"
346BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
347!ENDIF
348
349LIBBASEFILES = $(CRYPT_LIB) \
350 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
351 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
352 netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
353 version.lib odbc32.lib odbccp32.lib
354
355# we add LIBC here, since we may be using PerlCRT.dll
356LIBFILES = $(LIBBASEFILES) $(LIBC)
357
358CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
359 $(PCHFLAGS) $(OPTIMIZE)
360LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
361 -libpath:"$(INST_COREDIR)" \
362 -machine:$(PROCESSOR_ARCHITECTURE)
363OBJOUT_FLAG = -Fo
364EXEOUT_FLAG = -Fe
365
366CFLAGS_O = $(CFLAGS) $(BUILDOPT)
367
368#################### do not edit below this line #######################
369############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
370
371o = .obj
372
373#
374# Rules
375#
376
377.SUFFIXES : .c $(o) .dll .lib .exe .rc .res
378
379.c$(o):
380 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
381
382.y.c:
383 $(NOOP)
384
385$(o).dll:
386 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
387 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
388
389.rc.res:
390 $(RSC) -i.. $<
391
392#
393# various targets
394
395# makedef.pl must be updated if this changes, and this should normally
396# only change when there is an incompatible revision of the public API.
397# XXX so why did we change it from perl56 to perl57?
398PERLIMPLIB = ..\perl57.lib
399PERLDLL = ..\perl57.dll
400
401MINIPERL = ..\miniperl.exe
402MINIDIR = .\mini
403PERLEXE = ..\perl.exe
404WPERLEXE = ..\wperl.exe
405GLOBEXE = ..\perlglob.exe
406CONFIGPM = ..\lib\Config.pm
407MINIMOD = ..\lib\ExtUtils\Miniperl.pm
408X2P = ..\x2p\a2p.exe
409
410# Nominate a target which causes extensions to be re-built
411# This used to be $(PERLEXE), but at worst it is the .dll that they depend
412# on and really only the interface - i.e. the .def file used to export symbols
413# from the .dll
414PERLDEP = perldll.def
415
416PL2BAT = bin\pl2bat.pl
417GLOBBAT = bin\perlglob.bat
418
419UTILS = \
420 ..\utils\h2ph \
421 ..\utils\splain \
422 ..\utils\dprofpp \
423 ..\utils\perlbug \
424 ..\utils\pl2pm \
425 ..\utils\c2ph \
426 ..\utils\h2xs \
427 ..\utils\perldoc \
428 ..\utils\perlcc \
429 ..\utils\perlivp \
430 ..\utils\libnetcfg \
431 ..\pod\checkpods \
432 ..\pod\pod2html \
433 ..\pod\pod2latex \
434 ..\pod\pod2man \
435 ..\pod\pod2text \
436 ..\pod\pod2usage \
437 ..\pod\podchecker \
438 ..\pod\podselect \
439 ..\x2p\find2perl \
440 ..\x2p\s2p \
441 ..\lib\ExtUtils\xsubpp \
442 bin\exetype.pl \
443 bin\runperl.pl \
444 bin\pl2bat.pl \
445 bin\perlglob.pl \
446 bin\search.pl
447
448MAKE = nmake -nologo
449MAKE_BARE = nmake
450
451CFGSH_TMPL = config.vc
452CFGH_TMPL = config_H.vc
453
454XCOPY = xcopy /f /r /i /d
455RCOPY = xcopy /f /r /i /e /d
456NOOP = @echo
457NULL =
458
459DEL = del
460
461#
462# filenames given to xsubpp must have forward slashes (since it puts
463# full pathnames in #line strings)
464XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
465 -C++ -prototypes
466
467MICROCORE_SRC = \
468 ..\av.c \
469 ..\deb.c \
470 ..\doio.c \
471 ..\doop.c \
472 ..\dump.c \
473 ..\globals.c \
474 ..\gv.c \
475 ..\hv.c \
476 ..\locale.c \
477 ..\mg.c \
478 ..\numeric.c \
479 ..\op.c \
480 ..\perl.c \
481 ..\perlapi.c \
482 ..\perly.c \
483 ..\pp.c \
484 ..\pp_ctl.c \
485 ..\pp_hot.c \
486 ..\pp_pack.c \
84d4ea48 487 ..\pp_sort.c \
1e71036e
JH
488 ..\pp_sys.c \
489 ..\regcomp.c \
490 ..\regexec.c \
491 ..\run.c \
492 ..\scope.c \
8a12a0aa 493 ..\sharedsv.c \
1e71036e
JH
494 ..\sv.c \
495 ..\taint.c \
496 ..\toke.c \
497 ..\universal.c \
498 ..\utf8.c \
499 ..\util.c \
500 ..\xsutils.c
501
502EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
503
504!IF "$(PERL_MALLOC)" == "define"
505EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
506!ENDIF
507
1e71036e 508EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
1e71036e
JH
509
510WIN32_SRC = \
511 .\win32.c \
1e71036e
JH
512 .\win32sck.c \
513 .\win32thread.c
514
6ea0e807
MB
515!IF "$(USE_PERLIO)" == "define"
516WIN32_SRC = $(WIN32_SRC) .\win32io.c
517!ENDIF
518
1e71036e
JH
519!IF "$(CRYPT_SRC)" != ""
520WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
521!ENDIF
522
523DLL_SRC = $(DYNALOADER).c
524
525X2P_SRC = \
526 ..\x2p\a2p.c \
527 ..\x2p\hash.c \
528 ..\x2p\str.c \
529 ..\x2p\util.c \
530 ..\x2p\walk.c
531
532CORE_NOCFG_H = \
533 ..\av.h \
534 ..\cop.h \
535 ..\cv.h \
536 ..\dosish.h \
537 ..\embed.h \
538 ..\form.h \
539 ..\gv.h \
540 ..\handy.h \
541 ..\hv.h \
542 ..\iperlsys.h \
543 ..\mg.h \
544 ..\nostdio.h \
545 ..\op.h \
546 ..\opcode.h \
547 ..\perl.h \
548 ..\perlapi.h \
549 ..\perlsdio.h \
550 ..\perlsfio.h \
551 ..\perly.h \
552 ..\pp.h \
553 ..\proto.h \
554 ..\regexp.h \
555 ..\scope.h \
8a12a0aa 556 ..\sharedsv.h \
1e71036e
JH
557 ..\sv.h \
558 ..\thread.h \
559 ..\unixish.h \
560 ..\utf8.h \
561 ..\util.h \
562 ..\warnings.h \
563 ..\XSUB.h \
564 ..\EXTERN.h \
565 ..\perlvars.h \
566 ..\intrpvar.h \
567 ..\thrdvar.h \
568 .\include\dirent.h \
569 .\include\netdb.h \
570 .\include\sys\socket.h \
571 .\win32.h
572
573CORE_H = $(CORE_NOCFG_H) .\config.h
574
575MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
576CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
577WIN32_OBJ = $(WIN32_SRC:.c=.obj)
578MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
579 $(MINIDIR)\miniperlmain$(o) \
580 $(MINIDIR)\perlio$(o)
9bedc915 581MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
1e71036e
JH
582MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
583DLL_OBJ = $(DLL_SRC:.c=.obj)
584X2P_OBJ = $(X2P_SRC:.c=.obj)
585
586PERLDLL_OBJ = $(CORE_OBJ)
587PERLEXE_OBJ = perlmain$(o)
588
589PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
590#PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
591
592!IF "$(USE_SETARGV)" != ""
593SETARGV_OBJ = setargv$(o)
594!ENDIF
595
ac5ea531
JH
596DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
597SOCKET = $(EXTDIR)\Socket\Socket
598FCNTL = $(EXTDIR)\Fcntl\Fcntl
599OPCODE = $(EXTDIR)\Opcode\Opcode
600SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
601IO = $(EXTDIR)\IO\IO
602POSIX = $(EXTDIR)\POSIX\POSIX
603ATTRS = $(EXTDIR)\attrs\attrs
604THREAD = $(EXTDIR)\Thread\Thread
605B = $(EXTDIR)\B\B
606RE = $(EXTDIR)\re\re
607DUMPER = $(EXTDIR)\Data\Dumper\Dumper
608ERRNO = $(EXTDIR)\Errno\Errno
609PEEK = $(EXTDIR)\Devel\Peek\Peek
610BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
611DPROF = $(EXTDIR)\Devel\DProf\DProf
612GLOB = $(EXTDIR)\File\Glob\Glob
613HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
614STORABLE = $(EXTDIR)\Storable\Storable
615FILTER = $(EXTDIR)\Filter\Util\Call\Call
616ENCODE = $(EXTDIR)\Encode\Encode
617MD5 = $(EXTDIR)\Digest\MD5\MD5
618PERLIOSCALAR = $(EXTDIR)\PerlIO\Scalar\Scalar
619MIMEBASE64 = $(EXTDIR)\MIME\Base64\Base64
620TIMEHIRES = $(EXTDIR)\Time\HiRes\HiRes
621CWD = $(EXTDIR)\Cwd\Cwd
622LISTUTIL = $(EXTDIR)\List\Util\Util
623PERLIOVIA = $(EXTDIR)\PerlIO\Via\Via
624XSTYPEMAP = $(EXTDIR)\XS\Typemap\Typemap
625UNICODENORMALIZE = $(EXTDIR)\Unicode\Normalize\Normalize
626
627SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
628FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
629OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
630SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
631IO_DLL = $(AUTODIR)\IO\IO.dll
632POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
633ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
634THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
635B_DLL = $(AUTODIR)\B\B.dll
636DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
637PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
638RE_DLL = $(AUTODIR)\re\re.dll
639BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
640DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
641GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
642HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
643STORABLE_DLL = $(AUTODIR)\Storable\Storable.dll
644FILTER_DLL = $(AUTODIR)\Filter\Util\Call\Call.dll
645ENCODE_DLL = $(AUTODIR)\Encode\Encode.dll
646MD5_DLL = $(AUTODIR)\Digest\MD5\MD5.dll
647PERLIOSCALAR_DLL = $(AUTODIR)\PerlIO\Scalar\Scalar.dll
648MIMEBASE64_DLL = $(AUTODIR)\MIME\Base64\Base64.dll
649TIMEHIRES_DLL = $(AUTODIR)\Time\HiRes\HiRes.dll
650CWD_DLL = $(AUTODIR)\Cwd\Cwd.dll
651LISTUTIL_DLL = $(AUTODIR)\List\Util\Util.dll
652PERLIOVIA_DLL = $(AUTODIR)\PerlIO\Via\Via.dll
653XSTYPEMAP_DLL = $(AUTODIR)\XS\Typemap\Typemap.dll
654UNICODENORMALIZE_DLL = $(AUTODIR)\Unicode\Normalize\Normalize.dll
1e71036e
JH
655
656EXTENSION_C = \
657 $(SOCKET).c \
658 $(FCNTL).c \
659 $(OPCODE).c \
660 $(SDBM_FILE).c \
661 $(IO).c \
662 $(POSIX).c \
663 $(ATTRS).c \
664 $(THREAD).c \
665 $(RE).c \
666 $(DUMPER).c \
667 $(PEEK).c \
668 $(B).c \
669 $(BYTELOADER).c \
670 $(DPROF).c \
671 $(GLOB).c \
672 $(HOSTNAME).c \
673 $(STORABLE).c \
674 $(FILTER).c \
675 $(ENCODE).c \
676 $(MD5).c \
677 $(PERLIOSCALAR).c \
678 $(MIMEBASE64).c \
679 $(TIMEHIRES).c \
680 $(CWD).c \
681 $(LISTUTIL).c \
682 $(PERLIOVIA).c \
ac5ea531
JH
683 $(XSTYPEMAP).c \
684 $(UNICODENORMALIZE).c
1e71036e
JH
685
686EXTENSION_DLL = \
687 $(SOCKET_DLL) \
688 $(FCNTL_DLL) \
689 $(OPCODE_DLL) \
690 $(SDBM_FILE_DLL)\
691 $(IO_DLL) \
692 $(POSIX_DLL) \
693 $(ATTRS_DLL) \
694 $(DUMPER_DLL) \
695 $(PEEK_DLL) \
696 $(B_DLL) \
697 $(RE_DLL) \
698 $(THREAD_DLL) \
699 $(BYTELOADER_DLL) \
700 $(DPROF_DLL) \
701 $(GLOB_DLL) \
702 $(HOSTNAME_DLL) \
703 $(STORABLE_DLL) \
704 $(FILTER_DLL) \
705 $(ENCODE_DLL) \
706 $(MD5_DLL) \
707 $(PERLIOSCALAR_DLL) \
708 $(MIMEBASE64_DLL) \
709 $(TIMEHIRES_DLL) \
710 $(CWD_DLL) \
711 $(LISTUTIL_DLL) \
712 $(PERLIOVIA_DLL) \
ac5ea531
JH
713 $(XSTYPEMAP_DLL) \
714 $(UNICODENORMALIZE_DLL)
1e71036e
JH
715
716POD2HTML = $(PODDIR)\pod2html
717POD2MAN = $(PODDIR)\pod2man
718POD2LATEX = $(PODDIR)\pod2latex
719POD2TEXT = $(PODDIR)\pod2text
720
721CFG_VARS = \
722 "INST_DRV=$(INST_DRV)" \
723 "INST_TOP=$(INST_TOP)" \
724 "INST_VER=$(INST_VER)" \
725 "INST_ARCH=$(INST_ARCH)" \
726 "archname=$(ARCHNAME)" \
727 "cc=$(CC)" \
728 "ld=$(LINK32)" \
729 "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
730 "cf_email=$(EMAIL)" \
731 "d_crypt=$(D_CRYPT)" \
732 "d_mymalloc=$(PERL_MALLOC)" \
733 "libs=$(LIBFILES)" \
734 "incpath=$(CCINCDIR:"=\")" \
735 "libperl=$(PERLIMPLIB:..\=)" \
736 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
737 "libc=$(LIBC)" \
738 "make=$(MAKE_BARE)" \
739 "use5005threads=$(USE_5005THREADS)" \
740 "useithreads=$(USE_ITHREADS)" \
741 "usethreads=$(USE_5005THREADS)" \
742 "usemultiplicity=$(USE_MULTI)" \
743 "useperlio=$(USE_PERLIO)" \
744 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
745 "optimize=$(OPTIMIZE:"=\")"
746
747#
748# Top targets
749#
750
751all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
752 $(X2P) Extensions
753 @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite.
754
755$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
756
757#------------------------------------------------------------
758
759$(GLOBEXE) : perlglob$(o)
760 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
761 perlglob$(o) setargv$(o)
762
763perlglob$(o) : perlglob.c
764
765config.w32 : $(CFGSH_TMPL)
766 copy $(CFGSH_TMPL) config.w32
767
768.\config.h : $(CFGH_TMPL)
769 -del /f config.h
770 copy $(CFGH_TMPL) config.h
771
772..\config.sh : config.w32 $(MINIPERL) config_sh.PL
773 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
774
775# this target is for when changes to the main config.sh happen
776# edit config.{b,v,g}c and make this target once for each supported
777# compiler (e.g. `nmake CCTYPE=BORLAND regen_config_h`)
778regen_config_h:
779 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
780 cd ..
781 -del /f perl.exe
782 perl configpm
783 cd win32
784 -del /f $(CFGH_TMPL)
785 -mkdir $(COREDIR)
786 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
787 rename config.h $(CFGH_TMPL)
788
789$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
790 cd ..
791 miniperl configpm
792 cd win32
793 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
794 $(XCOPY) ..\*.h $(COREDIR)\*.*
795 $(XCOPY) *.h $(COREDIR)\*.*
796 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
797 $(RCOPY) include $(COREDIR)\*.*
798 -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"
799 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
800
801$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
802 $(LINK32) -subsystem:console -out:$@ @<<
803 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
804<<
805
806$(MINIDIR) :
807 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
808
809$(MINICORE_OBJ) : $(CORE_NOCFG_H)
810 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
811
812$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
813 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
814
815# -DPERL_IMPLICIT_SYS needs C++ for perllib.c
816# This is the only file that depends on perlhost.h, vmem.h, and vdir.h
acfe0abc 817!IF "$(USE_IMP_SYS)" == "define"
1e71036e
JH
818perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
819 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
820!ENDIF
821
822# 1. we don't want to rebuild miniperl.exe when config.h changes
823# 2. we don't want to rebuild miniperl.exe with non-default config.h
824$(MINI_OBJ) : $(CORE_NOCFG_H)
825
826$(WIN32_OBJ) : $(CORE_H)
827$(CORE_OBJ) : $(CORE_H)
828$(DLL_OBJ) : $(CORE_H)
829$(X2P_OBJ) : $(CORE_H)
830
831perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
832 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
833 CCTYPE=$(CCTYPE) > perldll.def
834
835$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
836 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<<
837 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
838<<
839 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
840
841$(MINIMOD) : $(MINIPERL) ..\minimod.pl
842 cd ..
843 miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
844 cd win32
845
846..\x2p\a2p$(o) : ..\x2p\a2p.c
847 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
848
849..\x2p\hash$(o) : ..\x2p\hash.c
850 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
851
852..\x2p\str$(o) : ..\x2p\str.c
853 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
854
855..\x2p\util$(o) : ..\x2p\util.c
856 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
857
858..\x2p\walk$(o) : ..\x2p\walk.c
859 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
860
861$(X2P) : $(MINIPERL) $(X2P_OBJ)
862 $(MINIPERL) ..\x2p\find2perl.PL
863 $(MINIPERL) ..\x2p\s2p.PL
864 $(LINK32) -subsystem:console -out:$@ @<<
865 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
866<<
867
868perlmain.c : runperl.c
869 copy runperl.c perlmain.c
870
871perlmain$(o) : perlmain.c
872 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
873
874$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
875 $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
876 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
877 copy $(PERLEXE) $(WPERLEXE)
878 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
879 copy splittree.pl ..
880 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
881
882$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
883 if not exist $(AUTODIR) mkdir $(AUTODIR)
884 cd $(EXTDIR)\$(*B)
885 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
886 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
887 cd ..\..\win32
888 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
889 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
890 cd $(EXTDIR)\$(*B)
891 $(XSUBPP) dl_win32.xs > $(*B).c
892 cd ..\..\win32
893
894$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
895 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
896
897#----------------------------------------------------------------------------------
898Extensions: buildext.pl $(PERLDEP) $(CONFIGPM)
899 $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR)
900
901Extensions_clean:
902 -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean
903
904#----------------------------------------------------------------------------------
905
906doc: $(PERLEXE)
907 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
908 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
909 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
910
911utils: $(PERLEXE) $(X2P)
912 cd ..\utils
913 $(MAKE) PERL=$(MINIPERL)
914 cd ..\pod
915 copy ..\README.aix .\perlaix.pod
916 copy ..\README.amiga .\perlamiga.pod
917 copy ..\README.apollo .\perlapollo.pod
918 copy ..\README.beos .\perlbeos.pod
919 copy ..\README.bs2000 .\perlbs2000.pod
920 copy ..\README.ce .\perlce.pod
921 copy ..\README.cygwin .\perlcygwin.pod
922 copy ..\README.dgux .\perldgux.pod
923 copy ..\README.dos .\perldos.pod
924 copy ..\README.epoc .\perlepoc.pod
925 copy ..\README.hurd .\perlhurd.pod
926 copy ..\README.hpux .\perlhpux.pod
927 copy ..\README.machten .\perlmachten.pod
928 copy ..\README.macos .\perlmacos.pod
929 copy ..\README.mint .\perlmint.pod
930 copy ..\README.mpeix .\perlmpeix.pod
931 copy ..\README.netware .\perlnetware.pod
932 copy ..\README.os2 .\perlos2.pod
933 copy ..\README.os390 .\perlos390.pod
934 copy ..\README.plan9 .\perlplan9.pod
935 copy ..\README.qnx .\perlqnx.pod
936 copy ..\README.solaris .\perlsolaris.pod
937 copy ..\README.tru64 .\perltru64.pod
938 copy ..\README.uts .\perluts.pod
939 copy ..\README.vmesa .\perlvmesa.pod
940 copy ..\vms\perlvms.pod .\perlvms.pod
941 copy ..\README.vos .\perlvos.pod
942 copy ..\README.win32 .\perlwin32.pod
943 $(MAKE) -f ..\win32\pod.mak converters
944 cd ..\lib
945 $(PERLEXE) lib_pm.PL
946 cd ..\win32
947 $(PERLEXE) $(PL2BAT) $(UTILS)
948
949distclean: clean
950 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
951 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
952 -del /f *.def *.map
953 -del /f $(EXTENSION_DLL)
954 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
955 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
956 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
957 -del /f $(LIBDIR)\XSLoader.pm
958 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
a9bf183d 959 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1e71036e
JH
960 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
961 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
962 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
963 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
964 -del /f $(LIBDIR)\File\Glob.pm
965 -del /f $(LIBDIR)\Storable.pm
966 -del /f $(LIBDIR)\Filter\Util\Call.pm
967 -del /f $(LIBDIR)\Digest\MD5.pm
968 -del /f $(LIBDIR)\PerlIO\Scalar.pm
969 -del /f $(LIBDIR)\PerlIO\Via.pm
970 -del /f $(LIBDIR)\MIME\Base64.pm
971 -del /f $(LIBDIR)\MIME\QuotedPrint.pm
972 -del /f $(LIBDIR)\List\Util.pm
973 -del /f $(LIBDIR)\Scalar\Util.pm
974 -del /f $(LIBDIR)\Time\HiRes.pm
975 -del /f $(LIBDIR)\XS\Typemap.pm
ac5ea531 976 -del /f $(LIBDIR)\Unicode\Normalize.pm
1e71036e
JH
977 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
978 -rmdir /s $(LIBDIR)\IO
979 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
980 -rmdir /s $(LIBDIR)\Thread
981 -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B
982 -rmdir /s $(LIBDIR)\B
983 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
984 -rmdir /s $(LIBDIR)\Data
985 -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util
986 -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest
987 -rmdir /s $(LIBDIR)\Digest
988 -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
989 -rmdir /s $(LIBDIR)\MIME
990 -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
991 -rmdir /s $(LIBDIR)\List
992 -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
993 -rmdir /s $(LIBDIR)\Scalar
994 -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
995 -rmdir /s $(LIBDIR)\XS
996 cd $(PODDIR)
997 -del /f *.html *.bat checkpods \
998 perlaix.pod perlamiga.pod perlapollo.pod perlbeos.pod \
999 perlbs2000.pod perlce.pod perlcygwin.pod perldgux.pod \
1000 perldos.pod perlepoc.pod perlhurd.pod \
1001 perlhpux.pod perlmachten.pod \
1002 perlmacos.pod perlmint.pod perlmpeix.pod perlnetware.pod \
1003 perlos2.pod perlos390.pod perlplan9.pod perlqnx.pod \
1004 perlsolaris.pod perltru64.pod perluts.pod \
1005 perlvmesa.pod perlvms.pod perlvos.pod \
1006 perlwin32.pod pod2html pod2latex pod2man pod2text pod2usage \
1007 podchecker podselect
1008 cd ..\utils
1009 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc perlivp dprofpp
1010 -del /f *.bat
1011 cd ..\win32
1012 cd ..\x2p
1013 -del /f find2perl s2p
1014 -del /f *.bat
1015 cd ..\win32
1016 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1017 -del /f $(CONFIGPM)
1018 -del /f bin\*.bat
1019 cd $(EXTDIR)
1020 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1021 cd ..\win32
1022 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1023 -rmdir /s $(AUTODIR)
1024 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1025 -rmdir /s $(COREDIR)
1026
1027install : all installbare installhtml
1028
1029installbare : utils
1030 $(PERLEXE) ..\installperl
1031 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1032 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1033 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1034
1035installhtml : doc
1036 $(RCOPY) html\*.* $(INST_HTML)\*.*
1037
1038inst_lib : $(CONFIGPM)
1039 copy splittree.pl ..
1040 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1041 $(RCOPY) ..\lib $(INST_LIB)\*.*
1042
1043minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
1044 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1045 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1046 attrib -r ..\t\*.*
1047 copy test ..\t
1048 cd ..\t
1049 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1050 cd ..\win32
1051
1052test-prep : all utils
1053 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1054 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1055 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1056
1057test : test-prep
1058 cd ..\t
1059 $(PERLEXE) -I..\lib harness
1060 cd ..\win32
1061
1062test-notty : test-prep
1063 set PERL_SKIP_TTY_TEST=1
1064 cd ..\t
1065 $(PERLEXE) -I..\lib harness
1066 cd ..\win32
1067
1068test-wide : test-prep
1069 set HARNESS_PERL_SWITCHES=-C
1070 cd ..\t
1071 $(PERLEXE) -I..\lib harness
1072 cd ..\win32
1073
1074test-wide-notty : test-prep
1075 set PERL_SKIP_TTY_TEST=1
1076 set HARNESS_PERL_SWITCHES=-C
1077 cd ..\t
1078 $(PERLEXE) -I..\lib harness
1079 cd ..\win32
1080
1081clean : Extensions_clean
1082 -@$(DEL) miniperlmain$(o)
1083 -@$(DEL) $(MINIPERL)
1084 -@$(DEL) perlglob$(o)
1085 -@$(DEL) perlmain$(o)
1086 -@$(DEL) config.w32
1087 -@$(DEL) config.h
1088 -@$(DEL) $(GLOBEXE)
1089 -@$(DEL) $(PERLEXE)
1090 -@$(DEL) $(WPERLEXE)
1091 -@$(DEL) $(PERLDLL)
1092 -@$(DEL) $(CORE_OBJ)
1093 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1094 -rmdir /s $(MINIDIR)
1095 -@$(DEL) $(WIN32_OBJ)
1096 -@$(DEL) $(DLL_OBJ)
1097 -@$(DEL) $(X2P_OBJ)
1098 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1099 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1100 -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat
1101 -@$(DEL) *.ilk
1102 -@$(DEL) *.pdb
1103
1104# Handy way to run perlbug -ok without having to install and run the
1105# installed perlbug. We don't re-run the tests here - we trust the user.
1106# Please *don't* use this unless all tests pass.
1107# If you want to report test failures, use "nmake nok" instead.
1108ok: utils
1109 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1110
1111okfile: utils
1112 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1113
1114nok: utils
1115 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1116
1117nokfile: utils
1118 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok