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