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