Commit | Line | Data |
---|---|---|
9e42cd94 | 1 | # |
b6c85593 | 2 | # Makefile to build perl on Windows using Microsoft NMAKE. |
9e42cd94 | 3 | # Supported compilers: |
b6c85593 | 4 | # Microsoft Visual C++ 6.0 or later |
02e200fc | 5 | # Windows SDK 64-bit compiler and tools |
9e42cd94 GS |
6 | # |
7 | # This is set up to build a perl.exe that runs off a shared library | |
cb47d8a5 | 8 | # (perl513.dll). Also makes individual DLLs for the XS extensions. |
9e42cd94 GS |
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 | # | |
b86e806e JD |
27 | # Uncomment if you want to build a 32-bit Perl using a 32-bit compiler |
28 | # on a 64-bit version of Windows. | |
29 | #WIN64 = undef | |
30 | ||
31 | # | |
9e42cd94 GS |
32 | # Comment this out if you DON'T want your perl installation to be versioned. |
33 | # This means that the new installation will overwrite any files from the | |
34 | # old installation at the same INST_TOP location. Leaving it enabled is | |
35 | # the safest route, as perl adds the extra version directory to all the | |
36 | # locations it installs files to. If you disable it, an alternative | |
37 | # versioned installation can be obtained by setting INST_TOP above to a | |
38 | # path that includes an arbitrary version string. | |
39 | # | |
298a2886 | 40 | #INST_VER = \5.13.9 |
9e42cd94 GS |
41 | |
42 | # | |
43 | # Comment this out if you DON'T want your perl installation to have | |
44 | # architecture specific components. This means that architecture- | |
45 | # specific files will be installed along with the architecture-neutral | |
46 | # files. Leaving it enabled is safer and more flexible, in case you | |
47 | # want to build multiple flavors of perl and install them together in | |
48 | # the same location. Commenting it out gives you a simpler | |
49 | # installation that is easier to understand for beginners. | |
50 | # | |
bdb4cb88 | 51 | #INST_ARCH = \$(ARCHNAME) |
9e42cd94 GS |
52 | |
53 | # | |
7ada00a0 SH |
54 | # Uncomment this if you want perl to run |
55 | # $Config{sitelibexp}\sitecustomize.pl | |
56 | # before anything else. This script can then be set up, for example, | |
57 | # to add additional entries to @INC. | |
58 | # | |
59 | #USE_SITECUST = define | |
60 | ||
61 | # | |
9e42cd94 | 62 | # uncomment to enable multiple interpreters. This is need for fork() |
f7d585d3 | 63 | # emulation and for thread support. |
9e42cd94 | 64 | # |
bdb4cb88 | 65 | USE_MULTI = define |
9e42cd94 GS |
66 | |
67 | # | |
f7d585d3 | 68 | # Beginnings of interpreter cloning/threads; now reasonably complete. |
9e42cd94 GS |
69 | # This should be enabled to get the fork() emulation. This needs |
70 | # USE_MULTI as well. | |
71 | # | |
bdb4cb88 | 72 | USE_ITHREADS = define |
9e42cd94 GS |
73 | |
74 | # | |
75 | # uncomment to enable the implicit "host" layer for all system calls | |
76 | # made by perl. This needs USE_MULTI above. This is also needed to | |
77 | # get fork(). | |
78 | # | |
bdb4cb88 | 79 | USE_IMP_SYS = define |
9e42cd94 GS |
80 | |
81 | # | |
f7d585d3 GS |
82 | # Comment out next assign to disable perl's I/O subsystem and use compiler's |
83 | # stdio for IO - depending on your compiler vendor and run time library you may | |
84 | # then get a number of fails from make test i.e. bugs - complain to them not us ;-). | |
85 | # You will also be unable to take full advantage of perl5.8's support for multiple | |
86 | # encodings and may see lower IO performance. You have been warned. | |
9e42cd94 GS |
87 | USE_PERLIO = define |
88 | ||
89 | # | |
4a9d6100 GS |
90 | # Comment this out if you don't want to enable large file support for |
91 | # some reason. Should normally only be changed to maintain compatibility | |
92 | # with an older release of perl. | |
bdb4cb88 | 93 | USE_LARGE_FILES = define |
4a9d6100 GS |
94 | |
95 | # | |
da2c7419 | 96 | # uncomment exactly one of the following |
9e42cd94 | 97 | # |
1c847d4b | 98 | # Visual C++ 6.x (aka Visual C++ 98) |
4a9d6100 | 99 | CCTYPE = MSVC60 |
1c847d4b | 100 | # Visual C++ Toolkit 2003 (aka Visual C++ 7.x) (free command-line tools) |
da2c7419 | 101 | #CCTYPE = MSVC70FREE |
1c847d4b | 102 | # Visual C++ .NET 2003 (aka Visual C++ 7.x) (full version) |
da2c7419 | 103 | #CCTYPE = MSVC70 |
02e200fc JD |
104 | # Windows Server 2003 SP1 Platform SDK (April 2005) |
105 | #CCTYPE = SDK2003SP1 | |
1c847d4b | 106 | # Visual C++ 2005 Express Edition (aka Visual C++ 8.x) (free version) |
73c9ebc7 | 107 | #CCTYPE = MSVC80FREE |
1c847d4b | 108 | # Visual C++ 2005 (aka Visual C++ 8.x) (full version) |
73c9ebc7 | 109 | #CCTYPE = MSVC80 |
4a3cf07b SH |
110 | # Visual C++ 2008 Express Edition (aka Visual C++ 9.x) (free version) |
111 | #CCTYPE = MSVC90FREE | |
112 | # Visual C++ 2008 (aka Visual C++ 9.x) (full version) | |
113 | #CCTYPE = MSVC90 | |
2a46176f SH |
114 | # Visual C++ 2010 Express Edition (aka Visual C++ 10.x) (free version) |
115 | #CCTYPE = MSVC100FREE | |
116 | # Visual C++ 2010 (aka Visual C++ 10.x) (full version) | |
117 | #CCTYPE = MSVC100 | |
9e42cd94 GS |
118 | |
119 | # | |
120 | # uncomment next line if you want debug version of perl (big,slow) | |
f7d585d3 GS |
121 | # If not enabled, we automatically try to use maximum optimization |
122 | # with all compilers that are known to have a working optimizer. | |
9e42cd94 GS |
123 | # |
124 | #CFG = Debug | |
125 | ||
126 | # | |
9e42cd94 GS |
127 | # uncomment to enable linking with setargv.obj under the Visual C |
128 | # compiler. Setting this options enables perl to expand wildcards in | |
129 | # arguments, but it may be harder to use alternate methods like | |
130 | # File::DosGlob that are more powerful. This option is supported only with | |
131 | # Visual C. | |
132 | # | |
133 | #USE_SETARGV = define | |
134 | ||
135 | # | |
9e42cd94 GS |
136 | # set this if you wish to use perl's malloc |
137 | # WARNING: Turning this on/off WILL break binary compatibility with extensions | |
138 | # you may have compiled with/without it. Be prepared to recompile all | |
139 | # extensions if you change the default. Currently, this cannot be enabled | |
140 | # if you ask for USE_IMP_SYS above. | |
141 | # | |
142 | #PERL_MALLOC = define | |
143 | ||
144 | # | |
06c896bb SH |
145 | # set this to enable debugging mstats |
146 | # This must be enabled to use the Devel::Peek::mstat() function. This cannot | |
147 | # be enabled without PERL_MALLOC as well. | |
148 | # | |
bdb4cb88 | 149 | #DEBUG_MSTATS = define |
06c896bb SH |
150 | |
151 | # | |
4e036e4b VK |
152 | # set this to additionally provide a statically linked perl-static.exe. |
153 | # Note that dynamic loading will not work with this perl, so you must | |
a1f2e719 | 154 | # include required modules statically using the STATIC_EXT or ALL_STATIC |
cb47d8a5 | 155 | # variables below. A static library perl513s.lib will also be created. |
4e036e4b VK |
156 | # Ordinary perl.exe is not affected by this option. |
157 | # | |
158 | #BUILD_STATIC = define | |
159 | ||
160 | # | |
a1f2e719 VK |
161 | # in addition to BUILD_STATIC the option ALL_STATIC makes *every* |
162 | # extension get statically built | |
163 | # This will result in a very large perl executable, but the main purpose | |
164 | # is to have proper linking set so as to be able to create miscellaneous | |
165 | # executables with different built-in extensions | |
166 | # | |
167 | #ALL_STATIC = define | |
168 | ||
169 | # | |
06c896bb | 170 | # |
9e42cd94 GS |
171 | # set the install locations of the compiler include/libraries |
172 | # Running VCVARS32.BAT is *required* when using Visual C. | |
173 | # Some versions of Visual C don't define MSVCDIR in the environment, | |
174 | # so you may have to set CCHOME explicitly (spaces in the path name should | |
175 | # not be quoted) | |
176 | # | |
9e42cd94 GS |
177 | CCHOME = $(MSVCDIR) |
178 | CCINCDIR = $(CCHOME)\include | |
179 | CCLIBDIR = $(CCHOME)\lib | |
180 | ||
181 | # | |
182 | # Additional compiler flags can be specified here. | |
183 | # | |
2e30e1e1 | 184 | BUILDOPT = $(BUILDOPTEXTRA) |
9e42cd94 | 185 | |
7ada00a0 | 186 | # |
9e42cd94 GS |
187 | # This should normally be disabled. Enabling it will disable the File::Glob |
188 | # implementation of CORE::glob. | |
189 | # | |
190 | #BUILDOPT = $(BUILDOPT) -DPERL_EXTERNAL_GLOB | |
191 | ||
192 | # | |
193 | # This should normally be disabled. Enabling it causes perl to read scripts | |
194 | # in text mode (which is the 5.005 behavior) and will break ByteLoader. | |
bdb4cb88 | 195 | # |
9e42cd94 GS |
196 | #BUILDOPT = $(BUILDOPT) -DPERL_TEXTMODE_SCRIPTS |
197 | ||
198 | # | |
199 | # specify semicolon-separated list of extra directories that modules will | |
200 | # look for libraries (spaces in path names need not be quoted) | |
201 | # | |
202 | EXTRALIBDIRS = | |
203 | ||
204 | # | |
205 | # set this to your email address (perl will guess a value from | |
206 | # from your loginname and your hostname, which may not be right) | |
207 | # | |
208 | #EMAIL = | |
209 | ||
210 | ## | |
211 | ## Build configuration ends. | |
212 | ## | |
213 | ||
214 | ##################### CHANGE THESE ONLY IF YOU MUST ##################### | |
215 | ||
646e33b6 SH |
216 | !IF "$(USE_IMP_SYS)" == "define" |
217 | PERL_MALLOC = undef | |
218 | DEBUG_MSTATS = undef | |
219 | !ENDIF | |
220 | ||
9e42cd94 GS |
221 | !IF "$(PERL_MALLOC)" == "" |
222 | PERL_MALLOC = undef | |
646e33b6 | 223 | DEBUG_MSTATS = undef |
06c896bb SH |
224 | !ENDIF |
225 | ||
226 | !IF "$(DEBUG_MSTATS)" == "" | |
646e33b6 | 227 | DEBUG_MSTATS = undef |
06c896bb SH |
228 | !ENDIF |
229 | ||
230 | !IF "$(DEBUG_MSTATS)" == "define" | |
646e33b6 | 231 | BUILDOPT = $(BUILDOPT) -DPERL_DEBUGGING_MSTATS |
9e42cd94 GS |
232 | !ENDIF |
233 | ||
7ada00a0 SH |
234 | !IF "$(USE_SITECUST)" == "" |
235 | USE_SITECUST = undef | |
236 | !ENDIF | |
237 | ||
9e42cd94 GS |
238 | !IF "$(USE_MULTI)" == "" |
239 | USE_MULTI = undef | |
240 | !ENDIF | |
241 | ||
242 | !IF "$(USE_ITHREADS)" == "" | |
243 | USE_ITHREADS = undef | |
244 | !ENDIF | |
245 | ||
246 | !IF "$(USE_IMP_SYS)" == "" | |
247 | USE_IMP_SYS = undef | |
248 | !ENDIF | |
249 | ||
250 | !IF "$(USE_PERLIO)" == "" | |
251 | USE_PERLIO = undef | |
252 | !ENDIF | |
253 | ||
4a9d6100 GS |
254 | !IF "$(USE_LARGE_FILES)" == "" |
255 | USE_LARGE_FILES = undef | |
256 | !ENDIF | |
257 | ||
3db8f154 | 258 | !IF "$(USE_IMP_SYS)$(USE_MULTI)" == "defineundef" |
9e42cd94 GS |
259 | USE_MULTI = define |
260 | !ENDIF | |
261 | ||
262 | !IF "$(USE_ITHREADS)$(USE_MULTI)" == "defineundef" | |
263 | USE_MULTI = define | |
9e42cd94 GS |
264 | !ENDIF |
265 | ||
7ada00a0 SH |
266 | !IF "$(USE_SITECUST)" == "define" |
267 | BUILDOPT = $(BUILDOPT) -DUSE_SITECUSTOMIZE | |
268 | !ENDIF | |
269 | ||
3db8f154 | 270 | !IF "$(USE_MULTI)" != "undef" |
9e42cd94 GS |
271 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_CONTEXT |
272 | !ENDIF | |
273 | ||
274 | !IF "$(USE_IMP_SYS)" != "undef" | |
275 | BUILDOPT = $(BUILDOPT) -DPERL_IMPLICIT_SYS | |
276 | !ENDIF | |
277 | ||
278 | !IF "$(PROCESSOR_ARCHITECTURE)" == "" | |
279 | PROCESSOR_ARCHITECTURE = x86 | |
280 | !ENDIF | |
281 | ||
c623ac67 | 282 | !IF "$(WIN64)" == "" |
bf2a35e5 JD |
283 | # When we are running from a 32bit cmd.exe on AMD64 then |
284 | # PROCESSOR_ARCHITECTURE is set to x86 and PROCESSOR_ARCHITEW6432 | |
285 | # is set to AMD64 | |
c623ac67 GS |
286 | !IF "$(PROCESSOR_ARCHITEW6432)" != "" |
287 | PROCESSOR_ARCHITECTURE = $(PROCESSOR_ARCHITEW6432) | |
288 | WIN64 = define | |
289 | !ELSE | |
bf2a35e5 | 290 | !IF "$(PROCESSOR_ARCHITECTURE)" == "AMD64" || "$(PROCESSOR_ARCHITECTURE)" == "IA64" |
c623ac67 GS |
291 | WIN64 = define |
292 | !ELSE | |
293 | WIN64 = undef | |
294 | !ENDIF | |
295 | !ENDIF | |
296 | !ENDIF | |
297 | ||
02e200fc JD |
298 | # Treat 64-bit MSVC60 (doesn't really exist) as SDK2003SP1 because |
299 | # both link against MSVCRT.dll (which is part of Windows itself) and | |
300 | # not against a compiler specific versioned runtime. | |
301 | !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "MSVC60" | |
302 | CCTYPE = SDK2003SP1 | |
303 | !ENDIF | |
304 | ||
bf2a35e5 JD |
305 | ARCHITECTURE = $(PROCESSOR_ARCHITECTURE) |
306 | !IF "$(ARCHITECTURE)" == "AMD64" | |
307 | ARCHITECTURE = x64 | |
9453ddcd | 308 | !ENDIF |
bf2a35e5 JD |
309 | !IF "$(ARCHITECTURE)" == "IA64" |
310 | ARCHITECTURE = ia64 | |
9453ddcd SH |
311 | !ENDIF |
312 | ||
9e42cd94 | 313 | !IF "$(USE_MULTI)" == "define" |
bf2a35e5 | 314 | ARCHNAME = MSWin32-$(ARCHITECTURE)-multi |
9e42cd94 GS |
315 | !ELSE |
316 | !IF "$(USE_PERLIO)" == "define" | |
bf2a35e5 | 317 | ARCHNAME = MSWin32-$(ARCHITECTURE)-perlio |
9e42cd94 | 318 | !ELSE |
bf2a35e5 | 319 | ARCHNAME = MSWin32-$(ARCHITECTURE) |
9e42cd94 GS |
320 | !ENDIF |
321 | !ENDIF | |
9e42cd94 GS |
322 | |
323 | !IF "$(USE_PERLIO)" == "define" | |
324 | BUILDOPT = $(BUILDOPT) -DUSE_PERLIO | |
325 | !ENDIF | |
326 | ||
327 | !IF "$(USE_ITHREADS)" == "define" | |
328 | ARCHNAME = $(ARCHNAME)-thread | |
329 | !ENDIF | |
330 | ||
2a46176f SH |
331 | # Visual C++ 98, .NET 2003, 2005/2008/2010 specific. |
332 | # VC++ 6/7/8/9/10.x can load DLLs on demand. Makes the test suite run | |
4a3cf07b | 333 | # in about 10% less time. (The free version of 7.x can't do this, but the free |
2a46176f | 334 | # versions of 8/9/10.x can.) |
4a3cf07b SH |
335 | !IF "$(CCTYPE)" == "MSVC60" || "$(CCTYPE)" == "MSVC70" || \ |
336 | "$(CCTYPE)" == "MSVC80" || "$(CCTYPE)" == "MSVC80FREE" || \ | |
2a46176f SH |
337 | "$(CCTYPE)" == "MSVC90" || "$(CCTYPE)" == "MSVC90FREE" || \ |
338 | "$(CCTYPE)" == "MSVC100" || "$(CCTYPE)" == "MSVC100FREE" | |
d1a8253e | 339 | DELAYLOAD = -DELAYLOAD:ws2_32.dll delayimp.lib |
9e42cd94 GS |
340 | !ENDIF |
341 | ||
4a3cf07b SH |
342 | # Visual C++ 2005 and 2008 (VC++ 8.x and 9.x) create manifest files for EXEs and |
343 | # DLLs. These either need copying everywhere with the binaries, or else need | |
3ddd48aa SH |
344 | # embedding in them otherwise MSVCR80.dll or MSVCR90.dll won't be found. For |
345 | # simplicity, embed them if they exist (and delete them afterwards so that they | |
346 | # don't get installed too). | |
4adc95e6 SH |
347 | EMBED_EXE_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1 && \ |
348 | if exist $@.manifest del $@.manifest | |
349 | EMBED_DLL_MANI = if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;2 && \ | |
350 | if exist $@.manifest del $@.manifest | |
c8e599d3 | 351 | |
9e42cd94 GS |
352 | ARCHDIR = ..\lib\$(ARCHNAME) |
353 | COREDIR = ..\lib\CORE | |
354 | AUTODIR = ..\lib\auto | |
355 | LIBDIR = ..\lib | |
356 | EXTDIR = ..\ext | |
a193a2db | 357 | DISTDIR = ..\dist |
b212a3c6 | 358 | CPANDIR = ..\cpan |
9e42cd94 GS |
359 | PODDIR = ..\pod |
360 | EXTUTILSDIR = $(LIBDIR)\ExtUtils | |
b4a41557 | 361 | HTMLDIR = .\html |
9e42cd94 GS |
362 | |
363 | # | |
364 | INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin | |
365 | INST_BIN = $(INST_SCRIPT)$(INST_ARCH) | |
366 | INST_LIB = $(INST_TOP)$(INST_VER)\lib | |
367 | INST_ARCHLIB = $(INST_LIB)$(INST_ARCH) | |
368 | INST_COREDIR = $(INST_ARCHLIB)\CORE | |
9e42cd94 GS |
369 | INST_HTML = $(INST_TOP)$(INST_VER)\html |
370 | ||
371 | # | |
372 | # Programs to compile, build .lib files and link | |
373 | # | |
374 | ||
375 | CC = cl | |
376 | LINK32 = link | |
377 | LIB32 = $(LINK32) -lib | |
378 | RSC = rc | |
379 | ||
380 | # | |
381 | # Options | |
382 | # | |
383 | ||
384 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. | |
385 | #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX | |
9cef8306 | 386 | DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT |
9e42cd94 GS |
387 | LOCDEFS = -DPERLDLL -DPERL_CORE |
388 | SUBSYS = console | |
a7d225ec | 389 | CXX_FLAG = -TP -EHsc |
9e42cd94 | 390 | |
9e42cd94 | 391 | LIBC = msvcrt.lib |
9e42cd94 | 392 | |
9e42cd94 | 393 | !IF "$(CFG)" == "Debug" |
9e42cd94 | 394 | OPTIMIZE = -Od -MD -Zi -DDEBUGGING |
c623ac67 | 395 | LINK_DBG = -debug |
9e42cd94 | 396 | !ELSE |
ec25c072 SH |
397 | OPTIMIZE = -MD -Zi -DNDEBUG |
398 | # we enable debug symbols in release builds also | |
399 | LINK_DBG = -debug -opt:ref,icf | |
400 | # you may want to enable this if you want COFF symbols in the executables | |
401 | # in addition to the PDB symbols. The default Dr. Watson that ships with | |
402 | # Windows can use the the former but not latter. The free WinDbg can be | |
403 | # installed to get better stack traces from just the PDB symbols, so we | |
404 | # avoid the bloat of COFF symbols by default. | |
405 | #LINK_DBG = $(LINK_DBG) -debugtype:both | |
d921a5fb GS |
406 | ! IF "$(WIN64)" == "define" |
407 | # enable Whole Program Optimizations (WPO) and Link Time Code Generation (LTCG) | |
408 | OPTIMIZE = $(OPTIMIZE) -Ox -GL | |
409 | LINK_DBG = $(LINK_DBG) -ltcg | |
410 | ! ELSE | |
411 | # -O1 yields smaller code, which turns out to be faster than -O2 on x86 | |
412 | OPTIMIZE = $(OPTIMIZE) -O1 | |
413 | #OPTIMIZE = $(OPTIMIZE) -O2 | |
414 | ! ENDIF | |
9e42cd94 GS |
415 | !ENDIF |
416 | ||
c623ac67 GS |
417 | !IF "$(WIN64)" == "define" |
418 | DEFINES = $(DEFINES) -DWIN64 -DCONSERVATIVE | |
f33a21d8 | 419 | OPTIMIZE = $(OPTIMIZE) -fp:precise |
da2c7419 SH |
420 | !ENDIF |
421 | ||
2a46176f | 422 | # For now, silence VC++ 8/9/10.x's warnings about "unsafe" CRT functions |
4a3cf07b SH |
423 | # and POSIX CRT function names being deprecated. |
424 | !IF "$(CCTYPE)" == "MSVC80" || "$(CCTYPE)" == "MSVC80FREE" || \ | |
2a46176f SH |
425 | "$(CCTYPE)" == "MSVC90" || "$(CCTYPE)" == "MSVC90FREE" || \ |
426 | "$(CCTYPE)" == "MSVC100" || "$(CCTYPE)" == "MSVC100FREE" | |
26a6faa8 | 427 | DEFINES = $(DEFINES) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE |
c5b31784 SH |
428 | !ENDIF |
429 | ||
45f6403b JD |
430 | # In VS 2005 (VC++ 8.0) Microsoft changes time_t from 32-bit to |
431 | # 64-bit, even in 32-bit mode. It also provides the _USE_32BIT_TIME_T | |
432 | # preprocessor option to revert back to the old functionality for | |
433 | # backward compatibility. We define this symbol here for older 32-bit | |
434 | # compilers only (which aren't using it at all) for the sole purpose | |
435 | # of getting it into $Config{ccflags}. That way if someone builds | |
436 | # Perl itself with e.g. VC6 but later installs an XS module using VC8 | |
437 | # the time_t types will still be compatible. | |
438 | !IF "$(WIN64)" == "undef" | |
439 | ! IF "$(CCTYPE)" == "MSVC60" || \ | |
440 | "$(CCTYPE)" == "MSVC70" || "$(CCTYPE)" == "MSVC70FREE" | |
441 | BUILDOPT = $(BUILDOPT) -D_USE_32BIT_TIME_T | |
442 | ! ENDIF | |
443 | !ENDIF | |
444 | ||
9cef8306 | 445 | LIBBASEFILES = \ |
9e42cd94 GS |
446 | oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \ |
447 | comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ | |
036c1c1e | 448 | netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib \ |
4ebea3c6 | 449 | version.lib odbc32.lib odbccp32.lib comctl32.lib |
c623ac67 | 450 | |
02e200fc JD |
451 | # The 64 bit Windows Server 2003 SP1 SDK compilers link against MSVCRT.dll, which |
452 | # doesn't include the buffer overrun verification code used by the /GS switch. | |
9453ddcd | 453 | # Since the code links against libraries that are compiled with /GS, this |
02e200fc JD |
454 | # "security cookie verification" code must be included via bufferoverflow.lib. |
455 | !IF "$(WIN64)" == "define" && "$(CCTYPE)" == "SDK2003SP1" | |
9453ddcd | 456 | LIBBASEFILES = $(LIBBASEFILES) bufferoverflowU.lib |
c623ac67 | 457 | !ENDIF |
9e42cd94 | 458 | |
9e42cd94 GS |
459 | LIBFILES = $(LIBBASEFILES) $(LIBC) |
460 | ||
a5ca303d | 461 | #EXTRACFLAGS = -nologo -GF -W4 -wd4127 -wd4706 |
9453ddcd | 462 | EXTRACFLAGS = -nologo -GF -W3 |
bb275e72 | 463 | CFLAGS = $(EXTRACFLAGS) $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
9e42cd94 GS |
464 | $(PCHFLAGS) $(OPTIMIZE) |
465 | LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \ | |
466 | -libpath:"$(INST_COREDIR)" \ | |
467 | -machine:$(PROCESSOR_ARCHITECTURE) | |
4e036e4b | 468 | LIB_FLAGS = -nologo |
9e42cd94 GS |
469 | OBJOUT_FLAG = -Fo |
470 | EXEOUT_FLAG = -Fe | |
471 | ||
472 | CFLAGS_O = $(CFLAGS) $(BUILDOPT) | |
473 | ||
4ebea3c6 | 474 | !IF "$(CCTYPE)" == "MSVC80" || "$(CCTYPE)" == "MSVC80FREE" || \ |
2a46176f SH |
475 | "$(CCTYPE)" == "MSVC90" || "$(CCTYPE)" == "MSVC90FREE" || \ |
476 | "$(CCTYPE)" == "MSVC100" || "$(CCTYPE)" == "MSVC100FREE" | |
4ebea3c6 JD |
477 | LINK_FLAGS = $(LINK_FLAGS) "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" |
478 | !ELSE | |
479 | RSC_FLAGS = -DINCLUDE_MANIFEST | |
480 | !ENDIF | |
481 | ||
482 | ||
9e42cd94 GS |
483 | #################### do not edit below this line ####################### |
484 | ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ############## | |
485 | ||
486 | o = .obj | |
487 | ||
488 | # | |
489 | # Rules | |
490 | # | |
491 | ||
492 | .SUFFIXES : .c $(o) .dll .lib .exe .rc .res | |
493 | ||
494 | .c$(o): | |
495 | $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $< | |
496 | ||
497 | .y.c: | |
498 | $(NOOP) | |
499 | ||
500 | $(o).dll: | |
501 | $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \ | |
502 | -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL) | |
c8e599d3 | 503 | $(EMBED_DLL_MANI) |
9e42cd94 GS |
504 | |
505 | .rc.res: | |
4ebea3c6 | 506 | $(RSC) -i.. $(RSC_FLAGS) $< |
9e42cd94 GS |
507 | |
508 | # | |
509 | # various targets | |
510 | ||
511 | # makedef.pl must be updated if this changes, and this should normally | |
512 | # only change when there is an incompatible revision of the public API. | |
cb47d8a5 JV |
513 | PERLIMPLIB = ..\perl513.lib |
514 | PERLSTATICLIB = ..\perl513s.lib | |
515 | PERLDLL = ..\perl513.dll | |
9e42cd94 GS |
516 | |
517 | MINIPERL = ..\miniperl.exe | |
518 | MINIDIR = .\mini | |
519 | PERLEXE = ..\perl.exe | |
520 | WPERLEXE = ..\wperl.exe | |
4e036e4b | 521 | PERLEXESTATIC = ..\perl-static.exe |
9e42cd94 | 522 | GLOBEXE = ..\perlglob.exe |
04bae4fb | 523 | CONFIGPM = ..\lib\Config.pm ..\lib\Config_heavy.pl |
9e42cd94 GS |
524 | MINIMOD = ..\lib\ExtUtils\Miniperl.pm |
525 | X2P = ..\x2p\a2p.exe | |
202d1001 | 526 | GENUUDMAP = ..\generate_uudmap.exe |
4e036e4b VK |
527 | !IF "$(BUILD_STATIC)" == "define" |
528 | PERLSTATIC = static | |
529 | !ELSE | |
530 | PERLSTATIC = | |
531 | !ENDIF | |
5b04aee6 | 532 | |
ca12659b | 533 | # Unicode data files generated by mktables |
36ff7f95 SH |
534 | FIRSTUNIFILE = ..\lib\unicore\Decomposition.pl |
535 | UNIDATAFILES = ..\lib\unicore\Decomposition.pl \ | |
7ebf06b3 | 536 | ..\lib\unicore\CombiningClass.pl ..\lib\unicore\Name.pl \ |
860054a8 | 537 | ..\lib\unicore\Heavy.pl ..\lib\unicore\mktables.lst \ |
3e344d15 | 538 | ..\lib\unicore\TestProp.pl |
ca12659b NC |
539 | |
540 | # Directories of Unicode data files generated by mktables | |
27a8011f SH |
541 | UNIDATADIR1 = ..\lib\unicore\To |
542 | UNIDATADIR2 = ..\lib\unicore\lib | |
ca12659b | 543 | |
4ebea3c6 | 544 | PERLEXE_MANIFEST= .\perlexe.manifest |
3890b58f RGS |
545 | PERLEXE_ICO = .\perlexe.ico |
546 | PERLEXE_RES = .\perlexe.res | |
547 | PERLDLL_RES = | |
548 | ||
9e42cd94 GS |
549 | # Nominate a target which causes extensions to be re-built |
550 | # This used to be $(PERLEXE), but at worst it is the .dll that they depend | |
551 | # on and really only the interface - i.e. the .def file used to export symbols | |
552 | # from the .dll | |
553 | PERLDEP = perldll.def | |
554 | ||
555 | PL2BAT = bin\pl2bat.pl | |
556 | GLOBBAT = bin\perlglob.bat | |
557 | ||
558 | UTILS = \ | |
559 | ..\utils\h2ph \ | |
560 | ..\utils\splain \ | |
561 | ..\utils\dprofpp \ | |
562 | ..\utils\perlbug \ | |
563 | ..\utils\pl2pm \ | |
564 | ..\utils\c2ph \ | |
827a599d | 565 | ..\utils\pstruct \ |
9e42cd94 GS |
566 | ..\utils\h2xs \ |
567 | ..\utils\perldoc \ | |
9e42cd94 GS |
568 | ..\utils\perlivp \ |
569 | ..\utils\libnetcfg \ | |
827a599d GS |
570 | ..\utils\enc2xs \ |
571 | ..\utils\piconv \ | |
bb4e9162 | 572 | ..\utils\config_data \ |
18a1cebe | 573 | ..\utils\corelist \ |
83cd6e83 | 574 | ..\utils\cpan \ |
ea0e987d | 575 | ..\utils\xsubpp \ |
4b618757 | 576 | ..\utils\prove \ |
291d3373 | 577 | ..\utils\ptar \ |
b8669316 | 578 | ..\utils\ptardiff \ |
deabda19 | 579 | ..\utils\ptargrep \ |
6aaee015 RGS |
580 | ..\utils\cpanp-run-perl \ |
581 | ..\utils\cpanp \ | |
582 | ..\utils\cpan2dist \ | |
3ddf9550 | 583 | ..\utils\shasum \ |
ea0e987d | 584 | ..\utils\instmodsh \ |
9e42cd94 | 585 | ..\x2p\find2perl \ |
827a599d | 586 | ..\x2p\psed \ |
9e42cd94 | 587 | ..\x2p\s2p \ |
9e42cd94 GS |
588 | bin\exetype.pl \ |
589 | bin\runperl.pl \ | |
590 | bin\pl2bat.pl \ | |
591 | bin\perlglob.pl \ | |
592 | bin\search.pl | |
593 | ||
594 | MAKE = nmake -nologo | |
595 | MAKE_BARE = nmake | |
596 | ||
c623ac67 GS |
597 | !IF "$(WIN64)" == "define" |
598 | CFGSH_TMPL = config.vc64 | |
599 | CFGH_TMPL = config_H.vc64 | |
600 | !ELSE | |
9e42cd94 GS |
601 | CFGSH_TMPL = config.vc |
602 | CFGH_TMPL = config_H.vc | |
c623ac67 | 603 | !ENDIF |
9e42cd94 | 604 | |
b6ed7314 YO |
605 | XCOPY = xcopy /f /r /i /d /y |
606 | RCOPY = xcopy /f /r /i /e /d /y | |
65980d94 | 607 | NOOP = @rem |
9e42cd94 GS |
608 | NULL = |
609 | ||
610 | DEL = del | |
611 | ||
9e42cd94 GS |
612 | MICROCORE_SRC = \ |
613 | ..\av.c \ | |
614 | ..\deb.c \ | |
615 | ..\doio.c \ | |
616 | ..\doop.c \ | |
617 | ..\dump.c \ | |
618 | ..\globals.c \ | |
619 | ..\gv.c \ | |
e1a479c5 | 620 | ..\mro.c \ |
9e42cd94 GS |
621 | ..\hv.c \ |
622 | ..\locale.c \ | |
26ea9e12 | 623 | ..\keywords.c \ |
a0d89a74 | 624 | ..\mathoms.c \ |
9e42cd94 GS |
625 | ..\mg.c \ |
626 | ..\numeric.c \ | |
627 | ..\op.c \ | |
295f0f84 | 628 | ..\pad.c \ |
9e42cd94 GS |
629 | ..\perl.c \ |
630 | ..\perlapi.c \ | |
631 | ..\perly.c \ | |
632 | ..\pp.c \ | |
633 | ..\pp_ctl.c \ | |
634 | ..\pp_hot.c \ | |
635 | ..\pp_pack.c \ | |
636 | ..\pp_sort.c \ | |
637 | ..\pp_sys.c \ | |
10bc17b6 | 638 | ..\reentr.c \ |
9e42cd94 GS |
639 | ..\regcomp.c \ |
640 | ..\regexec.c \ | |
641 | ..\run.c \ | |
642 | ..\scope.c \ | |
643 | ..\sv.c \ | |
644 | ..\taint.c \ | |
645 | ..\toke.c \ | |
646 | ..\universal.c \ | |
647 | ..\utf8.c \ | |
48462a74 | 648 | ..\util.c |
9e42cd94 GS |
649 | |
650 | EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c | |
651 | ||
652 | !IF "$(PERL_MALLOC)" == "define" | |
653 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c | |
654 | !ENDIF | |
655 | ||
656 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c | |
657 | ||
658 | WIN32_SRC = \ | |
659 | .\win32.c \ | |
660 | .\win32sck.c \ | |
9cef8306 JD |
661 | .\win32thread.c \ |
662 | .\fcrypt.c | |
9e42cd94 | 663 | |
f7d585d3 GS |
664 | # We need this for miniperl build unless we override canned |
665 | # config.h #define building mini\* | |
666 | #!IF "$(USE_PERLIO)" == "define" | |
9e42cd94 | 667 | WIN32_SRC = $(WIN32_SRC) .\win32io.c |
f7d585d3 | 668 | #!ENDIF |
9e42cd94 | 669 | |
9e42cd94 | 670 | |
9e42cd94 GS |
671 | X2P_SRC = \ |
672 | ..\x2p\a2p.c \ | |
673 | ..\x2p\hash.c \ | |
674 | ..\x2p\str.c \ | |
675 | ..\x2p\util.c \ | |
676 | ..\x2p\walk.c | |
677 | ||
678 | CORE_NOCFG_H = \ | |
679 | ..\av.h \ | |
680 | ..\cop.h \ | |
681 | ..\cv.h \ | |
682 | ..\dosish.h \ | |
683 | ..\embed.h \ | |
684 | ..\form.h \ | |
685 | ..\gv.h \ | |
686 | ..\handy.h \ | |
687 | ..\hv.h \ | |
688 | ..\iperlsys.h \ | |
689 | ..\mg.h \ | |
690 | ..\nostdio.h \ | |
691 | ..\op.h \ | |
692 | ..\opcode.h \ | |
693 | ..\perl.h \ | |
694 | ..\perlapi.h \ | |
695 | ..\perlsdio.h \ | |
696 | ..\perlsfio.h \ | |
697 | ..\perly.h \ | |
698 | ..\pp.h \ | |
699 | ..\proto.h \ | |
cdb0f547 | 700 | ..\regcomp.h \ |
9e42cd94 GS |
701 | ..\regexp.h \ |
702 | ..\scope.h \ | |
703 | ..\sv.h \ | |
704 | ..\thread.h \ | |
705 | ..\unixish.h \ | |
706 | ..\utf8.h \ | |
707 | ..\util.h \ | |
708 | ..\warnings.h \ | |
709 | ..\XSUB.h \ | |
710 | ..\EXTERN.h \ | |
711 | ..\perlvars.h \ | |
712 | ..\intrpvar.h \ | |
9e42cd94 GS |
713 | .\include\dirent.h \ |
714 | .\include\netdb.h \ | |
715 | .\include\sys\socket.h \ | |
716 | .\win32.h | |
717 | ||
a148edb6 | 718 | CORE_H = $(CORE_NOCFG_H) .\config.h ..\git_version.h |
9e42cd94 | 719 | |
202d1001 | 720 | UUDMAP_H = ..\uudmap.h |
efa50c51 | 721 | BITCOUNT_H = ..\bitcount.h |
202d1001 | 722 | |
9e42cd94 GS |
723 | MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj) |
724 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj) | |
725 | WIN32_OBJ = $(WIN32_SRC:.c=.obj) | |
726 | MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \ | |
727 | $(MINIDIR)\miniperlmain$(o) \ | |
728 | $(MINIDIR)\perlio$(o) | |
729 | MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\) | |
730 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) | |
281da5ea | 731 | DLL_OBJ = $(DYNALOADER) |
9e42cd94 | 732 | X2P_OBJ = $(X2P_SRC:.c=.obj) |
202d1001 | 733 | GENUUDMAP_OBJ = $(GENUUDMAP:.exe=.obj) |
9e42cd94 GS |
734 | |
735 | PERLDLL_OBJ = $(CORE_OBJ) | |
736 | PERLEXE_OBJ = perlmain$(o) | |
4e036e4b | 737 | PERLEXEST_OBJ = perlmainst$(o) |
9e42cd94 GS |
738 | |
739 | PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ) | |
9e42cd94 GS |
740 | |
741 | !IF "$(USE_SETARGV)" != "" | |
742 | SETARGV_OBJ = setargv$(o) | |
743 | !ENDIF | |
744 | ||
a1f2e719 VK |
745 | !IF "$(ALL_STATIC)" == "define" |
746 | # some exclusions, unfortunately, until fixed: | |
747 | # - Win32 extension contains overlapped symbols with win32.c (BUG!) | |
748 | # - MakeMaker isn't capable enough for SDBM_File (smaller bug) | |
749 | # - Encode (encoding search algorithm relies on shared library?) | |
9788a75a | 750 | STATIC_EXT = * !Win32 !SDBM_File !Encode |
a1f2e719 VK |
751 | !ELSE |
752 | # specify static extensions here, for example: | |
4e036e4b | 753 | #STATIC_EXT = Cwd Compress/Raw/Zlib |
78ff2d7b | 754 | STATIC_EXT = Win32CORE |
a1f2e719 | 755 | !ENDIF |
595589fa | 756 | |
281da5ea | 757 | DYNALOADER = ..\DynaLoader$(o) |
9e42cd94 | 758 | |
9e42cd94 GS |
759 | CFG_VARS = \ |
760 | "INST_DRV=$(INST_DRV)" \ | |
761 | "INST_TOP=$(INST_TOP)" \ | |
762 | "INST_VER=$(INST_VER)" \ | |
763 | "INST_ARCH=$(INST_ARCH)" \ | |
764 | "archname=$(ARCHNAME)" \ | |
765 | "cc=$(CC)" \ | |
766 | "ld=$(LINK32)" \ | |
bb275e72 | 767 | "ccflags=$(EXTRACFLAGS) $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \ |
9e42cd94 | 768 | "cf_email=$(EMAIL)" \ |
9e42cd94 GS |
769 | "d_mymalloc=$(PERL_MALLOC)" \ |
770 | "libs=$(LIBFILES)" \ | |
771 | "incpath=$(CCINCDIR:"=\")" \ | |
772 | "libperl=$(PERLIMPLIB:..\=)" \ | |
773 | "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \ | |
774 | "libc=$(LIBC)" \ | |
775 | "make=$(MAKE_BARE)" \ | |
d2b25974 | 776 | "static_ext=$(STATIC_EXT)" \ |
7e0017d3 | 777 | "usethreads=$(USE_ITHREADS)" \ |
9e42cd94 | 778 | "useithreads=$(USE_ITHREADS)" \ |
9e42cd94 GS |
779 | "usemultiplicity=$(USE_MULTI)" \ |
780 | "useperlio=$(USE_PERLIO)" \ | |
4a9d6100 | 781 | "uselargefiles=$(USE_LARGE_FILES)" \ |
7ada00a0 | 782 | "usesitecustomize=$(USE_SITECUST)" \ |
9e42cd94 GS |
783 | "LINK_FLAGS=$(LINK_FLAGS:"=\")" \ |
784 | "optimize=$(OPTIMIZE:"=\")" | |
785 | ||
2a6dc374 | 786 | ICWD = -I..\dist\Cwd -I..\dist\Cwd\lib |
403f501d | 787 | |
9e42cd94 GS |
788 | # |
789 | # Top targets | |
790 | # | |
791 | ||
a148edb6 | 792 | all : .\config.h ..\git_version.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) \ |
a34ce875 | 793 | $(UNIDATAFILES) MakePPPort $(PERLEXE) $(X2P) Extensions_nonxs Extensions $(PERLSTATIC) |
9e42cd94 GS |
794 | @echo Everything is up to date. '$(MAKE_BARE) test' to run test suite. |
795 | ||
c900f745 | 796 | regnodes : ..\regnodes.h |
5d458dd8 | 797 | |
5b04aee6 | 798 | ..\regcomp$(o) : ..\regnodes.h ..\regcharclass.h |
e64b1bd1 YO |
799 | |
800 | ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h | |
801 | ||
a148edb6 SH |
802 | reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) \ |
803 | $(UNIDATAFILES) $(PERLEXE) $(X2P) Extensions_reonly | |
a24cc0c0 YO |
804 | @echo Perl and 're' are up to date. |
805 | ||
4e036e4b VK |
806 | static: $(PERLEXESTATIC) |
807 | ||
9e42cd94 GS |
808 | #------------------------------------------------------------ |
809 | ||
810 | $(GLOBEXE) : perlglob$(o) | |
811 | $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \ | |
812 | perlglob$(o) setargv$(o) | |
c8e599d3 | 813 | $(EMBED_EXE_MANI) |
9e42cd94 GS |
814 | |
815 | perlglob$(o) : perlglob.c | |
816 | ||
817 | config.w32 : $(CFGSH_TMPL) | |
818 | copy $(CFGSH_TMPL) config.w32 | |
819 | ||
820 | .\config.h : $(CFGH_TMPL) | |
821 | -del /f config.h | |
822 | copy $(CFGH_TMPL) config.h | |
823 | ||
04bf47ee | 824 | ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl |
a148edb6 | 825 | cd .. |
16ad9bfa | 826 | miniperl -Ilib make_patchnum.pl |
a148edb6 SH |
827 | cd win32 |
828 | ||
931482b7 NC |
829 | # make sure that we recompile perl.c if the git version changes |
830 | ..\perl$(o) : ..\git_version.h | |
a148edb6 | 831 | |
c788c1c2 | 832 | ..\config.sh : config.w32 $(MINIPERL) config_sh.PL FindExt.pm |
9e42cd94 GS |
833 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh |
834 | ||
76febb1c SH |
835 | # this target is for when changes to the main config.sh happen. |
836 | # edit config.vc, then make perl in a minimal configuration (i.e. with MULTI, | |
837 | # ITHREADS, IMP_SYS, LARGE_FILES, PERLIO and CRYPT off), then make this target | |
838 | # to regenerate config_H.vc. | |
839 | # repeat for config.vc64 and config_H.vc64 if you have a suitable build | |
840 | # environment, otherwise hand-edit them to maintain the same differences with | |
841 | # config.vc and config_H.vc as before. | |
842 | # unfortunately, some further manual editing is also then required to restore all | |
843 | # the special __GNUC__ handling that is otherwise lost. | |
9e42cd94 | 844 | regen_config_h: |
76febb1c | 845 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh |
4e73d6a4 | 846 | $(MINIPERL) -I..\lib ..\configpm --chdir=.. |
9e42cd94 | 847 | -del /f $(CFGH_TMPL) |
38cd195c | 848 | -$(MINIPERL) -I..\lib $(ICWD) config_h.PL "INST_VER=$(INST_VER)" |
9e42cd94 GS |
849 | rename config.h $(CFGH_TMPL) |
850 | ||
851 | $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl | |
4e73d6a4 | 852 | $(MINIPERL) -I..\lib ..\configpm --chdir=.. |
9e42cd94 GS |
853 | if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL) |
854 | $(XCOPY) ..\*.h $(COREDIR)\*.* | |
855 | $(XCOPY) *.h $(COREDIR)\*.* | |
9e42cd94 | 856 | $(RCOPY) include $(COREDIR)\*.* |
38cd195c | 857 | -$(MINIPERL) -I..\lib $(ICWD) config_h.PL "INST_VER=$(INST_VER)" |
9e42cd94 GS |
858 | if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM) |
859 | ||
5e4c4c91 NC |
860 | ..\lib\buildcustomize.pl: $(MINIPERL) ..\write_buildcustomize.pl |
861 | $(MINIPERL) -I..\lib ..\write_buildcustomize.pl .. >..\lib\buildcustomize.pl | |
862 | ||
9e42cd94 GS |
863 | $(MINIPERL) : $(MINIDIR) $(MINI_OBJ) |
864 | $(LINK32) -subsystem:console -out:$@ @<< | |
865 | $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ) | |
866 | << | |
c8e599d3 | 867 | $(EMBED_EXE_MANI) |
9e42cd94 GS |
868 | |
869 | $(MINIDIR) : | |
870 | if not exist "$(MINIDIR)" mkdir "$(MINIDIR)" | |
871 | ||
872 | $(MINICORE_OBJ) : $(CORE_NOCFG_H) | |
8c4561fb | 873 | $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB -DPERL_IS_MINIPERL $(OBJOUT_FLAG)$@ ..\$(*F).c |
9e42cd94 GS |
874 | |
875 | $(MINIWIN32_OBJ) : $(CORE_NOCFG_H) | |
876 | $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c | |
877 | ||
878 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c | |
879 | # This is the only file that depends on perlhost.h, vmem.h, and vdir.h | |
880 | !IF "$(USE_IMP_SYS)" == "define" | |
881 | perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h | |
882 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c | |
883 | !ENDIF | |
884 | ||
885 | # 1. we don't want to rebuild miniperl.exe when config.h changes | |
886 | # 2. we don't want to rebuild miniperl.exe with non-default config.h | |
931482b7 | 887 | # 3. we can't have miniperl.exe depend on git_version.h, as miniperl creates it |
9e42cd94 GS |
888 | $(MINI_OBJ) : $(CORE_NOCFG_H) |
889 | ||
890 | $(WIN32_OBJ) : $(CORE_H) | |
891 | $(CORE_OBJ) : $(CORE_H) | |
892 | $(DLL_OBJ) : $(CORE_H) | |
893 | $(X2P_OBJ) : $(CORE_H) | |
894 | ||
897d3989 | 895 | perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\makedef.pl create_perllibst_h.pl |
c6d234b8 | 896 | $(MINIPERL) -I..\lib create_perllibst_h.pl |
c1effa61 | 897 | $(MINIPERL) -I..\lib -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \ |
9e42cd94 GS |
898 | CCTYPE=$(CCTYPE) > perldll.def |
899 | ||
595589fa | 900 | $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static |
9e7cf449 | 901 | $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @Extensions_static @<< |
9e42cd94 GS |
902 | $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES) |
903 | << | |
c8e599d3 | 904 | $(EMBED_DLL_MANI) |
9e42cd94 GS |
905 | $(XCOPY) $(PERLIMPLIB) $(COREDIR) |
906 | ||
4e036e4b VK |
907 | $(PERLSTATICLIB): Extensions_static |
908 | $(LIB32) $(LIB_FLAGS) -out:$@ @Extensions_static @<< | |
909 | $(PERLDLL_OBJ) | |
910 | << | |
911 | $(XCOPY) $(PERLSTATICLIB) $(COREDIR) | |
912 | ||
4ebea3c6 | 913 | $(PERLEXE_RES): perlexe.rc $(PERLEXE_MANIFEST) $(PERLEXE_ICO) |
e84ac4e2 | 914 | |
9e42cd94 GS |
915 | $(MINIMOD) : $(MINIPERL) ..\minimod.pl |
916 | cd .. | |
917 | miniperl minimod.pl > lib\ExtUtils\Miniperl.pm | |
918 | cd win32 | |
919 | ||
920 | ..\x2p\a2p$(o) : ..\x2p\a2p.c | |
921 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c | |
922 | ||
923 | ..\x2p\hash$(o) : ..\x2p\hash.c | |
924 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c | |
925 | ||
926 | ..\x2p\str$(o) : ..\x2p\str.c | |
927 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c | |
928 | ||
929 | ..\x2p\util$(o) : ..\x2p\util.c | |
930 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c | |
931 | ||
932 | ..\x2p\walk$(o) : ..\x2p\walk.c | |
933 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c | |
934 | ||
403f501d | 935 | $(X2P) : $(MINIPERL) $(X2P_OBJ) Extensions |
c1effa61 NC |
936 | $(MINIPERL) -I..\lib ..\x2p\find2perl.PL |
937 | $(MINIPERL) -I..\lib ..\x2p\s2p.PL | |
9e42cd94 GS |
938 | $(LINK32) -subsystem:console -out:$@ @<< |
939 | $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ) | |
940 | << | |
c8e599d3 | 941 | $(EMBED_EXE_MANI) |
9e42cd94 | 942 | |
efa50c51 | 943 | $(MINIDIR)\globals$(o) : $(UUDMAP_H) $(BITCOUNT_H) |
9444d213 | 944 | |
6999193b | 945 | $(UUDMAP_H) : $(BITCOUNT_H) |
6999193b NC |
946 | |
947 | $(BITCOUNT_H) : $(GENUUDMAP) | |
efa50c51 | 948 | $(GENUUDMAP) $(UUDMAP_H) $(BITCOUNT_H) |
9444d213 | 949 | |
202d1001 | 950 | $(GENUUDMAP) : $(GENUUDMAP_OBJ) |
9444d213 | 951 | $(LINK32) -subsystem:console -out:$@ @<< |
202d1001 SH |
952 | $(LINK_FLAGS) $(LIBFILES) $(GENUUDMAP_OBJ) |
953 | << | |
954 | $(EMBED_EXE_MANI) | |
9444d213 | 955 | |
9e42cd94 GS |
956 | perlmain.c : runperl.c |
957 | copy runperl.c perlmain.c | |
958 | ||
959 | perlmain$(o) : perlmain.c | |
88c9158a | 960 | $(CC) $(CFLAGS_O:-DPERLDLL=-UPERLDLL) $(OBJOUT_FLAG)$@ -c perlmain.c |
9e42cd94 | 961 | |
4e036e4b VK |
962 | perlmainst.c : runperl.c |
963 | copy runperl.c perlmainst.c | |
964 | ||
965 | perlmainst$(o) : perlmainst.c | |
88c9158a | 966 | $(CC) $(CFLAGS_O) $(OBJOUT_FLAG)$@ -c perlmainst.c |
4e036e4b | 967 | |
931482b7 | 968 | $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) |
56a86867 | 969 | $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \ |
9e42cd94 | 970 | $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) |
c8e599d3 | 971 | $(EMBED_EXE_MANI) |
9e42cd94 GS |
972 | copy $(PERLEXE) $(WPERLEXE) |
973 | $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS | |
9e42cd94 | 974 | |
931482b7 | 975 | $(PERLEXESTATIC): $(PERLSTATICLIB) $(CONFIGPM) $(PERLEXEST_OBJ) $(PERLEXE_RES) |
56a86867 | 976 | $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) \ |
a1f2e719 | 977 | @Extensions_static $(PERLSTATICLIB) /PDB:NONE \ |
4e036e4b VK |
978 | $(LIBFILES) $(PERLEXEST_OBJ) $(SETARGV_OBJ) $(PERLEXE_RES) |
979 | $(EMBED_EXE_MANI) | |
980 | ||
d1a21686 | 981 | MakePPPort: $(MINIPERL) $(CONFIGPM) Extensions_nonxs |
403f501d | 982 | $(MINIPERL) -I..\lib $(ICWD) ..\mkppport |
42e07562 | 983 | |
9dcb9602 | 984 | #------------------------------------------------------------------------------- |
281da5ea | 985 | # There's no direct way to mark a dependency on |
6afd19bc | 986 | # DynaLoader.pm, so this will have to do |
5e4c4c91 | 987 | Extensions: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER) |
a5ca303d | 988 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 989 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic |
595589fa | 990 | |
5e4c4c91 | 991 | Extensions_reonly: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) $(DYNALOADER) |
a5ca303d | 992 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 993 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --dynamic +re |
a24cc0c0 | 994 | |
5e4c4c91 | 995 | Extensions_static : ..\make_ext.pl ..\lib\buildcustomize.pl list_static_libs.pl $(PERLDEP) $(CONFIGPM) |
a5ca303d | 996 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 997 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static |
c6d234b8 | 998 | $(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static |
9e42cd94 | 999 | |
5e4c4c91 | 1000 | Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) |
a34ce875 | 1001 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
a193a2db | 1002 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs |
a34ce875 | 1003 | |
5e4c4c91 | 1004 | $(DYNALOADER) : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) Extensions_nonxs |
281da5ea NC |
1005 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
1006 | $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(EXTDIR) --dynaloader | |
1007 | ||
9e42cd94 | 1008 | Extensions_clean: |
a193a2db | 1009 | -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=clean |
9e42cd94 | 1010 | |
b4dc1df6 | 1011 | Extensions_realclean: |
a193a2db | 1012 | -if exist $(MINIPERL) $(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --all --target=realclean |
b4dc1df6 | 1013 | |
9dcb9602 | 1014 | #------------------------------------------------------------------------------- |
9e42cd94 | 1015 | |
0195b144 | 1016 | doc: $(PERLEXE) ..\pod\perltoc.pod |
b4a41557 | 1017 | $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=$(HTMLDIR) \ |
9e42cd94 GS |
1018 | --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \ |
1019 | --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse | |
1020 | ||
b0b6bf2b AT |
1021 | # Note that this next section is parsed (and regenerated) by pod/buildtoc |
1022 | # so please check that script before making structural changes here | |
1023 | ||
9ddff148 | 1024 | utils: $(PERLEXE) $(X2P) |
9e42cd94 GS |
1025 | cd ..\utils |
1026 | $(MAKE) PERL=$(MINIPERL) | |
1027 | cd ..\pod | |
b0b6bf2b AT |
1028 | copy ..\README.aix ..\pod\perlaix.pod |
1029 | copy ..\README.amiga ..\pod\perlamiga.pod | |
b0b6bf2b AT |
1030 | copy ..\README.beos ..\pod\perlbeos.pod |
1031 | copy ..\README.bs2000 ..\pod\perlbs2000.pod | |
1032 | copy ..\README.ce ..\pod\perlce.pod | |
1033 | copy ..\README.cn ..\pod\perlcn.pod | |
1034 | copy ..\README.cygwin ..\pod\perlcygwin.pod | |
1035 | copy ..\README.dgux ..\pod\perldgux.pod | |
1036 | copy ..\README.dos ..\pod\perldos.pod | |
1037 | copy ..\README.epoc ..\pod\perlepoc.pod | |
1038 | copy ..\README.freebsd ..\pod\perlfreebsd.pod | |
9f968a8d | 1039 | copy ..\README.haiku ..\pod\perlhaiku.pod |
b0b6bf2b AT |
1040 | copy ..\README.hpux ..\pod\perlhpux.pod |
1041 | copy ..\README.hurd ..\pod\perlhurd.pod | |
1042 | copy ..\README.irix ..\pod\perlirix.pod | |
1043 | copy ..\README.jp ..\pod\perljp.pod | |
1044 | copy ..\README.ko ..\pod\perlko.pod | |
6477b319 | 1045 | copy ..\README.linux ..\pod\perllinux.pod |
b0b6bf2b AT |
1046 | copy ..\README.macos ..\pod\perlmacos.pod |
1047 | copy ..\README.macosx ..\pod\perlmacosx.pod | |
b0b6bf2b AT |
1048 | copy ..\README.mpeix ..\pod\perlmpeix.pod |
1049 | copy ..\README.netware ..\pod\perlnetware.pod | |
b0846812 | 1050 | copy ..\README.openbsd ..\pod\perlopenbsd.pod |
b0b6bf2b AT |
1051 | copy ..\README.os2 ..\pod\perlos2.pod |
1052 | copy ..\README.os390 ..\pod\perlos390.pod | |
1053 | copy ..\README.os400 ..\pod\perlos400.pod | |
1054 | copy ..\README.plan9 ..\pod\perlplan9.pod | |
1055 | copy ..\README.qnx ..\pod\perlqnx.pod | |
2f08ed66 | 1056 | copy ..\README.riscos ..\pod\perlriscos.pod |
b0b6bf2b | 1057 | copy ..\README.solaris ..\pod\perlsolaris.pod |
27da23d5 | 1058 | copy ..\README.symbian ..\pod\perlsymbian.pod |
b0b6bf2b AT |
1059 | copy ..\README.tru64 ..\pod\perltru64.pod |
1060 | copy ..\README.tw ..\pod\perltw.pod | |
1061 | copy ..\README.uts ..\pod\perluts.pod | |
1062 | copy ..\README.vmesa ..\pod\perlvmesa.pod | |
b0b6bf2b AT |
1063 | copy ..\README.vos ..\pod\perlvos.pod |
1064 | copy ..\README.win32 ..\pod\perlwin32.pod | |
03f96b76 | 1065 | copy ..\pod\perldelta.pod ..\pod\perl51310delta.pod |
9e42cd94 GS |
1066 | cd ..\win32 |
1067 | $(PERLEXE) $(PL2BAT) $(UTILS) | |
403f501d NC |
1068 | $(PERLEXE) $(ICWD) ..\autodoc.pl .. |
1069 | $(PERLEXE) $(ICWD) ..\pod\perlmodlib.pl -q | |
0195b144 NC |
1070 | |
1071 | ..\pod\perltoc.pod: $(PERLEXE) Extensions Extensions_nonxs | |
87e06404 | 1072 | $(PERLEXE) -f ..\pod\buildtoc --build-toc -q |
9e42cd94 | 1073 | |
b0b6bf2b AT |
1074 | # Note that the pod cleanup in this next section is parsed (and regenerated |
1075 | # by pod/buildtoc so please check that script before making changes here | |
1076 | ||
b4dc1df6 | 1077 | distclean: realclean |
9e42cd94 | 1078 | -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ |
4e036e4b VK |
1079 | $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) \ |
1080 | $(PERLEXESTATIC) $(PERLSTATICLIB) | |
9e42cd94 | 1081 | -del /f *.def *.map |
ca67812f SH |
1082 | -del /f $(LIBDIR)\Encode.pm $(LIBDIR)\encoding.pm $(LIBDIR)\Errno.pm |
1083 | -del /f $(LIBDIR)\Config.pod $(LIBDIR)\POSIX.pod $(LIBDIR)\threads.pm | |
48462a74 | 1084 | -del /f $(LIBDIR)\.exists $(LIBDIR)\attributes.pm $(LIBDIR)\DynaLoader.pm |
9e42cd94 GS |
1085 | -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm |
1086 | -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm | |
1087 | -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm | |
1088 | -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm | |
9e42cd94 GS |
1089 | -del /f $(LIBDIR)\File\Glob.pm |
1090 | -del /f $(LIBDIR)\Storable.pm | |
ca67812f | 1091 | -del /f $(LIBDIR)\Sys\Hostname.pm |
9e42cd94 | 1092 | -del /f $(LIBDIR)\Time\HiRes.pm |
9e42cd94 | 1093 | -del /f $(LIBDIR)\Unicode\Normalize.pm |
4e74047c | 1094 | -del /f $(LIBDIR)\Math\BigInt\FastCalc.pm |
b4ad57f4 | 1095 | -del /f $(LIBDIR)\Win32.pm |
37ca3c28 | 1096 | -del /f $(LIBDIR)\Win32CORE.pm |
00701878 SH |
1097 | -del /f $(LIBDIR)\Win32API\File.pm |
1098 | -del /f $(LIBDIR)\Win32API\File\cFile.pc | |
5e4c4c91 | 1099 | -del /f $(LIBDIR)\buildcustomize.pl |
a85e0e8c | 1100 | -del /f $(DISTDIR)\XSLoader\XSLoader.pm |
1a6c65ed SH |
1101 | -if exist $(LIBDIR)\App rmdir /s /q $(LIBDIR)\App |
1102 | -if exist $(LIBDIR)\Archive rmdir /s /q $(LIBDIR)\Archive | |
1103 | -if exist $(LIBDIR)\Attribute rmdir /s /q $(LIBDIR)\Attribute | |
1104 | -if exist $(LIBDIR)\autodie rmdir /s /q $(LIBDIR)\autodie | |
9e42cd94 | 1105 | -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B |
1a6c65ed SH |
1106 | -if exist $(LIBDIR)\CGI rmdir /s /q $(LIBDIR)\CGI |
1107 | -if exist $(LIBDIR)\CPAN rmdir /s /q $(LIBDIR)\CPAN | |
1108 | -if exist $(LIBDIR)\CPANPLUS rmdir /s /q $(LIBDIR)\CPANPLUS | |
46ffdcf0 | 1109 | -if exist $(LIBDIR)\Compress rmdir /s /q $(LIBDIR)\Compress |
9e42cd94 | 1110 | -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data |
1a6c65ed SH |
1111 | -if exist $(LIBDIR)\Devel rmdir /s /q $(LIBDIR)\Devel |
1112 | -if exist $(LIBDIR)\Digest rmdir /s /q $(LIBDIR)\Digest | |
ca67812f | 1113 | -if exist $(LIBDIR)\Encode rmdir /s /q $(LIBDIR)\Encode |
1a6c65ed SH |
1114 | -if exist $(LIBDIR)\encoding rmdir /s /q $(LIBDIR)\encoding |
1115 | -if exist $(LIBDIR)\ExtUtils\CBuilder rmdir /s /q $(LIBDIR)\ExtUtils\CBuilder | |
1116 | -if exist $(LIBDIR)\ExtUtils\Command rmdir /s /q $(LIBDIR)\ExtUtils\Command | |
1117 | -if exist $(LIBDIR)\ExtUtils\Constant rmdir /s /q $(LIBDIR)\ExtUtils\Constant | |
1118 | -if exist $(LIBDIR)\ExtUtils\Liblist rmdir /s /q $(LIBDIR)\ExtUtils\Liblist | |
1119 | -if exist $(LIBDIR)\ExtUtils\MakeMaker rmdir /s /q $(LIBDIR)\ExtUtils\MakeMaker | |
1120 | -if exist $(LIBDIR)\File\Spec rmdir /s /q $(LIBDIR)\File\Spec | |
1121 | -if exist $(LIBDIR)\Filter rmdir /s /q $(LIBDIR)\Filter | |
96c33d98 | 1122 | -if exist $(LIBDIR)\Hash rmdir /s /q $(LIBDIR)\Hash |
1a6c65ed SH |
1123 | -if exist $(LIBDIR)\I18N\LangTags rmdir /s /q $(LIBDIR)\I18N\LangTags |
1124 | -if exist $(LIBDIR)\inc rmdir /s /q $(LIBDIR)\inc | |
c146e560 | 1125 | -if exist $(LIBDIR)\Module\Pluggable rmdir /s /q $(LIBDIR)\Module\Pluggable |
1a6c65ed SH |
1126 | -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO |
1127 | -if exist $(LIBDIR)\IPC rmdir /s /q $(LIBDIR)\IPC | |
69f57184 | 1128 | -if exist $(LIBDIR)\List rmdir /s /q $(LIBDIR)\List |
1a6c65ed SH |
1129 | -if exist $(LIBDIR)\Locale rmdir /s /q $(LIBDIR)\Locale |
1130 | -if exist $(LIBDIR)\Log rmdir /s /q $(LIBDIR)\Log | |
1131 | -if exist $(LIBDIR)\Math rmdir /s /q $(LIBDIR)\Math | |
1132 | -if exist $(LIBDIR)\Memoize rmdir /s /q $(LIBDIR)\Memoize | |
69f57184 | 1133 | -if exist $(LIBDIR)\MIME rmdir /s /q $(LIBDIR)\MIME |
1a6c65ed SH |
1134 | -if exist $(LIBDIR)\Module rmdir /s /q $(LIBDIR)\Module |
1135 | -if exist $(LIBDIR)\mro rmdir /s /q $(LIBDIR)\mro | |
1136 | -if exist $(LIBDIR)\Net\FTP rmdir /s /q $(LIBDIR)\Net\FTP | |
1137 | -if exist $(LIBDIR)\Object rmdir /s /q $(LIBDIR)\Object | |
1138 | -if exist $(LIBDIR)\Package rmdir /s /q $(LIBDIR)\Package | |
1139 | -if exist $(LIBDIR)\Params rmdir /s /q $(LIBDIR)\Params | |
1140 | -if exist $(LIBDIR)\Parse rmdir /s /q $(LIBDIR)\Parse | |
1141 | -if exist $(LIBDIR)\PerlIO rmdir /s /q $(LIBDIR)\PerlIO | |
1142 | -if exist $(LIBDIR)\Pod\Perldoc rmdir /s /q $(LIBDIR)\Pod\Perldoc | |
1143 | -if exist $(LIBDIR)\Pod\Simple rmdir /s /q $(LIBDIR)\Pod\Simple | |
1144 | -if exist $(LIBDIR)\Pod\Text rmdir /s /q $(LIBDIR)\Pod\Text | |
849a608a | 1145 | -if exist $(LIBDIR)\re rmdir /s /q $(LIBDIR)\re |
9e42cd94 | 1146 | -if exist $(LIBDIR)\Scalar rmdir /s /q $(LIBDIR)\Scalar |
6c4b87ea | 1147 | -if exist $(LIBDIR)\Sys rmdir /s /q $(LIBDIR)\Sys |
1a6c65ed SH |
1148 | -if exist $(LIBDIR)\TAP rmdir /s /q $(LIBDIR)\TAP |
1149 | -if exist $(LIBDIR)\Term\UI rmdir /s /q $(LIBDIR)\Term\UI | |
1150 | -if exist $(LIBDIR)\Test rmdir /s /q $(LIBDIR)\Test | |
1151 | -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread | |
6c4b87ea | 1152 | -if exist $(LIBDIR)\threads rmdir /s /q $(LIBDIR)\threads |
8cf6f931 | 1153 | -if exist $(LIBDIR)\Tie\Hash rmdir /s /q $(LIBDIR)\Tie\Hash |
1a6c65ed | 1154 | -if exist $(LIBDIR)\Unicode\Collate rmdir /s /q $(LIBDIR)\Unicode\Collate |
9e42cd94 | 1155 | -if exist $(LIBDIR)\XS rmdir /s /q $(LIBDIR)\XS |
00701878 | 1156 | -if exist $(LIBDIR)\Win32API rmdir /s /q $(LIBDIR)\Win32API |
1a6c65ed | 1157 | -cd $(PODDIR) && del /f *.html *.bat \ |
03f96b76 | 1158 | perl51310delta.pod perlaix.pod perlamiga.pod perlapi.pod \ |
1178b7e3 NC |
1159 | perlbeos.pod perlbs2000.pod perlce.pod perlcn.pod \ |
1160 | perlcygwin.pod perldgux.pod perldos.pod perlepoc.pod \ | |
b14c7f9a SH |
1161 | perlfreebsd.pod perlhaiku.pod perlhpux.pod perlhurd.pod \ |
1162 | perlintern.pod perlirix.pod perljp.pod perlko.pod perllinux.pod \ | |
1163 | perlmacos.pod perlmacosx.pod perlmodlib.pod perlmpeix.pod \ | |
1164 | perlnetware.pod perlopenbsd.pod perlos2.pod perlos390.pod \ | |
1165 | perlos400.pod perlplan9.pod perlqnx.pod perlriscos.pod \ | |
1166 | perlsolaris.pod perlsymbian.pod perltoc.pod perltru64.pod \ | |
1167 | perltw.pod perluniprops.pod perluts.pod perlvmesa.pod \ | |
1168 | perlvos.pod perlwin32.pod | |
ca67812f | 1169 | -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph pstruct h2xs \ |
de125441 | 1170 | perldoc perlivp dprofpp libnetcfg enc2xs piconv cpan *.bat \ |
deabda19 | 1171 | xsubpp instmodsh prove ptar ptardiff ptargrep cpanp-run-perl cpanp cpan2dist shasum corelist config_data |
ca67812f | 1172 | -cd ..\x2p && del /f find2perl s2p psed *.bat |
19ec6f53 | 1173 | -del /f ..\config.sh perlmain.c dlutils.c config.h.new \ |
4e036e4b | 1174 | perlmainst.c |
9e42cd94 | 1175 | -del /f $(CONFIGPM) |
a148edb6 | 1176 | -del /f ..\lib\Config_git.pl |
9e42cd94 | 1177 | -del /f bin\*.bat |
322fd642 | 1178 | -del /f perllibst.h |
4ebea3c6 | 1179 | -del /f $(PERLEXE_RES) perl.base |
85741d00 | 1180 | -cd .. && del /s *.lib *.map *.pdb *.ilk *.bs *$(o) .exists pm_to_blib ppport.h |
ca67812f | 1181 | -cd $(EXTDIR) && del /s *.def Makefile Makefile.old |
a193a2db | 1182 | -cd $(DISTDIR) && del /s *.def Makefile Makefile.old |
b212a3c6 | 1183 | -cd $(CPANDIR) && del /s *.def Makefile Makefile.old |
9e42cd94 | 1184 | -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) |
9e42cd94 | 1185 | -if exist $(COREDIR) rmdir /s /q $(COREDIR) |
b4a41557 SH |
1186 | -if exist pod2htmd.tmp del pod2htmd.tmp |
1187 | -if exist pod2htmi.tmp del pod2htmi.tmp | |
1188 | -if exist $(HTMLDIR) rmdir /s /q $(HTMLDIR) | |
0279961e | 1189 | -del /f ..\t\test_state |
9e42cd94 GS |
1190 | |
1191 | install : all installbare installhtml | |
1192 | ||
0195b144 | 1193 | installbare : utils ..\pod\perltoc.pod |
9e42cd94 GS |
1194 | $(PERLEXE) ..\installperl |
1195 | if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* | |
5548433c | 1196 | if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.* |
9e42cd94 | 1197 | $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.* |
ec25c072 SH |
1198 | if exist ..\perl*.pdb $(XCOPY) ..\perl*.pdb $(INST_BIN)\*.* |
1199 | if exist ..\x2p\a2p.pdb $(XCOPY) ..\x2p\a2p.pdb $(INST_BIN)\*.* | |
9e42cd94 GS |
1200 | $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.* |
1201 | ||
1202 | installhtml : doc | |
b4a41557 | 1203 | $(RCOPY) $(HTMLDIR)\*.* $(INST_HTML)\*.* |
9e42cd94 GS |
1204 | |
1205 | inst_lib : $(CONFIGPM) | |
9e42cd94 GS |
1206 | $(RCOPY) ..\lib $(INST_LIB)\*.* |
1207 | ||
58fa074c | 1208 | $(UNIDATAFILES) ..\pod\perluniprops.pod : $(MINIPERL) $(CONFIGPM) ..\lib\unicore\mktables Extensions_nonxs |
27a8011f | 1209 | cd ..\lib\unicore && \ |
2a6dc374 | 1210 | ..\$(MINIPERL) -I.. -I..\..\dist\Cwd\lib -I..\..\dist\Cwd mktables -P ..\..\pod -maketest -makelist -p -check $@ $(FIRSTUNIFILE) |
ca12659b NC |
1211 | |
1212 | minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils $(UNIDATAFILES) | |
6c85d12e SH |
1213 | $(XCOPY) $(MINIPERL) ..\t\$(NULL) |
1214 | if exist ..\t\perl.exe del /f ..\t\perl.exe | |
1215 | rename ..\t\miniperl.exe perl.exe | |
9e42cd94 GS |
1216 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1217 | attrib -r ..\t\*.* | |
6c85d12e SH |
1218 | cd ..\t && \ |
1219 | $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t | |
9e42cd94 | 1220 | |
3bef022b | 1221 | test-prep : all utils ../pod/perltoc.pod |
9e42cd94 GS |
1222 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) |
1223 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1224 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
0b4dcbc1 | 1225 | set PERL_STATIC_EXT=$(STATIC_EXT) |
9e42cd94 GS |
1226 | |
1227 | test : test-prep | |
1228 | cd ..\t | |
89087c85 | 1229 | $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) |
9e42cd94 GS |
1230 | cd ..\win32 |
1231 | ||
6ae7e459 YO |
1232 | test-reonly : reonly utils |
1233 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) | |
1234 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1235 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
1236 | cd ..\t | |
a4499558 | 1237 | $(PERLEXE) -I..\lib harness $(OPT) -re \bre\\/ $(EXTRA) |
6ae7e459 | 1238 | cd ..\win32 |
7bcddc65 | 1239 | |
c900f745 | 1240 | regen : |
7bcddc65 YO |
1241 | cd .. |
1242 | regen.pl | |
1243 | cd win32 | |
1244 | ||
9e42cd94 GS |
1245 | test-notty : test-prep |
1246 | set PERL_SKIP_TTY_TEST=1 | |
1247 | cd ..\t | |
89087c85 | 1248 | $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) |
9e42cd94 GS |
1249 | cd ..\win32 |
1250 | ||
b4a93add NK |
1251 | _test : |
1252 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) | |
1253 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) | |
1254 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) | |
1255 | cd ..\t | |
89087c85 | 1256 | $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) |
b4a93add NK |
1257 | cd ..\win32 |
1258 | ||
b4dc1df6 | 1259 | _clean : |
9e42cd94 GS |
1260 | -@$(DEL) miniperlmain$(o) |
1261 | -@$(DEL) $(MINIPERL) | |
1262 | -@$(DEL) perlglob$(o) | |
1263 | -@$(DEL) perlmain$(o) | |
4e036e4b | 1264 | -@$(DEL) perlmainst$(o) |
9e42cd94 GS |
1265 | -@$(DEL) config.w32 |
1266 | -@$(DEL) config.h | |
a148edb6 | 1267 | -@$(DEL) ..\git_version.h |
9e42cd94 GS |
1268 | -@$(DEL) $(GLOBEXE) |
1269 | -@$(DEL) $(PERLEXE) | |
1270 | -@$(DEL) $(WPERLEXE) | |
4e036e4b VK |
1271 | -@$(DEL) $(PERLEXESTATIC) |
1272 | -@$(DEL) $(PERLSTATICLIB) | |
9e42cd94 GS |
1273 | -@$(DEL) $(PERLDLL) |
1274 | -@$(DEL) $(CORE_OBJ) | |
efa50c51 | 1275 | -@$(DEL) $(GENUUDMAP) $(GENUUDMAP_OBJ) $(UUDMAP_H) $(BITCOUNT_H) |
9e42cd94 | 1276 | -if exist $(MINIDIR) rmdir /s /q $(MINIDIR) |
27a8011f | 1277 | -if exist $(UNIDATADIR1) rmdir /s /q $(UNIDATADIR1) |
27a8011f | 1278 | -if exist $(UNIDATADIR2) rmdir /s /q $(UNIDATADIR2) |
ca12659b | 1279 | -@$(DEL) $(UNIDATAFILES) |
27a8011f | 1280 | -@$(DEL) $(WIN32_OBJ) |
9e42cd94 GS |
1281 | -@$(DEL) $(DLL_OBJ) |
1282 | -@$(DEL) $(X2P_OBJ) | |
1283 | -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res | |
1284 | -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat | |
1285 | -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat | |
1286 | -@$(DEL) *.ilk | |
1287 | -@$(DEL) *.pdb | |
9e7cf449 | 1288 | -@$(DEL) Extensions_static |
9e42cd94 | 1289 | |
6e2cec71 | 1290 | clean : Extensions_clean _clean |
b4dc1df6 | 1291 | |
85741d00 | 1292 | realclean : Extensions_realclean _clean |
b4dc1df6 | 1293 | |
9e42cd94 GS |
1294 | # Handy way to run perlbug -ok without having to install and run the |
1295 | # installed perlbug. We don't re-run the tests here - we trust the user. | |
1296 | # Please *don't* use this unless all tests pass. | |
1297 | # If you want to report test failures, use "nmake nok" instead. | |
1298 | ok: utils | |
1299 | $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" | |
1300 | ||
1301 | okfile: utils | |
1302 | $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok | |
1303 | ||
1304 | nok: utils | |
1305 | $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" | |
1306 | ||
1307 | nokfile: utils | |
1308 | $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok |