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