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