Propagate const/mutable/not into the SvPV call for retrieving an
[p5sagit/p5-mst-13.2.git] / win32 / Makefile
1 #
2 # Makefile to build perl on Windows NT using Microsoft NMAKE.
3 # Supported compilers:
4 #       Visual C++ 2.0 through 6.0 (and possibly newer versions)
5 #       MS Platform SDK 64-bit compiler and tools **experimental**
6 #
7 # This is set up to build a perl.exe that runs off a shared library
8 # (perl59.dll).  Also makes individual DLLs for the XS extensions.
9 #
10
11 ##
12 ## Make sure you read README.win32 *before* you mess with anything here!
13 ##
14
15 ##
16 ## Build configuration.  Edit the values below to suit your needs.
17 ##
18
19 #
20 # Set these to wherever you want "nmake install" to put your
21 # newly built perl.
22 #
23 INST_DRV        = c:
24 INST_TOP        = $(INST_DRV)\perl
25
26 #
27 # Comment this out if you DON'T want your perl installation to be versioned.
28 # This means that the new installation will overwrite any files from the
29 # old installation at the same INST_TOP location.  Leaving it enabled is
30 # the safest route, as perl adds the extra version directory to all the
31 # locations it installs files to.  If you disable it, an alternative
32 # versioned installation can be obtained by setting INST_TOP above to a
33 # path that includes an arbitrary version string.
34 #
35 #INST_VER       = \5.9.3
36
37 #
38 # Comment this out if you DON'T want your perl installation to have
39 # architecture specific components.  This means that architecture-
40 # specific files will be installed along with the architecture-neutral
41 # files.  Leaving it enabled is safer and more flexible, in case you
42 # want to build multiple flavors of perl and install them together in
43 # the same location.  Commenting it out gives you a simpler
44 # installation that is easier to understand for beginners.
45 #
46 #INST_ARCH      = \$(ARCHNAME)
47
48 #
49 # Uncomment this if you want perl to run
50 #       $Config{sitelibexp}\sitecustomize.pl
51 # before anything else.  This script can then be set up, for example,
52 # to add additional entries to @INC.
53 #
54 #USE_SITECUST   = define
55
56 #
57 # uncomment to enable multiple interpreters.  This is need for fork()
58 # emulation and for thread support.
59 #
60 USE_MULTI       = define
61
62 #
63 # Beginnings of interpreter cloning/threads; now reasonably complete.
64 # This should be enabled to get the fork() emulation.  This needs
65 # USE_MULTI as well.
66 #
67 USE_ITHREADS    = define
68
69 #
70 # uncomment to enable the implicit "host" layer for all system calls
71 # made by perl.  This needs USE_MULTI above.  This is also needed to
72 # get fork().
73 #
74 USE_IMP_SYS     = define
75
76 #
77 # Comment out next assign to disable perl's I/O subsystem and use compiler's 
78 # stdio for IO - depending on your compiler vendor and run time library you may 
79 # then get a number of fails from make test i.e. bugs - complain to them not us ;-). 
80 # You will also be unable to take full advantage of perl5.8's support for multiple 
81 # encodings and may see lower IO performance. You have been warned.
82 USE_PERLIO      = define
83
84 #
85 # Comment this out if you don't want to enable large file support for
86 # some reason.  Should normally only be changed to maintain compatibility
87 # with an older release of perl.
88 USE_LARGE_FILES = define
89
90 #
91 # uncomment one of the following lines if you are using either
92 # Visual C++ 2.x or Visual C++ 6.x (aka Visual Studio 98)
93 #
94 #CCTYPE         = MSVC20
95 CCTYPE          = MSVC60
96
97 #
98 # uncomment next line if you want debug version of perl (big,slow)
99 # If not enabled, we automatically try to use maximum optimization
100 # with all compilers that are known to have a working optimizer.
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.cpan.org/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 want to have the crypt() builtin function implemented, leave this or
126 # CRYPT_LIB uncommented.  The fcrypt.c file named here contains a suitable
127 # version of des_fcrypt().
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 this to enable debugging mstats
149 # This must be enabled to use the Devel::Peek::mstat() function.  This cannot
150 # be enabled without PERL_MALLOC as well.
151 #
152 #DEBUG_MSTATS   = define
153
154 #
155 #
156 # set the install locations of the compiler include/libraries
157 # Running VCVARS32.BAT is *required* when using Visual C.
158 # Some versions of Visual C don't define MSVCDIR in the environment,
159 # so you may have to set CCHOME explicitly (spaces in the path name should
160 # not be quoted)
161 #
162 #CCHOME         = f:\msvc20
163 CCHOME          = $(MSVCDIR)
164 CCINCDIR        = $(CCHOME)\include
165 CCLIBDIR        = $(CCHOME)\lib
166
167 #
168 # Additional compiler flags can be specified here.
169 #
170
171 #
172 # Adding -DPERL_HASH_SEED_EXPLICIT will disable randomization of Perl's
173 # internal hash function unless the PERL_HASH_SEED environment variable is set.
174 # Alternatively, adding -DNO_HASH_SEED will completely disable the
175 # randomization feature. 
176 # The latter is required to maintain binary compatibility with Perl 5.8.0.
177 #
178 #BUILDOPT       = $(BUILDOPT) -DPERL_HASH_SEED_EXPLICIT
179 #BUILDOPT       = $(BUILDOPT) -DNO_HASH_SEED
180
181 #
182 # This should normally be disabled.  Adding -DPERL_POLLUTE enables support
183 # for old symbols by default, at the expense of extreme pollution.  You most
184 # probably just want to build modules that won't compile with
185 #         perl Makefile.PL POLLUTE=1
186 # instead of enabling this.  Please report such modules to the respective
187 # authors.
188 #
189 #BUILDOPT       = $(BUILDOPT) -DPERL_POLLUTE
190
191 #
192 # This should normally be disabled.  Enabling it will disable the File::Glob
193 # implementation of CORE::glob.
194 #
195 #BUILDOPT       = $(BUILDOPT) -DPERL_EXTERNAL_GLOB
196
197 #
198 # This should normally be disabled.  Enabling it causes perl to read scripts
199 # in text mode (which is the 5.005 behavior) and will break ByteLoader.
200 #
201 #BUILDOPT       = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS
202
203 #
204 # specify semicolon-separated list of extra directories that modules will
205 # look for libraries (spaces in path names need not be quoted)
206 #
207 EXTRALIBDIRS    =
208
209 #
210 # set this to your email address (perl will guess a value from
211 # from your loginname and your hostname, which may not be right)
212 #
213 #EMAIL          =
214
215 ##
216 ## Build configuration ends.
217 ##
218
219 ##################### CHANGE THESE ONLY IF YOU MUST #####################
220
221 !IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
222 D_CRYPT         = undef
223 !ELSE
224 D_CRYPT         = define
225 CRYPT_FLAG      = -DHAVE_DES_FCRYPT
226 !ENDIF
227
228 !IF "$(USE_IMP_SYS)" == "define"
229 PERL_MALLOC     = undef
230 DEBUG_MSTATS    = undef
231 !ENDIF
232
233 !IF "$(PERL_MALLOC)" == ""
234 PERL_MALLOC     = undef
235 DEBUG_MSTATS    = undef
236 !ENDIF
237
238 !IF "$(DEBUG_MSTATS)" == ""
239 DEBUG_MSTATS    = undef
240 !ENDIF
241
242 !IF "$(DEBUG_MSTATS)" == "define"
243 BUILDOPT        = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS
244 !ENDIF
245
246 !IF "$(USE_SITECUST)" == ""
247 USE_SITECUST    = undef
248 !ENDIF
249
250 !IF "$(USE_MULTI)" == ""
251 USE_MULTI       = undef
252 !ENDIF
253
254 !IF "$(USE_ITHREADS)" == ""
255 USE_ITHREADS    = undef
256 !ENDIF
257
258 !IF "$(USE_IMP_SYS)" == ""
259 USE_IMP_SYS     = undef
260 !ENDIF
261
262 !IF "$(USE_PERLIO)" == ""
263 USE_PERLIO      = undef
264 !ENDIF
265
266 !IF "$(USE_LARGE_FILES)" == ""
267 USE_LARGE_FILES = undef
268 !ENDIF
269
270 !IF "$(USE_PERLCRT)" == ""
271 USE_PERLCRT     = undef
272 !ENDIF
273
274 !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef"
275 USE_MULTI       = define
276 !ENDIF
277
278 !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef"
279 USE_MULTI       = define
280 !ENDIF
281
282 !IF "$(USE_SITECUST)" == "define"
283 BUILDOPT        = $(BUILDOPT) -DUSE_SITECUSTOMIZE
284 !ENDIF
285
286 !IF "$(USE_MULTI)" != "undef"
287 BUILDOPT        = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT
288 !ENDIF
289
290 !IF "$(USE_IMP_SYS)" != "undef"
291 BUILDOPT        = $(BUILDOPT) -DPERL_IMPLICIT_SYS
292 !ENDIF
293
294 !IF "$(PROCESSOR_ARCHITECTURE)" == ""
295 PROCESSOR_ARCHITECTURE  = x86
296 !ENDIF
297
298 !IF "$(WIN64)" == ""
299 !IF "$(PROCESSOR_ARCHITEW6432)" != ""
300 PROCESSOR_ARCHITECTURE  = $(PROCESSOR_ARCHITEW6432)
301 WIN64                   = define
302 !ELSE
303 !IF "$(PROCESSOR_ARCHITECTURE)" == "IA64"
304 WIN64                   = define
305 !ELSE
306 WIN64                   = undef
307 !ENDIF
308 !ENDIF
309 !ENDIF
310
311 !IF "$(USE_MULTI)" == "define"
312 ARCHNAME        = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi
313 !ELSE
314 !IF "$(USE_PERLIO)" == "define"
315 ARCHNAME        = MSWin32-$(PROCESSOR_ARCHITECTURE)-perlio
316 !ELSE
317 ARCHNAME        = MSWin32-$(PROCESSOR_ARCHITECTURE)
318 !ENDIF
319 !ENDIF
320
321 !IF "$(USE_PERLIO)" == "define"
322 BUILDOPT        = $(BUILDOPT) -DUSE_PERLIO
323 !ENDIF
324
325 !IF "$(USE_ITHREADS)" == "define"
326 ARCHNAME        = $(ARCHNAME)-thread
327 !ENDIF
328
329 # Visual Studio 98 specific
330 !IF "$(CCTYPE)" == "MSVC60"
331
332 # VC 6.0 can load the socket dll on demand.  Makes the test suite
333 # run in about 10% less time.
334 DELAYLOAD       = -DELAYLOAD:ws2_32.dll -DELAYLOAD:shell32.dll delayimp.lib
335 !ENDIF
336
337 ARCHDIR         = ..\lib\$(ARCHNAME)
338 COREDIR         = ..\lib\CORE
339 AUTODIR         = ..\lib\auto
340 LIBDIR          = ..\lib
341 EXTDIR          = ..\ext
342 PODDIR          = ..\pod
343 EXTUTILSDIR     = $(LIBDIR)\ExtUtils
344
345 #
346 INST_SCRIPT     = $(INST_TOP)$(INST_VER)\bin
347 INST_BIN        = $(INST_SCRIPT)$(INST_ARCH)
348 INST_LIB        = $(INST_TOP)$(INST_VER)\lib
349 INST_ARCHLIB    = $(INST_LIB)$(INST_ARCH)
350 INST_COREDIR    = $(INST_ARCHLIB)\CORE
351 INST_POD        = $(INST_LIB)\pod
352 INST_HTML       = $(INST_TOP)$(INST_VER)\html
353
354 #
355 # Programs to compile, build .lib files and link
356 #
357
358 CC              = cl
359 LINK32          = link
360 LIB32           = $(LINK32) -lib
361 RSC             = rc
362
363 #
364 # Options
365 #
366
367 INCLUDES        = -I$(COREDIR) -I.\include -I. -I..
368 #PCHFLAGS       = -Fpc:\temp\vcmoduls.pch -YX
369 DEFINES         = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG)
370 LOCDEFS         = -DPERLDLL -DPERL_CORE
371 SUBSYS          = console
372 CXX_FLAG        = -TP -GX
373
374 !IF "$(USE_PERLCRT)" != "define"
375 LIBC    = msvcrt.lib
376 !ELSE
377 LIBC    = PerlCRT.lib
378 !ENDIF
379
380 !IF  "$(CFG)" == "Debug"
381 !  IF "$(CCTYPE)" == "MSVC20"
382 OPTIMIZE        = -Od -MD -Z7 -DDEBUGGING
383 !  ELSE
384 OPTIMIZE        = -Od -MD -Zi -DDEBUGGING
385 !  ENDIF
386 LINK_DBG        = -debug
387 !ELSE
388 OPTIMIZE        = -MD -Zi -DNDEBUG
389 # we enable debug symbols in release builds also
390 LINK_DBG        = -debug -opt:ref,icf
391 # you may want to enable this if you want COFF symbols in the executables
392 # in addition to the PDB symbols.  The default Dr. Watson that ships with
393 # Windows can use the the former but not latter.  The free WinDbg can be
394 # installed to get better stack traces from just the PDB symbols, so we
395 # avoid the bloat of COFF symbols by default.
396 #LINK_DBG       = $(LINK_DBG) -debugtype:both
397 !  IF "$(WIN64)" == "define"
398 # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG)
399 OPTIMIZE        = $(OPTIMIZE) -Ox -GL
400 LINK_DBG        = $(LINK_DBG) -ltcg
401 !  ELSE
402 # -O1 yields smaller code, which turns out to be faster than -O2 on x86
403 OPTIMIZE        = $(OPTIMIZE) -O1
404 #OPTIMIZE       = $(OPTIMIZE) -O2
405 !  ENDIF
406 !ENDIF
407
408 !IF "$(WIN64)" == "define"
409 DEFINES         = $(DEFINES) -DWIN64 -DCONSERVATIVE
410 OPTIMIZE        = $(OPTIMIZE) -Wp64 -Op
411 !ENDIF
412
413 !IF "$(USE_PERLCRT)" != "define"
414 BUILDOPT        = $(BUILDOPT) -DPERL_MSVCRT_READFIX
415 !ENDIF
416
417 LIBBASEFILES    = $(CRYPT_LIB) \
418                 oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \
419                 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
420                 netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \
421                 version.lib
422
423 # win64 doesn't have some libs
424 !IF "$(WIN64)" != "define"
425 LIBBASEFILES    = $(LIBBASEFILES) odbc32.lib odbccp32.lib
426 !ENDIF
427
428 # we add LIBC here, since we may be using PerlCRT.dll
429 LIBFILES        = $(LIBBASEFILES) $(LIBC)
430
431 CFLAGS          = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \
432                 $(PCHFLAGS) $(OPTIMIZE)
433 LINK_FLAGS      = -nologo -nodefaultlib $(LINK_DBG) \
434                 -libpath:"$(INST_COREDIR)" \
435                 -machine:$(PROCESSOR_ARCHITECTURE)
436 OBJOUT_FLAG     = -Fo
437 EXEOUT_FLAG     = -Fe
438
439 CFLAGS_O        = $(CFLAGS) $(BUILDOPT)
440
441 #################### do not edit below this line #######################
442 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
443
444 o = .obj
445
446 #
447 # Rules
448 #
449
450 .SUFFIXES : .c $(o) .dll .lib .exe .rc .res
451
452 .c$(o):
453         $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $<
454
455 .y.c:
456         $(NOOP)
457
458 $(o).dll:
459         $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
460             -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
461
462 .rc.res:
463         $(RSC) -i.. $<
464
465 #
466 # various targets
467
468 # makedef.pl must be updated if this changes, and this should normally
469 # only change when there is an incompatible revision of the public API.
470 PERLIMPLIB      = ..\perl59.lib
471 PERLDLL         = ..\perl59.dll
472
473 MINIPERL        = ..\miniperl.exe
474 MINIDIR         = .\mini
475 PERLEXE         = ..\perl.exe
476 WPERLEXE        = ..\wperl.exe
477 GLOBEXE         = ..\perlglob.exe
478 CONFIGPM        = ..\lib\Config.pm ..\lib\Config_heavy.pl
479 MINIMOD         = ..\lib\ExtUtils\Miniperl.pm
480 X2P             = ..\x2p\a2p.exe
481
482 # Unicode data files generated by mktables
483 UNIDATAFILES     = ..\lib\unicore\Canonical.pl ..\lib\unicore\Exact.pl \
484                    ..\lib\unicore\Properties ..\lib\unicore\Decomposition.pl \
485                    ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \
486                    ..\lib\unicore\PVA.pl
487
488 # Directories of Unicode data files generated by mktables
489 UNIDATADIR1     = ..\lib\unicore\To
490 UNIDATADIR2     = ..\lib\unicore\lib
491
492 PERLEXE_ICO     = .\perlexe.ico
493 PERLEXE_RES     = .\perlexe.res
494 PERLDLL_RES     =
495
496 # Nominate a target which causes extensions to be re-built
497 # This used to be $(PERLEXE), but at worst it is the .dll that they depend
498 # on and really only the interface - i.e. the .def file used to export symbols
499 # from the .dll
500 PERLDEP         = perldll.def
501
502 PL2BAT          = bin\pl2bat.pl
503 GLOBBAT         = bin\perlglob.bat
504
505 UTILS           =                       \
506                 ..\utils\h2ph           \
507                 ..\utils\splain         \
508                 ..\utils\dprofpp        \
509                 ..\utils\perlbug        \
510                 ..\utils\pl2pm          \
511                 ..\utils\c2ph           \
512                 ..\utils\pstruct        \
513                 ..\utils\h2xs           \
514                 ..\utils\perldoc        \
515                 ..\utils\perlcc         \
516                 ..\utils\perlivp        \
517                 ..\utils\libnetcfg      \
518                 ..\utils\enc2xs         \
519                 ..\utils\piconv         \
520                 ..\utils\corelist       \
521                 ..\utils\cpan           \
522                 ..\utils\xsubpp         \
523                 ..\utils\prove          \
524                 ..\utils\instmodsh      \
525                 ..\pod\checkpods        \
526                 ..\pod\pod2html         \
527                 ..\pod\pod2latex        \
528                 ..\pod\pod2man          \
529                 ..\pod\pod2text         \
530                 ..\pod\pod2usage        \
531                 ..\pod\podchecker       \
532                 ..\pod\podselect        \
533                 ..\x2p\find2perl        \
534                 ..\x2p\psed             \
535                 ..\x2p\s2p              \
536                 bin\exetype.pl          \
537                 bin\runperl.pl          \
538                 bin\pl2bat.pl           \
539                 bin\perlglob.pl         \
540                 bin\search.pl
541
542 MAKE            = nmake -nologo
543 MAKE_BARE       = nmake
544
545 !IF "$(WIN64)" == "define"
546 CFGSH_TMPL      = config.vc64
547 CFGH_TMPL       = config_H.vc64
548 !ELSE
549 CFGSH_TMPL      = config.vc
550 CFGH_TMPL       = config_H.vc
551 !ENDIF
552
553 XCOPY           = xcopy /f /r /i /d
554 RCOPY           = xcopy /f /r /i /e /d
555 NOOP            = @rem
556 NULL            =
557
558 DEL             = del
559
560 #
561 # filenames given to xsubpp must have forward slashes (since it puts
562 # full pathnames in #line strings)
563 XSUBPP          = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \
564                 -C++ -prototypes
565
566 MICROCORE_SRC   =               \
567                 ..\av.c         \
568                 ..\deb.c        \
569                 ..\doio.c       \
570                 ..\doop.c       \
571                 ..\dump.c       \
572                 ..\globals.c    \
573                 ..\gv.c         \
574                 ..\hv.c         \
575                 ..\locale.c     \
576                 ..\mg.c         \
577                 ..\numeric.c    \
578                 ..\op.c         \
579                 ..\pad.c        \
580                 ..\perl.c       \
581                 ..\perlapi.c    \
582                 ..\perly.c      \
583                 ..\pp.c         \
584                 ..\pp_ctl.c     \
585                 ..\pp_hot.c     \
586                 ..\pp_pack.c    \
587                 ..\pp_sort.c    \
588                 ..\pp_sys.c     \
589                 ..\reentr.c     \
590                 ..\regcomp.c    \
591                 ..\regexec.c    \
592                 ..\run.c        \
593                 ..\scope.c      \
594                 ..\sv.c         \
595                 ..\taint.c      \
596                 ..\toke.c       \
597                 ..\universal.c  \
598                 ..\utf8.c       \
599                 ..\util.c       \
600                 ..\xsutils.c
601
602 EXTRACORE_SRC   = $(EXTRACORE_SRC) perllib.c
603
604 !IF "$(PERL_MALLOC)" == "define"
605 EXTRACORE_SRC   = $(EXTRACORE_SRC) ..\malloc.c
606 !ENDIF
607
608 EXTRACORE_SRC   = $(EXTRACORE_SRC) ..\perlio.c
609
610 WIN32_SRC       =               \
611                 .\win32.c       \
612                 .\win32sck.c    \
613                 .\win32thread.c
614
615 # We need this for miniperl build unless we override canned 
616 # config.h #define building mini\*
617 #!IF "$(USE_PERLIO)" == "define"
618 WIN32_SRC       = $(WIN32_SRC) .\win32io.c
619 #!ENDIF
620
621 !IF "$(CRYPT_SRC)" != ""
622 WIN32_SRC       = $(WIN32_SRC) .\$(CRYPT_SRC)
623 !ENDIF
624
625 DLL_SRC         = $(DYNALOADER).c
626
627 X2P_SRC         =               \
628                 ..\x2p\a2p.c    \
629                 ..\x2p\hash.c   \
630                 ..\x2p\str.c    \
631                 ..\x2p\util.c   \
632                 ..\x2p\walk.c
633
634 CORE_NOCFG_H    =               \
635                 ..\av.h         \
636                 ..\cop.h        \
637                 ..\cv.h         \
638                 ..\dosish.h     \
639                 ..\embed.h      \
640                 ..\form.h       \
641                 ..\gv.h         \
642                 ..\handy.h      \
643                 ..\hv.h         \
644                 ..\iperlsys.h   \
645                 ..\mg.h         \
646                 ..\nostdio.h    \
647                 ..\op.h         \
648                 ..\opcode.h     \
649                 ..\perl.h       \
650                 ..\perlapi.h    \
651                 ..\perlsdio.h   \
652                 ..\perlsfio.h   \
653                 ..\perly.h      \
654                 ..\pp.h         \
655                 ..\proto.h      \
656                 ..\regcomp.h    \
657                 ..\regexp.h     \
658                 ..\scope.h      \
659                 ..\sv.h         \
660                 ..\thread.h     \
661                 ..\unixish.h    \
662                 ..\utf8.h       \
663                 ..\util.h       \
664                 ..\warnings.h   \
665                 ..\XSUB.h       \
666                 ..\EXTERN.h     \
667                 ..\perlvars.h   \
668                 ..\intrpvar.h   \
669                 ..\thrdvar.h    \
670                 .\include\dirent.h      \
671                 .\include\netdb.h       \
672                 .\include\sys\socket.h  \
673                 .\win32.h
674
675 CORE_H          = $(CORE_NOCFG_H) .\config.h
676
677 MICROCORE_OBJ   = $(MICROCORE_SRC:.c=.obj)
678 CORE_OBJ        = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj)
679 WIN32_OBJ       = $(WIN32_SRC:.c=.obj)
680 MINICORE_OBJ    = $(MICROCORE_OBJ:..\=.\mini\)  \
681                   $(MINIDIR)\miniperlmain$(o)   \
682                   $(MINIDIR)\perlio$(o)
683 MINIWIN32_OBJ   = $(WIN32_OBJ:.\=.\mini\)
684 MINI_OBJ        = $(MINICORE_OBJ) $(MINIWIN32_OBJ)
685 DLL_OBJ         = $(DLL_SRC:.c=.obj)
686 X2P_OBJ         = $(X2P_SRC:.c=.obj)
687
688 PERLDLL_OBJ     = $(CORE_OBJ)
689 PERLEXE_OBJ     = perlmain$(o)
690
691 PERLDLL_OBJ     = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
692 #PERLEXE_OBJ    = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
693
694 !IF "$(USE_SETARGV)" != ""
695 SETARGV_OBJ     = setargv$(o)
696 !ENDIF
697
698 DYNALOADER              = $(EXTDIR)\DynaLoader\DynaLoader
699 SOCKET                  = $(EXTDIR)\Socket\Socket
700 FCNTL                   = $(EXTDIR)\Fcntl\Fcntl
701 OPCODE                  = $(EXTDIR)\Opcode\Opcode
702 SDBM_FILE               = $(EXTDIR)\SDBM_File\SDBM_File
703 IO                      = $(EXTDIR)\IO\IO
704 POSIX                   = $(EXTDIR)\POSIX\POSIX
705 ATTRS                   = $(EXTDIR)\attrs\attrs
706 THREAD                  = $(EXTDIR)\Thread\Thread
707 B                       = $(EXTDIR)\B\B
708 RE                      = $(EXTDIR)\re\re
709 DUMPER                  = $(EXTDIR)\Data\Dumper\Dumper
710 ERRNO                   = $(EXTDIR)\Errno\Errno
711 PEEK                    = $(EXTDIR)\Devel\Peek\Peek
712 BYTELOADER              = $(EXTDIR)\ByteLoader\ByteLoader
713 DPROF                   = $(EXTDIR)\Devel\DProf\DProf
714 GLOB                    = $(EXTDIR)\File\Glob\Glob
715 HOSTNAME                = $(EXTDIR)\Sys\Hostname\Hostname
716 STORABLE                = $(EXTDIR)\Storable\Storable
717 FILTER                  = $(EXTDIR)\Filter\Util\Call\Call
718 ENCODE                  = $(EXTDIR)\Encode\Encode
719 MD5                     = $(EXTDIR)\Digest\MD5\MD5
720 PERLIOSCALAR            = $(EXTDIR)\PerlIO\scalar\scalar
721 MIMEBASE64              = $(EXTDIR)\MIME\Base64\Base64
722 TIMEHIRES               = $(EXTDIR)\Time\HiRes\HiRes
723 CWD                     = $(EXTDIR)\Cwd\Cwd
724 LISTUTIL                = $(EXTDIR)\List\Util\Util
725 PERLIOVIA               = $(EXTDIR)\PerlIO\via\via
726 XSAPITEST               = $(EXTDIR)\XS\APItest\APItest
727 XSTYPEMAP               = $(EXTDIR)\XS\Typemap\Typemap
728 UNICODENORMALIZE        = $(EXTDIR)\Unicode\Normalize\Normalize
729 MATHBIGINTFASTCALC      = $(EXTDIR)\Math\BigInt\FastCalc\FastCalc
730 COMPRESSZLIB            = $(EXTDIR)\Compress\Zlib\Zlib
731 WIN32_DIR               = ext\Win32
732
733 SOCKET_DLL              = $(AUTODIR)\Socket\Socket.dll
734 FCNTL_DLL               = $(AUTODIR)\Fcntl\Fcntl.dll
735 OPCODE_DLL              = $(AUTODIR)\Opcode\Opcode.dll
736 SDBM_FILE_DLL           = $(AUTODIR)\SDBM_File\SDBM_File.dll
737 IO_DLL                  = $(AUTODIR)\IO\IO.dll
738 POSIX_DLL               = $(AUTODIR)\POSIX\POSIX.dll
739 ATTRS_DLL               = $(AUTODIR)\attrs\attrs.dll
740 THREAD_DLL              = $(AUTODIR)\Thread\Thread.dll
741 B_DLL                   = $(AUTODIR)\B\B.dll
742 DUMPER_DLL              = $(AUTODIR)\Data\Dumper\Dumper.dll
743 PEEK_DLL                = $(AUTODIR)\Devel\Peek\Peek.dll
744 RE_DLL                  = $(AUTODIR)\re\re.dll
745 BYTELOADER_DLL          = $(AUTODIR)\ByteLoader\ByteLoader.dll
746 DPROF_DLL               = $(AUTODIR)\Devel\DProf\DProf.dll
747 GLOB_DLL                = $(AUTODIR)\File\Glob\Glob.dll
748 HOSTNAME_DLL            = $(AUTODIR)\Sys\Hostname\Hostname.dll
749 STORABLE_DLL            = $(AUTODIR)\Storable\Storable.dll
750 FILTER_DLL              = $(AUTODIR)\Filter\Util\Call\Call.dll
751 ENCODE_DLL              = $(AUTODIR)\Encode\Encode.dll
752 MD5_DLL                 = $(AUTODIR)\Digest\MD5\MD5.dll
753 PERLIOSCALAR_DLL        = $(AUTODIR)\PerlIO\scalar\scalar.dll
754 MIMEBASE64_DLL          = $(AUTODIR)\MIME\Base64\Base64.dll
755 TIMEHIRES_DLL           = $(AUTODIR)\Time\HiRes\HiRes.dll
756 CWD_DLL                 = $(AUTODIR)\Cwd\Cwd.dll
757 LISTUTIL_DLL            = $(AUTODIR)\List\Util\Util.dll
758 PERLIOVIA_DLL           = $(AUTODIR)\PerlIO\via\via.dll
759 XSAPITEST_DLL           = $(AUTODIR)\XS\APItest\APItest.dll
760 XSTYPEMAP_DLL           = $(AUTODIR)\XS\Typemap\Typemap.dll
761 UNICODENORMALIZE_DLL    = $(AUTODIR)\Unicode\Normalize\Normalize.dll
762 MATHBIGINTFASTCALC_DLL  = $(AUTODIR)\Math\BigInt\FastCalc\FastCalc.dll
763 COMPRESSZLIB_DLL        = $(AUTODIR)\Compress\Zlib\Zlib.dll
764 WIN32_DLL               = $(AUTODIR)\Win32\Win32.dll
765
766 EXTENSION_C     =               \
767                 $(SOCKET).c     \
768                 $(FCNTL).c      \
769                 $(OPCODE).c     \
770                 $(SDBM_FILE).c  \
771                 $(IO).c         \
772                 $(POSIX).c      \
773                 $(ATTRS).c      \
774                 $(THREAD).c     \
775                 $(RE).c         \
776                 $(DUMPER).c     \
777                 $(PEEK).c       \
778                 $(B).c          \
779                 $(BYTELOADER).c \
780                 $(DPROF).c      \
781                 $(GLOB).c       \
782                 $(HOSTNAME).c   \
783                 $(STORABLE).c   \
784                 $(FILTER).c     \
785                 $(ENCODE).c     \
786                 $(MD5).c        \
787                 $(PERLIOSCALAR).c       \
788                 $(MIMEBASE64).c \
789                 $(TIMEHIRES).c  \
790                 $(CWD).c        \
791                 $(LISTUTIL).c   \
792                 $(PERLIOVIA).c  \
793                 $(XSAPITEST).c  \
794                 $(XSTYPEMAP).c  \
795                 $(UNICODENORMALIZE).c   \
796                 $(MATHBIGINTFASTCALC).c \
797                 $(COMPRESSZLIB).c       \
798                 $(WIN32_DIR).c
799
800 EXTENSION_DLL   =               \
801                 $(SOCKET_DLL)   \
802                 $(FCNTL_DLL)    \
803                 $(OPCODE_DLL)   \
804                 $(SDBM_FILE_DLL)\
805                 $(IO_DLL)       \
806                 $(POSIX_DLL)    \
807                 $(ATTRS_DLL)    \
808                 $(DUMPER_DLL)   \
809                 $(PEEK_DLL)     \
810                 $(B_DLL)        \
811                 $(RE_DLL)       \
812                 $(THREAD_DLL)   \
813                 $(BYTELOADER_DLL)       \
814                 $(DPROF_DLL)    \
815                 $(GLOB_DLL)     \
816                 $(HOSTNAME_DLL) \
817                 $(STORABLE_DLL) \
818                 $(FILTER_DLL)   \
819                 $(ENCODE_DLL)   \
820                 $(MD5_DLL)      \
821                 $(PERLIOSCALAR_DLL) \
822                 $(MIMEBASE64_DLL) \
823                 $(TIMEHIRES_DLL)  \
824                 $(CWD_DLL)      \
825                 $(LISTUTIL_DLL) \
826                 $(PERLIOVIA_DLL)        \
827                 $(XSAPITEST_DLL)        \
828                 $(XSTYPEMAP_DLL)        \
829                 $(UNICODENORMALIZE_DLL) \
830                 $(MATHBIGINTFASTCALC_DLL)       \
831                 $(COMPRESSZLIB_DLL)     \
832                 $(WIN32_DLL)
833
834 POD2HTML        = $(PODDIR)\pod2html
835 POD2MAN         = $(PODDIR)\pod2man
836 POD2LATEX       = $(PODDIR)\pod2latex
837 POD2TEXT        = $(PODDIR)\pod2text
838
839 CFG_VARS        =                                       \
840                 "INST_DRV=$(INST_DRV)"                  \
841                 "INST_TOP=$(INST_TOP)"                  \
842                 "INST_VER=$(INST_VER)"                  \
843                 "INST_ARCH=$(INST_ARCH)"                \
844                 "archname=$(ARCHNAME)"                  \
845                 "cc=$(CC)"                              \
846                 "ld=$(LINK32)"                          \
847                 "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)"       \
848                 "cf_email=$(EMAIL)"                     \
849                 "d_crypt=$(D_CRYPT)"                    \
850                 "d_mymalloc=$(PERL_MALLOC)"             \
851                 "libs=$(LIBFILES)"                      \
852                 "incpath=$(CCINCDIR:"=\")"              \
853                 "libperl=$(PERLIMPLIB:..\=)"            \
854                 "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")"  \
855                 "libc=$(LIBC)"                          \
856                 "make=$(MAKE_BARE)"                             \
857                 "static_ext=$(STATIC_EXT)"              \
858                 "usethreads=$(USE_ITHREADS)"            \
859                 "useithreads=$(USE_ITHREADS)"           \
860                 "usemultiplicity=$(USE_MULTI)"          \
861                 "useperlio=$(USE_PERLIO)"               \
862                 "uselargefiles=$(USE_LARGE_FILES)"      \
863                 "usesitecustomize=$(USE_SITECUST)"      \
864                 "LINK_FLAGS=$(LINK_FLAGS:"=\")"         \
865                 "optimize=$(OPTIMIZE:"=\")"
866
867 #
868 # Top targets
869 #
870
871 all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \
872         $(X2P) Extensions
873         @echo   Everything is up to date. '$(MAKE_BARE) test' to run test suite.
874
875 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
876
877 #------------------------------------------------------------
878
879 $(GLOBEXE) : perlglob$(o)
880         $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
881             perlglob$(o) setargv$(o)
882
883 perlglob$(o)  : perlglob.c
884
885 config.w32 : $(CFGSH_TMPL)
886         copy $(CFGSH_TMPL) config.w32
887
888 .\config.h : $(CFGH_TMPL)
889         -del /f config.h
890         copy $(CFGH_TMPL) config.h
891
892 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL
893         $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh
894
895 # this target is for when changes to the main config.sh happen
896 # edit config.{b,v,g}c and make this target once for each supported
897 # compiler (e.g. `nmake CCTYPE=BORLAND regen_config_h`)
898 regen_config_h:
899         perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh
900         cd ..
901         -del /f perl.exe perl*.dll
902         perl configpm
903         cd win32
904         -del /f $(CFGH_TMPL)
905         -mkdir $(COREDIR)
906         -perl config_h.PL "INST_VER=$(INST_VER)"
907         rename config.h $(CFGH_TMPL)
908
909 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
910         cd ..
911         miniperl configpm
912         cd win32
913         if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
914         $(XCOPY) ..\*.h $(COREDIR)\*.*
915         $(XCOPY) *.h $(COREDIR)\*.*
916         $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.*
917         $(RCOPY) include $(COREDIR)\*.*
918         -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)"
919         if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM)
920
921 $(MINIPERL) : $(MINIDIR) $(MINI_OBJ)
922         $(LINK32) -subsystem:console -out:$@ @<<
923         $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ)
924 <<
925
926 $(MINIDIR) :
927         if not exist "$(MINIDIR)" mkdir "$(MINIDIR)"
928
929 $(MINICORE_OBJ) : $(CORE_NOCFG_H)
930         $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c
931
932 $(MINIWIN32_OBJ) : $(CORE_NOCFG_H)
933         $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c
934
935 # -DPERL_IMPLICIT_SYS needs C++ for perllib.c
936 # This is the only file that depends on perlhost.h, vmem.h, and vdir.h
937 !IF "$(USE_IMP_SYS)" == "define"
938 perllib$(o)     : perllib.c .\perlhost.h .\vdir.h .\vmem.h
939         $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c
940 !ENDIF
941
942 # 1. we don't want to rebuild miniperl.exe when config.h changes
943 # 2. we don't want to rebuild miniperl.exe with non-default config.h
944 $(MINI_OBJ)     : $(CORE_NOCFG_H)
945
946 $(WIN32_OBJ)    : $(CORE_H)
947 $(CORE_OBJ)     : $(CORE_H)
948 $(DLL_OBJ)      : $(CORE_H)
949 $(X2P_OBJ)      : $(CORE_H)
950
951 perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl
952         $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \
953             CCTYPE=$(CCTYPE) > perldll.def
954
955 $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES)
956         $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<<
957                 $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES)
958 <<
959         $(XCOPY) $(PERLIMPLIB) $(COREDIR)
960
961 $(PERLEXE_ICO): $(MINIPERL) makeico.pl
962         $(MINIPERL) makeico.pl > $@
963
964 $(PERLEXE_RES): perlexe.rc $(PERLEXE_ICO)
965
966 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
967         cd ..
968         miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
969         cd win32
970
971 ..\x2p\a2p$(o) : ..\x2p\a2p.c
972         $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c
973
974 ..\x2p\hash$(o) : ..\x2p\hash.c
975         $(CC) -I..\x2p  $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c
976
977 ..\x2p\str$(o) : ..\x2p\str.c
978         $(CC) -I..\x2p  $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c
979
980 ..\x2p\util$(o) : ..\x2p\util.c
981         $(CC) -I..\x2p  $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c
982
983 ..\x2p\walk$(o) : ..\x2p\walk.c
984         $(CC) -I..\x2p  $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c
985
986 $(X2P) : $(MINIPERL) $(X2P_OBJ)
987         $(MINIPERL) ..\x2p\find2perl.PL
988         $(MINIPERL) ..\x2p\s2p.PL
989         $(LINK32) -subsystem:console -out:$@ @<<
990                 $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ)
991 <<
992
993 perlmain.c : runperl.c
994         copy runperl.c perlmain.c
995
996 perlmain$(o) : perlmain.c
997         $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c
998
999 $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES)
1000         $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \
1001             $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES)
1002         copy $(PERLEXE) $(WPERLEXE)
1003         $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS
1004         copy splittree.pl ..
1005         $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1006
1007 $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
1008         if not exist $(AUTODIR) mkdir $(AUTODIR)
1009         cd $(EXTDIR)\$(*B)
1010         ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
1011         ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
1012         cd ..\..\win32
1013         $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
1014         $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
1015         cd $(EXTDIR)\$(*B)
1016         $(XSUBPP) dl_win32.xs > $(*B).c
1017         cd ..\..\win32
1018
1019 $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
1020         copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
1021
1022 #-------------------------------------------------------------------------------
1023 Extensions: buildext.pl $(PERLDEP) $(CONFIGPM)
1024         $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR)
1025         $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext
1026
1027 Extensions_clean: 
1028         -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) clean
1029         -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext clean
1030
1031 Extensions_realclean: 
1032         -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) $(EXTDIR) realclean
1033         -if exist $(MINIPERL) $(MINIPERL) -I..\lib buildext.pl $(MAKE) $(PERLDEP) ext realclean
1034
1035 #-------------------------------------------------------------------------------
1036
1037 doc: $(PERLEXE)
1038         $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
1039             --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \
1040             --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
1041
1042 # Note that this next section is parsed (and regenerated) by pod/buildtoc
1043 # so please check that script before making structural changes here
1044
1045 utils: $(PERLEXE) $(X2P)
1046         cd ..\utils
1047         $(MAKE) PERL=$(MINIPERL)
1048         cd ..\pod
1049         copy ..\vms\perlvms.pod .\perlvms.pod
1050         copy ..\README.aix      ..\pod\perlaix.pod
1051         copy ..\README.amiga    ..\pod\perlamiga.pod
1052         copy ..\README.apollo   ..\pod\perlapollo.pod
1053         copy ..\README.beos     ..\pod\perlbeos.pod
1054         copy ..\README.bs2000   ..\pod\perlbs2000.pod
1055         copy ..\README.ce       ..\pod\perlce.pod
1056         copy ..\README.cn       ..\pod\perlcn.pod
1057         copy ..\README.cygwin   ..\pod\perlcygwin.pod
1058         copy ..\README.dgux     ..\pod\perldgux.pod
1059         copy ..\README.dos      ..\pod\perldos.pod
1060         copy ..\README.epoc     ..\pod\perlepoc.pod
1061         copy ..\README.freebsd  ..\pod\perlfreebsd.pod
1062         copy ..\README.hpux     ..\pod\perlhpux.pod
1063         copy ..\README.hurd     ..\pod\perlhurd.pod
1064         copy ..\README.irix     ..\pod\perlirix.pod
1065         copy ..\README.jp       ..\pod\perljp.pod
1066         copy ..\README.ko       ..\pod\perlko.pod
1067         copy ..\README.machten  ..\pod\perlmachten.pod
1068         copy ..\README.macos    ..\pod\perlmacos.pod
1069         copy ..\README.macosx   ..\pod\perlmacosx.pod
1070         copy ..\README.mint     ..\pod\perlmint.pod
1071         copy ..\README.mpeix    ..\pod\perlmpeix.pod
1072         copy ..\README.netware  ..\pod\perlnetware.pod
1073         copy ..\README.openbsd  ..\pod\perlopenbsd.pod
1074         copy ..\README.os2      ..\pod\perlos2.pod
1075         copy ..\README.os390    ..\pod\perlos390.pod
1076         copy ..\README.os400    ..\pod\perlos400.pod
1077         copy ..\README.plan9    ..\pod\perlplan9.pod
1078         copy ..\README.qnx      ..\pod\perlqnx.pod
1079         copy ..\README.solaris  ..\pod\perlsolaris.pod
1080         copy ..\README.symbian  ..\pod\perlsymbian.pod
1081         copy ..\README.tru64    ..\pod\perltru64.pod
1082         copy ..\README.tw       ..\pod\perltw.pod
1083         copy ..\README.uts      ..\pod\perluts.pod
1084         copy ..\README.vmesa    ..\pod\perlvmesa.pod
1085         copy ..\README.vms      ..\pod\perlvms.pod
1086         copy ..\README.vos      ..\pod\perlvos.pod
1087         copy ..\README.win32    ..\pod\perlwin32.pod
1088         copy ..\pod\perl593delta.pod ..\pod\perldelta.pod
1089         $(MAKE) -f ..\win32\pod.mak converters
1090         cd ..\lib
1091         $(PERLEXE) lib_pm.PL
1092         cd ..\win32
1093         $(PERLEXE) $(PL2BAT) $(UTILS)
1094
1095 # Note that the pod cleanup in this next section is parsed (and regenerated
1096 # by pod/buildtoc so please check that script before making changes here
1097
1098 # the doubled rmdir calls are needed because older cmd shells
1099 # don't understand /q
1100 distclean: realclean
1101         -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
1102                 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
1103         -del /f *.def *.map
1104         -del /f $(EXTENSION_DLL)
1105         -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm
1106         -del /f $(EXTDIR)\DynaLoader\dl_win32.xs
1107         -del /f $(EXTDIR)\DynaLoader\DynaLoader.pm
1108         -del /f $(EXTDIR)\DynaLoader\XSLoader.pm
1109         -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm
1110         -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm
1111         -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm
1112         -del /f $(LIBDIR)\XSLoader.pm $(LIBDIR)\lib.pm
1113         -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm
1114         -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm
1115         -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm
1116         -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm
1117         -del /f $(LIBDIR)\ByteLoader.pm
1118         -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm
1119         -del /f $(LIBDIR)\Devel\PPPort.pm
1120         -del /f $(LIBDIR)\File\Glob.pm
1121         -del /f $(LIBDIR)\Storable.pm
1122         -del /f $(LIBDIR)\Digest\MD5.pm
1123         -del /f $(LIBDIR)\PerlIO\encoding.pm
1124         -del /f $(LIBDIR)\PerlIO\scalar.pm
1125         -del /f $(LIBDIR)\PerlIO\via.pm
1126         -del /f $(LIBDIR)\Sys\Hostname.pm
1127         -del /f $(LIBDIR)\Thread\Signal.pm $(LIBDIR)\Thread\Specific.pm
1128         -del /f $(LIBDIR)\threads\shared.pm
1129         -del /f $(LIBDIR)\Time\HiRes.pm
1130         -del /f $(LIBDIR)\Unicode\Normalize.pm
1131         -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm
1132         -del /f $(LIBDIR)\Win32.pm
1133         -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO
1134         -if exist $(LIBDIR)\IO rmdir /s $(LIBDIR)\IO
1135         -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B
1136         -if exist $(LIBDIR)\B rmdir /s $(LIBDIR)\B
1137         -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data
1138         -if exist $(LIBDIR)\Data rmdir /s $(LIBDIR)\Data
1139         -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode
1140         -if exist $(LIBDIR)\Encode rmdir /s $(LIBDIR)\Encode
1141         -if exist $(LIBDIR)\Filter\Util rmdir /s /q $(LIBDIR)\Filter\Util
1142         -if exist $(LIBDIR)\Filter\Util rmdir /s $(LIBDIR)\Filter\Util
1143         -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME
1144         -if exist $(LIBDIR)\MIME rmdir /s $(LIBDIR)\MIME
1145         -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List
1146         -if exist $(LIBDIR)\List rmdir /s $(LIBDIR)\List
1147         -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar
1148         -if exist $(LIBDIR)\Scalar rmdir /s $(LIBDIR)\Scalar
1149         -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys
1150         -if exist $(LIBDIR)\Sys rmdir /s $(LIBDIR)\Sys
1151         -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads
1152         -if exist $(LIBDIR)\threads rmdir /s $(LIBDIR)\threads
1153         -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS
1154         -if exist $(LIBDIR)\XS rmdir /s $(LIBDIR)\XS
1155         -cd $(PODDIR) && del /f *.html *.bat checkpods \
1156             perlaix.pod perlamiga.pod perlapollo.pod perlbeos.pod \
1157             perlbs2000.pod perlce.pod perlcn.pod perlcygwin.pod \
1158             perldelta.pod perldgux.pod perldos.pod perlepoc.pod \
1159             perlfreebsd.pod perlhpux.pod perlhurd.pod perlirix.pod \
1160             perljp.pod perlko.pod perlmachten.pod perlmacos.pod \
1161             perlmacosx.pod perlmint.pod perlmpeix.pod perlnetware.pod \
1162             perlopenbsd.pod perlos2.pod perlos390.pod perlos400.pod \
1163             perlplan9.pod perlqnx.pod perlsolaris.pod perlsymbian.pod \
1164             perltru64.pod perltw.pod perluts.pod perlvmesa.pod perlvms.pod \
1165             perlvms.pod perlvos.pod perlwin32.pod \
1166             pod2html pod2latex pod2man pod2text pod2usage \
1167             podchecker podselect
1168         -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \
1169             perldoc perlivp dprofpp perlcc libnetcfg enc2xs piconv cpan *.bat \
1170             xsubpp instmodsh prove corelist
1171         -cd ..\x2p && del /f find2perl s2p psed *.bat
1172         -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
1173         -del /f $(CONFIGPM)
1174         -del /f bin\*.bat
1175         -del /f $(PERLEXE_ICO) perl.base
1176         -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib
1177         -cd $(EXTDIR) && del /s *.def Makefile Makefile.old
1178         -if exist $(AUTODIR) rmdir /s /q $(AUTODIR)
1179         -if exist $(AUTODIR) rmdir /s $(AUTODIR)
1180         -if exist $(COREDIR) rmdir /s /q $(COREDIR)
1181         -if exist $(COREDIR) rmdir /s $(COREDIR)
1182
1183 install : all installbare installhtml
1184
1185 installbare : utils
1186         $(PERLEXE) ..\installperl
1187         if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.*
1188         $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
1189         if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.*
1190         if exist ..\x2p\a2p.pdb $(XCOPY) ..\x2p\a2p.pdb $(INST_BIN)\*.*
1191         $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.*
1192
1193 installhtml : doc
1194         $(RCOPY) html\*.* $(INST_HTML)\*.*
1195
1196 inst_lib : $(CONFIGPM)
1197         copy splittree.pl ..
1198         $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR)
1199         $(RCOPY) ..\lib $(INST_LIB)\*.*
1200
1201 $(UNIDATAFILES) : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables
1202         cd ..\lib\unicore && \
1203         ..\$(MINIPERL) -I.. mktables
1204
1205 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils $(UNIDATAFILES)
1206         $(XCOPY) $(MINIPERL) ..\t\$(NULL)
1207         if exist ..\t\perl.exe del /f ..\t\perl.exe
1208         rename ..\t\miniperl.exe perl.exe
1209         $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1210         attrib -r ..\t\*.*
1211         cd ..\t && \
1212         $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
1213
1214 test-prep : all utils
1215         $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1216         $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1217         $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1218
1219 test : test-prep
1220         cd ..\t
1221         $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1222         cd ..\win32
1223
1224 test-notty : test-prep
1225         set PERL_SKIP_TTY_TEST=1
1226         cd ..\t
1227         $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1228         cd ..\win32
1229
1230 _test : 
1231        $(XCOPY) $(PERLEXE) ..\t\$(NULL)
1232        $(XCOPY) $(PERLDLL) ..\t\$(NULL)
1233        $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
1234        cd ..\t
1235        $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES)
1236        cd ..\win32
1237
1238 # the doubled rmdir calls are needed because older cmd shells
1239 # don't understand /q
1240 _clean :
1241         -@$(DEL) miniperlmain$(o)
1242         -@$(DEL) $(MINIPERL)
1243         -@$(DEL) perlglob$(o)
1244         -@$(DEL) perlmain$(o)
1245         -@$(DEL) config.w32
1246         -@$(DEL) config.h
1247         -@$(DEL) $(GLOBEXE)
1248         -@$(DEL) $(PERLEXE)
1249         -@$(DEL) $(WPERLEXE)
1250         -@$(DEL) $(PERLDLL)
1251         -@$(DEL) $(CORE_OBJ)
1252         -if exist $(MINIDIR) rmdir /s /q $(MINIDIR)
1253         -if exist $(MINIDIR) rmdir /s $(MINIDIR)
1254         -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1)
1255         -if exist $(UNIDATADIR1) rmdir /s $(UNIDATADIR1)
1256         -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2)
1257         -if exist $(UNIDATADIR2) rmdir /s $(UNIDATADIR2)
1258         -@$(DEL) $(UNIDATAFILES)
1259         -@$(DEL) $(WIN32_OBJ)
1260         -@$(DEL) $(DLL_OBJ)
1261         -@$(DEL) $(X2P_OBJ)
1262         -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res
1263         -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat
1264         -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat
1265         -@$(DEL) *.ilk
1266         -@$(DEL) *.pdb
1267
1268 clean : Extensions_clean _clean
1269
1270 realclean : Extensions_realclean _clean
1271
1272 # Handy way to run perlbug -ok without having to install and run the
1273 # installed perlbug. We don't re-run the tests here - we trust the user.
1274 # Please *don't* use this unless all tests pass.
1275 # If you want to report test failures, use "nmake nok" instead.
1276 ok: utils
1277         $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)"
1278
1279 okfile: utils
1280         $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok
1281
1282 nok: utils
1283         $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)"
1284
1285 nokfile: utils
1286         $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok