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