Get PerlIO building on Win32
[p5sagit/p5-mst-13.2.git] / win32 / Makefile
CommitLineData
a9226780 1#
2# Makefile to build perl on Windows NT using Microsoft NMAKE.
3#
4# This is set up to build a perl.exe that runs off a shared library
5# (perl56.dll). Also makes individual DLLs for the XS extensions.
6#
7
8##
9## Make sure you read README.win32 *before* you mess with anything here!
10##
11
12##
13## Build configuration. Edit the values below to suit your needs.
14##
15
16#
17# Set these to wherever you want "nmake install" to put your
18# newly built perl.
19#
20INST_DRV = c:
21INST_TOP = $(INST_DRV)\perl
22
23#
24# Comment this out if you DON'T want your perl installation to be versioned.
25# This means that the new installation will overwrite any files from the
26# old installation at the same INST_TOP location. Leaving it enabled is
27# the safest route, as perl adds the extra version directory to all the
28# locations it installs files to. If you disable it, an alternative
29# versioned installation can be obtained by setting INST_TOP above to a
30# path that includes an arbitrary version string.
31#
32INST_VER = \5.6.0
33
34#
35# Comment this out if you DON'T want your perl installation to have
36# architecture specific components. This means that architecture-
37# specific files will be installed along with the architecture-neutral
38# files. Leaving it enabled is safer and more flexible, in case you
39# want to build multiple flavors of perl and install them together in
40# the same location. Commenting it out gives you a simpler
41# installation that is easier to understand for beginners.
42#
43INST_ARCH = \$(ARCHNAME)
44
45#
46# uncomment to enable multiple interpreters. This is need for fork()
47# emulation.
48#
49#USE_MULTI = define
50
51#
52# Beginnings of interpreter cloning/threads; still very incomplete.
53# This should be enabled to get the fork() emulation. This needs
54# USE_MULTI as well.
55#
56#USE_ITHREADS = define
57
58#
59# uncomment to enable the implicit "host" layer for all system calls
60# made by perl. This needs USE_MULTI above. This is also needed to
61# get fork().
62#
63#USE_IMP_SYS = define
64
65#
e601c439 66# uncomment to enable the experimental PerlIO I/O subsystem.\r
67# This is currently incompatible with USE_MULTI, USE_ITHREADS,\r
68# and USE_IMP_SYS\r
69#USE_PERLIO = define\r
70\r
71#\r
a9226780 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_PERLCRT)" == ""
249USE_PERLCRT = undef
250!ENDIF
251
252!IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef"
253USE_MULTI = define
254!ENDIF
255
256!IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef"
257USE_MULTI = define
258USE_5005THREADS = undef
259!ENDIF
260
261!IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef"
262BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
263!ENDIF
264
265!IF "$(USE_IMP_SYS)" != "undef"
266BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS
267!ENDIF
268
269!IF "$(PROCESSOR_ARCHITECTURE)" == ""
270PROCESSOR_ARCHITECTURE = x86
271!ENDIF
272
273!IF "$(USE_OBJECT)" == "define"
274ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object
275!ELSE
276!IF "$(USE_5005THREADS)" == "define"
277ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
278!ELSE
279!IF "$(USE_MULTI)" == "define"
280ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
281!ELSE
e601c439 282!IF "$(USE_PERLIO)" == "define"\r
283ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio\r
284!ELSE\r
a9226780 285ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
286!ENDIF
287!ENDIF
288!ENDIF
e601c439 289!ENDIF\r
290\r
291!IF "$(USE_PERLIO)" == "define"\r
292BUILDOPT = $(BUILDOPT) -DUSE_PERLIO\r
293!ENDIF\r
a9226780 294
295!IF "$(USE_ITHREADS)" == "define"
296ARCHNAME = $(ARCHNAME)-thread
297!ENDIF
298
299# Visual Studio 98 specific
300!IF "$(CCTYPE)" == "MSVC60"
301
302# VC 6.0 can load the socket dll on demand. Makes the test suite
303# run in about 10% less time.
304DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
305
306# VC 6.0 seems capable of compiling perl correctly with optimizations
307# enabled. Anything earlier fails tests.
308!IF "$(CFG)" == ""
309CFG = Optimize
310!ENDIF
311!ENDIF
312
313ARCHDIR = ..\lib\$(ARCHNAME)
314COREDIR = ..\lib\CORE
315AUTODIR = ..\lib\auto
316LIBDIR = ..\lib
317EXTDIR = ..\ext
318PODDIR = ..\pod
319EXTUTILSDIR = $(LIBDIR)\ExtUtils
320
321#
322INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin
323INST_BIN = $(INST_SCRIPT)$(INST_ARCH)
324INST_LIB = $(INST_TOP)$(INST_VER)\lib
325INST_ARCHLIB = $(INST_LIB)$(INST_ARCH)
326INST_COREDIR = $(INST_ARCHLIB)\CORE
327INST_POD = $(INST_LIB)\pod
328INST_HTML = $(INST_POD)\html
329
330#
331# Programs to compile, build .lib files and link
332#
333
334CC = cl
335LINK32 = link
336LIB32 = $(LINK32) -lib
337RSC = rc
338
339#
340# Options
341#
342
343INCLUDES = -I$(COREDIR) -I.\include -I. -I..
344#PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX
345DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
346LOCDEFS = -DPERLDLL -DPERL_CORE
347SUBSYS = console
348CXX_FLAG = -TP -GX
349
350!IF "$(USE_PERLCRT)" != "define"
351LIBC = msvcrt.lib
352!ELSE
353LIBC = PerlCRT.lib
354!ENDIF
355
356PERLEXE_RES =
357PERLDLL_RES =
358
359!IF "$(CFG)" == "Debug"
360! IF "$(CCTYPE)" == "MSVC20"
361OPTIMIZE = -Od -MD -Z7 -DDEBUGGING
362! ELSE
363OPTIMIZE = -Od -MD -Zi -DDEBUGGING
364! ENDIF
365LINK_DBG = -debug -pdb:none
366!ELSE
367! IF "$(CFG)" == "Optimize"
368# -O1 yields smaller code, which turns out to be faster than -O2
369#OPTIMIZE = -O2 -MD -DNDEBUG
370OPTIMIZE = -O1 -MD -DNDEBUG
371! ELSE
372OPTIMIZE = -Od -MD -DNDEBUG
373! ENDIF
374LINK_DBG = -release
375!ENDIF
376
377!IF "$(USE_OBJECT)" == "define"
378OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG)
379BUILDOPT = $(BUILDOPT) -DPERL_OBJECT
380!ENDIF
381
382!IF "$(USE_PERLCRT)" != "define"
383BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX
384!ENDIF
385
386LIBBASEFILES = $(CRYPT_LIB) \
387 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
388 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
389 netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
390 version.lib odbc32.lib odbccp32.lib
391
392# we add LIBC here, since we may be using PerlCRT.dll
393LIBFILES = $(LIBBASEFILES) $(LIBC)
394
395CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
396 $(PCHFLAGS) $(OPTIMIZE)
397LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \
398 -libpath:"$(INST_COREDIR)" \
399 -machine:$(PROCESSOR_ARCHITECTURE)
400OBJOUT_FLAG = -Fo
401EXEOUT_FLAG = -Fe
402
403CFLAGS_O = $(CFLAGS) $(BUILDOPT)
404
405#################### do not edit below this line #######################
406############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
407
408o = .obj
409
410#
411# Rules
412#
413
414.SUFFIXES : .c $(o) .dll .lib .exe .rc .res
415
416.c$(o):
417 $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
418
419.y.c:
420 $(NOOP)
421
422$(o).dll:
423 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
424 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
425
426.rc.res:
427 $(RSC) -i.. $<
428
429#
430# various targets
431PERLIMPLIB = ..\perl56.lib
432PERLDLL = ..\perl56.dll
433
434MINIPERL = ..\miniperl.exe
435MINIDIR = .\mini
436PERLEXE = ..\perl.exe
437WPERLEXE = ..\wperl.exe
438GLOBEXE = ..\perlglob.exe
439CONFIGPM = ..\lib\Config.pm
440MINIMOD = ..\lib\ExtUtils\Miniperl.pm
441X2P = ..\x2p\a2p.exe
442
443PL2BAT = bin\pl2bat.pl
444GLOBBAT = bin\perlglob.bat
445
446UTILS = \
447 ..\utils\h2ph \
448 ..\utils\splain \
449 ..\utils\dprofpp \
450 ..\utils\perlbug \
451 ..\utils\pl2pm \
452 ..\utils\c2ph \
453 ..\utils\h2xs \
454 ..\utils\perldoc \
455 ..\utils\perlcc \
456 ..\pod\checkpods \
457 ..\pod\pod2html \
458 ..\pod\pod2latex \
459 ..\pod\pod2man \
460 ..\pod\pod2text \
461 ..\pod\pod2usage \
462 ..\pod\podchecker \
463 ..\pod\podselect \
464 ..\x2p\find2perl \
465 ..\x2p\s2p \
466 bin\exetype.pl \
467 bin\runperl.pl \
468 bin\pl2bat.pl \
469 bin\perlglob.pl \
470 bin\search.pl
471
472MAKE = nmake -nologo
473
474CFGSH_TMPL = config.vc
475CFGH_TMPL = config_H.vc
476
477XCOPY = xcopy /f /r /i /d
478RCOPY = xcopy /f /r /i /e /d
479NOOP = @echo
480NULL =
481
e601c439 482DEL = bin\mdelete.bat\r
483\r
a9226780 484#
485# filenames given to xsubpp must have forward slashes (since it puts
486# full pathnames in #line strings)
487XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
488 -C++ -prototypes
489
490MICROCORE_SRC = \
491 ..\av.c \
492 ..\deb.c \
493 ..\doio.c \
494 ..\doop.c \
495 ..\dump.c \
496 ..\globals.c \
497 ..\gv.c \
498 ..\hv.c \
499 ..\mg.c \
500 ..\op.c \
501 ..\perl.c \
502 ..\perlapi.c \
503 ..\perly.c \
504 ..\pp.c \
505 ..\pp_ctl.c \
506 ..\pp_hot.c \
507 ..\pp_sys.c \
508 ..\regcomp.c \
509 ..\regexec.c \
510 ..\run.c \
511 ..\scope.c \
512 ..\sv.c \
513 ..\taint.c \
514 ..\toke.c \
515 ..\universal.c \
516 ..\utf8.c \
517 ..\util.c \
518 ..\xsutils.c
519
520EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
521
522!IF "$(PERL_MALLOC)" == "define"
523EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
524!ENDIF
525
526!IF "$(USE_OBJECT)" != "define"
527EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
528!ENDIF
529
530WIN32_SRC = \
531 .\win32.c \
532 .\win32sck.c \
533 .\win32thread.c
534
535!IF "$(CRYPT_SRC)" != ""
536WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
537!ENDIF
538
539DLL_SRC = $(DYNALOADER).c
540
541X2P_SRC = \
542 ..\x2p\a2p.c \
543 ..\x2p\hash.c \
544 ..\x2p\str.c \
545 ..\x2p\util.c \
546 ..\x2p\walk.c
547
548CORE_NOCFG_H = \
549 ..\av.h \
550 ..\cop.h \
551 ..\cv.h \
552 ..\dosish.h \
553 ..\embed.h \
554 ..\form.h \
555 ..\gv.h \
556 ..\handy.h \
557 ..\hv.h \
558 ..\iperlsys.h \
559 ..\mg.h \
560 ..\nostdio.h \
561 ..\op.h \
562 ..\opcode.h \
563 ..\perl.h \
564 ..\perlapi.h \
565 ..\perlsdio.h \
566 ..\perlsfio.h \
567 ..\perly.h \
568 ..\pp.h \
569 ..\proto.h \
570 ..\regexp.h \
571 ..\scope.h \
572 ..\sv.h \
573 ..\thread.h \
574 ..\unixish.h \
575 ..\utf8.h \
576 ..\util.h \
577 ..\warnings.h \
578 ..\XSUB.h \
579 ..\EXTERN.h \
580 ..\perlvars.h \
581 ..\intrpvar.h \
582 ..\thrdvar.h \
583 .\include\dirent.h \
584 .\include\netdb.h \
585 .\include\sys\socket.h \
586 .\win32.h
587
588CORE_H = $(CORE_NOCFG_H) .\config.h
589
590MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
591CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
592WIN32_OBJ = $(WIN32_SRC:.c=.obj)
593MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
594 $(MINIDIR)\miniperlmain$(o) \
595 $(MINIDIR)\perlio$(o)
596MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
597MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
598DLL_OBJ = $(DLL_SRC:.c=.obj)
599X2P_OBJ = $(X2P_SRC:.c=.obj)
600
601PERLDLL_OBJ = $(CORE_OBJ)
602PERLEXE_OBJ = perlmain$(o)
603
604PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
605#PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
606
607!IF "$(USE_SETARGV)" != ""
608SETARGV_OBJ = setargv$(o)
609!ENDIF
610
611DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
612 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
613 Sys/Hostname Storable
614STATIC_EXT = DynaLoader
615NONXS_EXT = Errno
616
617DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
618SOCKET = $(EXTDIR)\Socket\Socket
619FCNTL = $(EXTDIR)\Fcntl\Fcntl
620OPCODE = $(EXTDIR)\Opcode\Opcode
621SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
622IO = $(EXTDIR)\IO\IO
623POSIX = $(EXTDIR)\POSIX\POSIX
624ATTRS = $(EXTDIR)\attrs\attrs
625THREAD = $(EXTDIR)\Thread\Thread
626B = $(EXTDIR)\B\B
627RE = $(EXTDIR)\re\re
628DUMPER = $(EXTDIR)\Data\Dumper\Dumper
629ERRNO = $(EXTDIR)\Errno\Errno
630PEEK = $(EXTDIR)\Devel\Peek\Peek
631BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
632DPROF = $(EXTDIR)\Devel\DProf\DProf
633GLOB = $(EXTDIR)\File\Glob\Glob
634HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
635STORABLE = $(EXTDIR)\Storable\Storable
636
637SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
638FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
639OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
640SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
641IO_DLL = $(AUTODIR)\IO\IO.dll
642POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
643ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
644THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
645B_DLL = $(AUTODIR)\B\B.dll
646DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
647PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
648RE_DLL = $(AUTODIR)\re\re.dll
649BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
650DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
651GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
652HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
653STORABLE_DLL = $(AUTODIR)\Storable\Storable.dll
654
655ERRNO_PM = $(LIBDIR)\Errno.pm
656
657EXTENSION_C = \
658 $(SOCKET).c \
659 $(FCNTL).c \
660 $(OPCODE).c \
661 $(SDBM_FILE).c \
662 $(IO).c \
663 $(POSIX).c \
664 $(ATTRS).c \
665 $(THREAD).c \
666 $(RE).c \
667 $(DUMPER).c \
668 $(PEEK).c \
669 $(B).c \
670 $(BYTELOADER).c \
671 $(DPROF).c \
672 $(GLOB).c \
673 $(HOSTNAME).c \
674 $(STORABLE).c
675
676EXTENSION_DLL = \
677 $(SOCKET_DLL) \
678 $(FCNTL_DLL) \
679 $(OPCODE_DLL) \
680 $(SDBM_FILE_DLL)\
681 $(IO_DLL) \
682 $(POSIX_DLL) \
683 $(ATTRS_DLL) \
684 $(DUMPER_DLL) \
685 $(PEEK_DLL) \
686 $(B_DLL) \
687 $(RE_DLL) \
688 $(THREAD_DLL) \
689 $(BYTELOADER_DLL) \
690 $(DPROF_DLL) \
691 $(GLOB_DLL) \
692 $(HOSTNAME_DLL) \
693 $(STORABLE_DLL)
694
695EXTENSION_PM = \
696 $(ERRNO_PM)
697
698POD2HTML = $(PODDIR)\pod2html
699POD2MAN = $(PODDIR)\pod2man
700POD2LATEX = $(PODDIR)\pod2latex
701POD2TEXT = $(PODDIR)\pod2text
702
703CFG_VARS = \
704 "INST_DRV=$(INST_DRV)" \
705 "INST_TOP=$(INST_TOP)" \
706 "INST_VER=$(INST_VER)" \
707 "INST_ARCH=$(INST_ARCH)" \
708 "archname=$(ARCHNAME)" \
709 "cc=$(CC)" \
e601c439 710 "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \\r
711 "cf_email=$(EMAIL)" \\r
a9226780 712 "d_crypt=$(D_CRYPT)" \
713 "d_mymalloc=$(PERL_MALLOC)" \
714 "libs=$(LIBFILES)" \
715 "incpath=$(CCINCDIR:"=\")" \
716 "libperl=$(PERLIMPLIB:..\=)" \
717 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
718 "libc=$(LIBC)" \
719 "make=nmake" \
720 "static_ext=$(STATIC_EXT)" \
721 "dynamic_ext=$(DYNAMIC_EXT)" \
722 "nonxs_ext=$(NONXS_EXT)" \
723 "use5005threads=$(USE_5005THREADS)" \
724 "useithreads=$(USE_ITHREADS)" \
725 "usethreads=$(USE_5005THREADS)" \
726 "usemultiplicity=$(USE_MULTI)" \
727 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
728 "optimize=$(OPTIMIZE:"=\")"
729
730#
731# Top targets
732#
733
734all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
735 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
736
737$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
738
739#------------------------------------------------------------
740
741$(GLOBEXE) : perlglob$(o)
742 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
743 perlglob$(o) setargv$(o)
744
745perlglob$(o) : perlglob.c
746
747config.w32 : $(CFGSH_TMPL)
748 copy $(CFGSH_TMPL) config.w32
749
750.\config.h : $(CFGH_TMPL)
751 -del /f config.h
752 copy $(CFGH_TMPL) config.h
753
754..\config.sh : config.w32 $(MINIPERL) config_sh.PL
755 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
756
757# this target is for when changes to the main config.sh happen
758# edit config.{b,v,g}c and make this target once for each supported
759# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
760regen_config_h:
761 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
762 cd ..
763 -del /f perl.exe
764 perl configpm
765 cd win32
766 -del /f $(CFGH_TMPL)
767 -mkdir $(COREDIR)
768 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
769 rename config.h $(CFGH_TMPL)
770
771$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
e601c439 772 cd .. \r
773 miniperl configpm\r
774 cd win32\r
a9226780 775 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
776 $(XCOPY) ..\*.h $(COREDIR)\*.*
777 $(XCOPY) *.h $(COREDIR)\*.*
778 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
779 $(RCOPY) include $(COREDIR)\*.*
e601c439 780 -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"\r
781 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)\r
a9226780 782
783$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
784 $(LINK32) -subsystem:console -out:$@ @<<
785 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
786<<
787
788$(MINIDIR) :
789 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
790
791$(MINICORE_OBJ) : $(CORE_NOCFG_H)
792 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
793
794$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
795 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
796
797# -DPERL_IMPLICIT_SYS needs C++ for perllib.c
798# This is the only file that depends on perlhost.h, vmem.h, and vdir.h
799!IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
800perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
801 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
802!ENDIF
803
804# 1. we don't want to rebuild miniperl.exe when config.h changes
805# 2. we don't want to rebuild miniperl.exe with non-default config.h
806$(MINI_OBJ) : $(CORE_NOCFG_H)
807
808$(WIN32_OBJ) : $(CORE_H)
809$(CORE_OBJ) : $(CORE_H)
810$(DLL_OBJ) : $(CORE_H)
811$(X2P_OBJ) : $(CORE_H)
812
813perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
814 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
815 CCTYPE=$(CCTYPE) > perldll.def
816
817$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
818 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<<
819 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
820<<
821 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
822
823$(MINIMOD) : $(MINIPERL) ..\minimod.pl
e601c439 824 cd .. \r
825 miniperl minimod.pl > lib\ExtUtils\Miniperl.pm\r
826 cd win32\r
a9226780 827
828..\x2p\a2p$(o) : ..\x2p\a2p.c
829 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
830
831..\x2p\hash$(o) : ..\x2p\hash.c
832 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
833
834..\x2p\str$(o) : ..\x2p\str.c
835 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
836
837..\x2p\util$(o) : ..\x2p\util.c
838 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
839
840..\x2p\walk$(o) : ..\x2p\walk.c
841 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
842
843$(X2P) : $(MINIPERL) $(X2P_OBJ)
844 $(MINIPERL) ..\x2p\find2perl.PL
845 $(MINIPERL) ..\x2p\s2p.PL
846 $(LINK32) -subsystem:console -out:$@ @<<
847 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
848<<
849
850perlmain.c : runperl.c
851 copy runperl.c perlmain.c
852
853perlmain$(o) : perlmain.c
854 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
855
856$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
857 $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
858 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
859 copy $(PERLEXE) $(WPERLEXE)
860 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
861 copy splittree.pl ..
862 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
863
864$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
865 if not exist $(AUTODIR) mkdir $(AUTODIR)
866 cd $(EXTDIR)\$(*B)
867 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
868 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
869 cd ..\..\win32
870 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
871 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
872 cd $(EXTDIR)\$(*B)
873 $(XSUBPP) dl_win32.xs > $(*B).c
874 cd ..\..\win32
875
876$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
877 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
878
879$(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
880 cd $(EXTDIR)\Data\$(*B)
881 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
882 $(MAKE)
883 cd ..\..\..\win32
884
885$(DPROF_DLL): $(PERLEXE) $(DPROF).xs
886 cd $(EXTDIR)\Devel\$(*B)
887 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
888 $(MAKE)
889 cd ..\..\..\win32
890
891$(GLOB_DLL): $(PERLEXE) $(GLOB).xs
892 cd $(EXTDIR)\File\$(*B)
893 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
894 $(MAKE)
895 cd ..\..\..\win32
896
897$(PEEK_DLL): $(PERLEXE) $(PEEK).xs
898 cd $(EXTDIR)\Devel\$(*B)
899 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
900 $(MAKE)
901 cd ..\..\..\win32
902
903$(RE_DLL): $(PERLEXE) $(RE).xs
904 cd $(EXTDIR)\$(*B)
905 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
906 $(MAKE)
907 cd ..\..\win32
908
909$(B_DLL): $(PERLEXE) $(B).xs
910 cd $(EXTDIR)\$(*B)
911 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
912 $(MAKE)
913 cd ..\..\win32
914
915$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
916 cd $(EXTDIR)\$(*B)
917 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
918 $(MAKE)
919 cd ..\..\win32
920
921$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
922 cd $(EXTDIR)\$(*B)
923 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
924 $(MAKE)
925 cd ..\..\win32
926
927$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
928 cd $(EXTDIR)\$(*B)
929 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
930 $(MAKE)
931 cd ..\..\win32
932
933$(IO_DLL): $(PERLEXE) $(IO).xs
934 cd $(EXTDIR)\$(*B)
935 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
936 $(MAKE)
937 cd ..\..\win32
938
939$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
940 cd $(EXTDIR)\$(*B)
941 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
942 $(MAKE)
943 cd ..\..\win32
944
945$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
946 cd $(EXTDIR)\$(*B)
947 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
948 $(MAKE)
949 cd ..\..\win32
950
951$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
952 cd $(EXTDIR)\$(*B)
953 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
954 $(MAKE)
955 cd ..\..\win32
956
957$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
958 cd $(EXTDIR)\$(*B)
959 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
960 $(MAKE)
961 cd ..\..\win32
962
963$(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
964 cd $(EXTDIR)\Sys\$(*B)
965 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
966 $(MAKE)
967 cd ..\..\..\win32
968
969$(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
970 cd $(EXTDIR)\$(*B)
971 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
972 $(MAKE)
973 cd ..\..\win32
974
975$(STORABLE_DLL): $(PERLEXE) $(STORABLE).xs
976 cd $(EXTDIR)\$(*B)
977 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
978 $(MAKE)
979 cd ..\..\win32
980
981$(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
982 cd $(EXTDIR)\$(*B)
983 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
984 $(MAKE)
985 cd ..\..\win32
986
987doc: $(PERLEXE)
988 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
989 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
990 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
991
992utils: $(PERLEXE) $(X2P)
993 cd ..\utils
994 $(MAKE) PERL=$(MINIPERL)
995 cd ..\pod
996 copy ..\README.amiga .\perlamiga.pod
997 copy ..\README.cygwin .\perlcygwin.pod
998 copy ..\README.dos .\perldos.pod
999 copy ..\README.hpux .\perlhpux.pod
1000 copy ..\README.machten .\perlmachten.pod
1001 copy ..\README.os2 .\perlos2.pod
1002 copy ..\vms\perlvms.pod .\perlvms.pod
1003 copy ..\README.win32 .\perlwin32.pod
1004 $(MAKE) -f ..\win32\pod.mak converters
1005 cd ..\lib
1006 $(PERLEXE) lib_pm.PL
1007 cd ..\win32
1008 $(PERLEXE) $(PL2BAT) $(UTILS)
1009
1010distclean: clean
1011 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1012 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1013 -del /f *.def *.map
1014 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
1015 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1016 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1017 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1018 -del /f $(LIBDIR)\XSLoader.pm
1019 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1020 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1021 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1022 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1023 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1024 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1025 -del /f $(LIBDIR)\File\Glob.pm
1026 -del /f $(LIBDIR)\Storable.pm
e601c439 1027 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO \r
1028 -rmdir /s $(LIBDIR)\IO\r
1029 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread \r
1030 -rmdir /s $(LIBDIR)\Thread\r
1031 -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B\r
1032 -rmdir /s $(LIBDIR)\B\r
1033 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data \r
1034 -rmdir /s $(LIBDIR)\Data\r
a9226780 1035 -del /f $(PODDIR)\*.html
1036 -del /f $(PODDIR)\*.bat
1037 cd ..\utils
1038 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1039 -del /f *.bat
1040 cd ..\win32
1041 cd ..\x2p
1042 -del /f find2perl s2p
1043 -del /f *.bat
1044 cd ..\win32
1045 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1046 -del /f $(CONFIGPM)
1047 -del /f bin\*.bat
1048 cd $(EXTDIR)
1049 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1050 cd ..\win32
e601c439 1051 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) \r
1052 -rmdir /s $(AUTODIR)\r
1053 -if exist $(COREDIR) rmdir /s /q $(COREDIR) \r
1054 -rmdir /s $(COREDIR)\r
a9226780 1055
1056install : all installbare installhtml
1057
1058installbare : utils
1059 $(PERLEXE) ..\installperl
1060 if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1061 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1062 $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1063
1064installhtml : doc
1065 $(RCOPY) html\*.* $(INST_HTML)\*.*
1066
1067inst_lib : $(CONFIGPM)
1068 copy splittree.pl ..
1069 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1070 $(RCOPY) ..\lib $(INST_LIB)\*.*
1071
1072minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
1073 $(XCOPY) $(MINIPERL) ..\t\perl.exe
1074 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1075 attrib -r ..\t\*.*
1076 copy test ..\t
1077 cd ..\t
1078 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1079 cd ..\win32
1080
1081test-prep : all utils
1082 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1083 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1084 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1085
1086test : test-prep
1087 cd ..\t
1088 $(PERLEXE) -I..\lib harness
1089 cd ..\win32
1090
1091test-notty : test-prep
1092 set PERL_SKIP_TTY_TEST=1
1093 cd ..\t
1094 $(PERLEXE) -I..\lib harness
1095 cd ..\win32
1096
1097test-wide : test-prep
1098 set HARNESS_PERL_SWITCHES=-C
1099 cd ..\t
1100 $(PERLEXE) -I..\lib harness
1101 cd ..\win32
1102
1103test-wide-notty : test-prep
1104 set PERL_SKIP_TTY_TEST=1
1105 set HARNESS_PERL_SWITCHES=-C
1106 cd ..\t
1107 $(PERLEXE) -I..\lib harness
1108 cd ..\win32
1109
1110clean :
e601c439 1111 -@$(DEL) miniperlmain$(o)\r
1112 -@$(DEL) $(MINIPERL)\r
1113 -@$(DEL) perlglob$(o)\r
1114 -@$(DEL) perlmain$(o)\r
1115 -@$(DEL) config.w32\r
1116 -@$(DEL) /f config.h\r
1117 -@$(DEL) $(GLOBEXE)\r
1118 -@$(DEL) $(PERLEXE)\r
1119 -@$(DEL) $(WPERLEXE)\r
1120 -@$(DEL) $(PERLDLL)\r
1121 -@$(DEL) $(CORE_OBJ)\r
1122 -if exist $(MINIDIR) deltree /y $(MINIDIR) \r
1123 -@$(DEL) $(WIN32_OBJ)\r
1124 -@$(DEL) $(DLL_OBJ)\r
1125 -@$(DEL) $(X2P_OBJ)\r
1126 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res\r
1127 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat\r
1128 -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat\r
1129 -@$(DEL) *.ilk\r
1130 -@$(DEL) *.pdb\r
a9226780 1131
1132# Handy way to run perlbug -ok without having to install and run the
1133# installed perlbug. We don't re-run the tests here - we trust the user.
1134# Please *don't* use this unless all tests pass.
1135# If you want to report test failures, use "nmake nok" instead.
1136ok: utils
1137 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1138
1139okfile: utils
1140 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1141
1142nok: utils
1143 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1144
1145nokfile: utils
1146 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok