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