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