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