This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Encode and correct Filter/Util/Call in nmake Makefile
[perl5.git] / win32 / Makefile
CommitLineData
a9226780
JH
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
7d4dff66 5# (perl57.dll). Also makes individual DLLs for the XS extensions.
a9226780
JH
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#
7d4dff66 32INST_VER = \5.7.0
a9226780
JH
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#
00b02797
JH
66# uncomment to enable the experimental PerlIO I/O subsystem.
67# This is currently incompatible with USE_MULTI, USE_ITHREADS,
68# and USE_IMP_SYS
69#USE_PERLIO = define
70
71#
a9226780
JH
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
00b02797
JH
282!IF "$(USE_PERLIO)" == "define"
283ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio
284!ELSE
a9226780
JH
285ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
286!ENDIF
287!ENDIF
288!ENDIF
00b02797
JH
289!ENDIF
290
291!IF "$(USE_PERLIO)" == "define"
292BUILDOPT = $(BUILDOPT) -DUSE_PERLIO
293!ENDIF
a9226780
JH
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
7d4dff66
GS
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.
434# XXX so why did we change it from perl56 to perl57?
435PERLIMPLIB = ..\perl57.lib
436PERLDLL = ..\perl57.dll
a9226780
JH
437
438MINIPERL = ..\miniperl.exe
439MINIDIR = .\mini
440PERLEXE = ..\perl.exe
441WPERLEXE = ..\wperl.exe
442GLOBEXE = ..\perlglob.exe
443CONFIGPM = ..\lib\Config.pm
444MINIMOD = ..\lib\ExtUtils\Miniperl.pm
445X2P = ..\x2p\a2p.exe
446
447PL2BAT = bin\pl2bat.pl
448GLOBBAT = bin\perlglob.bat
449
450UTILS = \
451 ..\utils\h2ph \
452 ..\utils\splain \
453 ..\utils\dprofpp \
454 ..\utils\perlbug \
455 ..\utils\pl2pm \
456 ..\utils\c2ph \
457 ..\utils\h2xs \
458 ..\utils\perldoc \
459 ..\utils\perlcc \
460 ..\pod\checkpods \
461 ..\pod\pod2html \
462 ..\pod\pod2latex \
463 ..\pod\pod2man \
464 ..\pod\pod2text \
465 ..\pod\pod2usage \
466 ..\pod\podchecker \
467 ..\pod\podselect \
468 ..\x2p\find2perl \
469 ..\x2p\s2p \
470 bin\exetype.pl \
471 bin\runperl.pl \
472 bin\pl2bat.pl \
473 bin\perlglob.pl \
474 bin\search.pl
475
476MAKE = nmake -nologo
477
478CFGSH_TMPL = config.vc
479CFGH_TMPL = config_H.vc
480
481XCOPY = xcopy /f /r /i /d
482RCOPY = xcopy /f /r /i /e /d
483NOOP = @echo
484NULL =
485
00b02797
JH
486DEL = bin\mdelete.bat
487
a9226780
JH
488#
489# filenames given to xsubpp must have forward slashes (since it puts
490# full pathnames in #line strings)
491XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
492 -C++ -prototypes
493
494MICROCORE_SRC = \
495 ..\av.c \
496 ..\deb.c \
497 ..\doio.c \
498 ..\doop.c \
499 ..\dump.c \
500 ..\globals.c \
501 ..\gv.c \
502 ..\hv.c \
503 ..\mg.c \
504 ..\op.c \
505 ..\perl.c \
506 ..\perlapi.c \
507 ..\perly.c \
508 ..\pp.c \
509 ..\pp_ctl.c \
510 ..\pp_hot.c \
511 ..\pp_sys.c \
512 ..\regcomp.c \
513 ..\regexec.c \
514 ..\run.c \
515 ..\scope.c \
516 ..\sv.c \
517 ..\taint.c \
518 ..\toke.c \
519 ..\universal.c \
520 ..\utf8.c \
521 ..\util.c \
522 ..\xsutils.c
523
524EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c
525
526!IF "$(PERL_MALLOC)" == "define"
527EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c
528!ENDIF
529
530!IF "$(USE_OBJECT)" != "define"
531EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c
532!ENDIF
533
534WIN32_SRC = \
535 .\win32.c \
536 .\win32sck.c \
537 .\win32thread.c
538
539!IF "$(CRYPT_SRC)" != ""
540WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC)
541!ENDIF
542
543DLL_SRC = $(DYNALOADER).c
544
545X2P_SRC = \
546 ..\x2p\a2p.c \
547 ..\x2p\hash.c \
548 ..\x2p\str.c \
549 ..\x2p\util.c \
550 ..\x2p\walk.c
551
552CORE_NOCFG_H = \
553 ..\av.h \
554 ..\cop.h \
555 ..\cv.h \
556 ..\dosish.h \
557 ..\embed.h \
558 ..\form.h \
559 ..\gv.h \
560 ..\handy.h \
561 ..\hv.h \
562 ..\iperlsys.h \
563 ..\mg.h \
564 ..\nostdio.h \
565 ..\op.h \
566 ..\opcode.h \
567 ..\perl.h \
568 ..\perlapi.h \
569 ..\perlsdio.h \
570 ..\perlsfio.h \
571 ..\perly.h \
572 ..\pp.h \
573 ..\proto.h \
574 ..\regexp.h \
575 ..\scope.h \
576 ..\sv.h \
577 ..\thread.h \
578 ..\unixish.h \
579 ..\utf8.h \
580 ..\util.h \
581 ..\warnings.h \
582 ..\XSUB.h \
583 ..\EXTERN.h \
584 ..\perlvars.h \
585 ..\intrpvar.h \
586 ..\thrdvar.h \
587 .\include\dirent.h \
588 .\include\netdb.h \
589 .\include\sys\socket.h \
590 .\win32.h
591
592CORE_H = $(CORE_NOCFG_H) .\config.h
593
594MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj)
595CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
596WIN32_OBJ = $(WIN32_SRC:.c=.obj)
597MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \
598 $(MINIDIR)\miniperlmain$(o) \
599 $(MINIDIR)\perlio$(o)
600MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\)
601MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
602DLL_OBJ = $(DLL_SRC:.c=.obj)
603X2P_OBJ = $(X2P_SRC:.c=.obj)
604
605PERLDLL_OBJ = $(CORE_OBJ)
606PERLEXE_OBJ = perlmain$(o)
607
608PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
609#PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
610
611!IF "$(USE_SETARGV)" != ""
612SETARGV_OBJ = setargv$(o)
613!ENDIF
614
615DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \
616 Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \
24c3c6f8 617 Sys/Hostname Storable Filter/Util/Call Encode
a9226780
JH
618STATIC_EXT = DynaLoader
619NONXS_EXT = Errno
620
621DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader
622SOCKET = $(EXTDIR)\Socket\Socket
623FCNTL = $(EXTDIR)\Fcntl\Fcntl
624OPCODE = $(EXTDIR)\Opcode\Opcode
625SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File
626IO = $(EXTDIR)\IO\IO
627POSIX = $(EXTDIR)\POSIX\POSIX
628ATTRS = $(EXTDIR)\attrs\attrs
629THREAD = $(EXTDIR)\Thread\Thread
630B = $(EXTDIR)\B\B
631RE = $(EXTDIR)\re\re
632DUMPER = $(EXTDIR)\Data\Dumper\Dumper
633ERRNO = $(EXTDIR)\Errno\Errno
634PEEK = $(EXTDIR)\Devel\Peek\Peek
635BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader
636DPROF = $(EXTDIR)\Devel\DProf\DProf
637GLOB = $(EXTDIR)\File\Glob\Glob
638HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname
639STORABLE = $(EXTDIR)\Storable\Storable
5e506771 640FILTER = $(EXTDIR)\Filter\Util\Call\Call
24c3c6f8 641ENCODE = $(EXTDIR)\Encode\Encode
a9226780
JH
642
643SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll
644FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll
645OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll
646SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll
647IO_DLL = $(AUTODIR)\IO\IO.dll
648POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll
649ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll
650THREAD_DLL = $(AUTODIR)\Thread\Thread.dll
651B_DLL = $(AUTODIR)\B\B.dll
652DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll
653PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll
654RE_DLL = $(AUTODIR)\re\re.dll
655BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll
656DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll
657GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll
658HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll
659STORABLE_DLL = $(AUTODIR)\Storable\Storable.dll
24c3c6f8
NIS
660FILTER_DLL = $(AUTODIR)\Filter\Util\Call\Call.dll
661ENCODE_DLL = $(AUTODIR)\Encode\Encode.dll
a9226780
JH
662
663ERRNO_PM = $(LIBDIR)\Errno.pm
664
665EXTENSION_C = \
666 $(SOCKET).c \
667 $(FCNTL).c \
668 $(OPCODE).c \
669 $(SDBM_FILE).c \
670 $(IO).c \
671 $(POSIX).c \
672 $(ATTRS).c \
673 $(THREAD).c \
674 $(RE).c \
675 $(DUMPER).c \
676 $(PEEK).c \
677 $(B).c \
678 $(BYTELOADER).c \
679 $(DPROF).c \
680 $(GLOB).c \
681 $(HOSTNAME).c \
a3ee43e0 682 $(STORABLE).c \
24c3c6f8
NIS
683 $(FILTER).c \
684 $(ENCODE).c
a9226780
JH
685
686EXTENSION_DLL = \
687 $(SOCKET_DLL) \
688 $(FCNTL_DLL) \
689 $(OPCODE_DLL) \
690 $(SDBM_FILE_DLL)\
691 $(IO_DLL) \
692 $(POSIX_DLL) \
693 $(ATTRS_DLL) \
694 $(DUMPER_DLL) \
695 $(PEEK_DLL) \
696 $(B_DLL) \
697 $(RE_DLL) \
698 $(THREAD_DLL) \
699 $(BYTELOADER_DLL) \
700 $(DPROF_DLL) \
701 $(GLOB_DLL) \
702 $(HOSTNAME_DLL) \
a3ee43e0 703 $(STORABLE_DLL) \
24c3c6f8
NIS
704 $(FILTER_DLL) \
705 $(ENCODE_DLL)
a9226780
JH
706
707EXTENSION_PM = \
708 $(ERRNO_PM)
709
710POD2HTML = $(PODDIR)\pod2html
711POD2MAN = $(PODDIR)\pod2man
712POD2LATEX = $(PODDIR)\pod2latex
713POD2TEXT = $(PODDIR)\pod2text
714
715CFG_VARS = \
716 "INST_DRV=$(INST_DRV)" \
717 "INST_TOP=$(INST_TOP)" \
718 "INST_VER=$(INST_VER)" \
719 "INST_ARCH=$(INST_ARCH)" \
720 "archname=$(ARCHNAME)" \
721 "cc=$(CC)" \
fd826df2 722 "ld=$(LINK32)" \
00b02797
JH
723 "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \
724 "cf_email=$(EMAIL)" \
a9226780
JH
725 "d_crypt=$(D_CRYPT)" \
726 "d_mymalloc=$(PERL_MALLOC)" \
727 "libs=$(LIBFILES)" \
728 "incpath=$(CCINCDIR:"=\")" \
729 "libperl=$(PERLIMPLIB:..\=)" \
730 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \
731 "libc=$(LIBC)" \
732 "make=nmake" \
733 "static_ext=$(STATIC_EXT)" \
734 "dynamic_ext=$(DYNAMIC_EXT)" \
735 "nonxs_ext=$(NONXS_EXT)" \
736 "use5005threads=$(USE_5005THREADS)" \
737 "useithreads=$(USE_ITHREADS)" \
738 "usethreads=$(USE_5005THREADS)" \
739 "usemultiplicity=$(USE_MULTI)" \
740 "LINK_FLAGS=$(LINK_FLAGS:"=\")" \
741 "optimize=$(OPTIMIZE:"=\")"
742
743#
744# Top targets
745#
746
747all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \
748 $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM)
749
750$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
751
752#------------------------------------------------------------
753
754$(GLOBEXE) : perlglob$(o)
755 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
756 perlglob$(o) setargv$(o)
757
758perlglob$(o) : perlglob.c
759
760config.w32 : $(CFGSH_TMPL)
761 copy $(CFGSH_TMPL) config.w32
762
763.\config.h : $(CFGH_TMPL)
764 -del /f config.h
765 copy $(CFGH_TMPL) config.h
766
767..\config.sh : config.w32 $(MINIPERL) config_sh.PL
768 $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
769
770# this target is for when changes to the main config.sh happen
771# edit config.{b,v,g}c and make this target once for each supported
772# compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`)
773regen_config_h:
774 perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
775 cd ..
776 -del /f perl.exe
777 perl configpm
778 cd win32
779 -del /f $(CFGH_TMPL)
780 -mkdir $(COREDIR)
781 -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)"
782 rename config.h $(CFGH_TMPL)
783
784$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
00b02797
JH
785 cd ..
786 miniperl configpm
787 cd win32
a9226780
JH
788 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
789 $(XCOPY) ..\*.h $(COREDIR)\*.*
790 $(XCOPY) *.h $(COREDIR)\*.*
791 $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
792 $(RCOPY) include $(COREDIR)\*.*
00b02797
JH
793 -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"
794 if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
a9226780
JH
795
796$(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
797 $(LINK32) -subsystem:console -out:$@ @<<
798 $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
799<<
800
801$(MINIDIR) :
802 if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
803
804$(MINICORE_OBJ) : $(CORE_NOCFG_H)
805 $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
806
807$(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
808 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
809
810# -DPERL_IMPLICIT_SYS needs C++ for perllib.c
811# This is the only file that depends on perlhost.h, vmem.h, and vdir.h
812!IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef"
813perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h
814 $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
815!ENDIF
816
817# 1. we don't want to rebuild miniperl.exe when config.h changes
818# 2. we don't want to rebuild miniperl.exe with non-default config.h
819$(MINI_OBJ) : $(CORE_NOCFG_H)
820
821$(WIN32_OBJ) : $(CORE_H)
822$(CORE_OBJ) : $(CORE_H)
823$(DLL_OBJ) : $(CORE_H)
824$(X2P_OBJ) : $(CORE_H)
825
826perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
827 $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
828 CCTYPE=$(CCTYPE) > perldll.def
829
830$(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
831 $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<<
832 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
833<<
834 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
835
836$(MINIMOD) : $(MINIPERL) ..\minimod.pl
00b02797
JH
837 cd ..
838 miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
839 cd win32
a9226780
JH
840
841..\x2p\a2p$(o) : ..\x2p\a2p.c
842 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
843
844..\x2p\hash$(o) : ..\x2p\hash.c
845 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
846
847..\x2p\str$(o) : ..\x2p\str.c
848 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
849
850..\x2p\util$(o) : ..\x2p\util.c
851 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
852
853..\x2p\walk$(o) : ..\x2p\walk.c
854 $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
855
856$(X2P) : $(MINIPERL) $(X2P_OBJ)
857 $(MINIPERL) ..\x2p\find2perl.PL
858 $(MINIPERL) ..\x2p\s2p.PL
859 $(LINK32) -subsystem:console -out:$@ @<<
860 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
861<<
862
863perlmain.c : runperl.c
864 copy runperl.c perlmain.c
865
866perlmain$(o) : perlmain.c
867 $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
868
869$(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
870 $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
871 $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
872 copy $(PERLEXE) $(WPERLEXE)
873 $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
874 copy splittree.pl ..
875 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
876
877$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
878 if not exist $(AUTODIR) mkdir $(AUTODIR)
879 cd $(EXTDIR)\$(*B)
880 ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
881 ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
882 cd ..\..\win32
883 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
884 $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
885 cd $(EXTDIR)\$(*B)
886 $(XSUBPP) dl_win32.xs > $(*B).c
887 cd ..\..\win32
888
889$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
890 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
891
892$(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs
893 cd $(EXTDIR)\Data\$(*B)
894 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
895 $(MAKE)
896 cd ..\..\..\win32
897
898$(DPROF_DLL): $(PERLEXE) $(DPROF).xs
899 cd $(EXTDIR)\Devel\$(*B)
900 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
901 $(MAKE)
902 cd ..\..\..\win32
903
904$(GLOB_DLL): $(PERLEXE) $(GLOB).xs
905 cd $(EXTDIR)\File\$(*B)
906 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
907 $(MAKE)
908 cd ..\..\..\win32
909
910$(PEEK_DLL): $(PERLEXE) $(PEEK).xs
911 cd $(EXTDIR)\Devel\$(*B)
912 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
913 $(MAKE)
914 cd ..\..\..\win32
915
916$(RE_DLL): $(PERLEXE) $(RE).xs
917 cd $(EXTDIR)\$(*B)
918 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
919 $(MAKE)
920 cd ..\..\win32
921
922$(B_DLL): $(PERLEXE) $(B).xs
923 cd $(EXTDIR)\$(*B)
924 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
925 $(MAKE)
926 cd ..\..\win32
927
928$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
929 cd $(EXTDIR)\$(*B)
930 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
931 $(MAKE)
932 cd ..\..\win32
933
934$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
935 cd $(EXTDIR)\$(*B)
936 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
937 $(MAKE)
938 cd ..\..\win32
939
940$(POSIX_DLL): $(PERLEXE) $(POSIX).xs
941 cd $(EXTDIR)\$(*B)
942 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
943 $(MAKE)
944 cd ..\..\win32
945
946$(IO_DLL): $(PERLEXE) $(IO).xs
947 cd $(EXTDIR)\$(*B)
948 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
949 $(MAKE)
950 cd ..\..\win32
951
952$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
953 cd $(EXTDIR)\$(*B)
954 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
955 $(MAKE)
956 cd ..\..\win32
957
958$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
959 cd $(EXTDIR)\$(*B)
960 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
961 $(MAKE)
962 cd ..\..\win32
963
964$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
965 cd $(EXTDIR)\$(*B)
966 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
967 $(MAKE)
968 cd ..\..\win32
969
970$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
971 cd $(EXTDIR)\$(*B)
972 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
973 $(MAKE)
974 cd ..\..\win32
975
976$(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs
977 cd $(EXTDIR)\Sys\$(*B)
978 ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl
979 $(MAKE)
980 cd ..\..\..\win32
981
982$(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs
983 cd $(EXTDIR)\$(*B)
984 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
985 $(MAKE)
986 cd ..\..\win32
987
988$(STORABLE_DLL): $(PERLEXE) $(STORABLE).xs
989 cd $(EXTDIR)\$(*B)
990 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
991 $(MAKE)
992 cd ..\..\win32
993
a3ee43e0 994$(FILTER_DLL): $(PERLEXE) $(FILTER).xs
5e506771 995 cd $(EXTDIR)\Filter\Util\Call
89060ce2 996 ..\..\..\..\miniperl -I..\..\..\..\lib Makefile.PL INSTALLDIRS=perl
a3ee43e0 997 $(MAKE)
89060ce2 998 cd ..\..\..\..\win32
a3ee43e0 999
24c3c6f8
NIS
1000$(ENCODE_DLL): $(PERLEXE) $(ENCODE).xs
1001 cd $(EXTDIR)\$(*B)
1002 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1003 $(MAKE)
1004 cd ..\..\win32
1005
a9226780
JH
1006$(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL
1007 cd $(EXTDIR)\$(*B)
1008 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
1009 $(MAKE)
1010 cd ..\..\win32
1011
1012doc: $(PERLEXE)
1013 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
1014 --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
1015 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
1016
1017utils: $(PERLEXE) $(X2P)
1018 cd ..\utils
1019 $(MAKE) PERL=$(MINIPERL)
1020 cd ..\pod
1021 copy ..\README.amiga .\perlamiga.pod
1022 copy ..\README.cygwin .\perlcygwin.pod
1023 copy ..\README.dos .\perldos.pod
1024 copy ..\README.hpux .\perlhpux.pod
1025 copy ..\README.machten .\perlmachten.pod
1026 copy ..\README.os2 .\perlos2.pod
1027 copy ..\vms\perlvms.pod .\perlvms.pod
1028 copy ..\README.win32 .\perlwin32.pod
1029 $(MAKE) -f ..\win32\pod.mak converters
1030 cd ..\lib
1031 $(PERLEXE) lib_pm.PL
1032 cd ..\win32
1033 $(PERLEXE) $(PL2BAT) $(UTILS)
1034
1035distclean: clean
1036 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1037 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1038 -del /f *.def *.map
1039 -del /f $(EXTENSION_DLL) $(EXTENSION_PM)
1040 -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1041 -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1042 -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1043 -del /f $(LIBDIR)\XSLoader.pm
1044 -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1045 -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm
1046 -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1047 -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1048 -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm
1049 -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1050 -del /f $(LIBDIR)\File\Glob.pm
1051 -del /f $(LIBDIR)\Storable.pm
5e506771 1052 -del /f $(LIBDIR)\Filter\Util\Call\Call.pm
00b02797
JH
1053 -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1054 -rmdir /s $(LIBDIR)\IO
1055 -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread
1056 -rmdir /s $(LIBDIR)\Thread
1057 -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B
1058 -rmdir /s $(LIBDIR)\B
1059 -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1060 -rmdir /s $(LIBDIR)\Data
5e506771
JH
1061 -if exist $(LIBDIR)\Filter\Util\Call rmdir /s /q $(LIBDIR)\Filter\Util\Call
1062 -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util
a9226780
JH
1063 -del /f $(PODDIR)\*.html
1064 -del /f $(PODDIR)\*.bat
1065 cd ..\utils
1066 -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp
1067 -del /f *.bat
1068 cd ..\win32
1069 cd ..\x2p
1070 -del /f find2perl s2p
1071 -del /f *.bat
1072 cd ..\win32
1073 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1074 -del /f $(CONFIGPM)
1075 -del /f bin\*.bat
1076 cd $(EXTDIR)
1077 -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib
1078 cd ..\win32
00b02797
JH
1079 -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1080 -rmdir /s $(AUTODIR)
1081 -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1082 -rmdir /s $(COREDIR)
a9226780
JH
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
1138clean :
00b02797
JH
1139 -@$(DEL) miniperlmain$(o)
1140 -@$(DEL) $(MINIPERL)
1141 -@$(DEL) perlglob$(o)
1142 -@$(DEL) perlmain$(o)
1143 -@$(DEL) config.w32
1144 -@$(DEL) /f config.h
1145 -@$(DEL) $(GLOBEXE)
1146 -@$(DEL) $(PERLEXE)
1147 -@$(DEL) $(WPERLEXE)
1148 -@$(DEL) $(PERLDLL)
1149 -@$(DEL) $(CORE_OBJ)
7d4dff66
GS
1150 -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1151 -rmdir /s $(MINIDIR)
00b02797
JH
1152 -@$(DEL) $(WIN32_OBJ)
1153 -@$(DEL) $(DLL_OBJ)
1154 -@$(DEL) $(X2P_OBJ)
1155 -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1156 -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1157 -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat
1158 -@$(DEL) *.ilk
1159 -@$(DEL) *.pdb
a9226780
JH
1160
1161# Handy way to run perlbug -ok without having to install and run the
1162# installed perlbug. We don't re-run the tests here - we trust the user.
1163# Please *don't* use this unless all tests pass.
1164# If you want to report test failures, use "nmake nok" instead.
1165ok: utils
1166 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1167
1168okfile: utils
1169 $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1170
1171nok: utils
1172 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1173
1174nokfile: utils
1175 $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok