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