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 | # |
e5a4bac5 |
32 | INST_VER = \5.6.0 |
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. |
729a02f2 |
297 | DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib |
7fac1903 |
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 | |
9036c72f |
336 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. |
eb480a0b |
337 | #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX |
c5be433b |
338 | DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG) |
eb480a0b |
339 | LOCDEFS = -DPERLDLL -DPERL_CORE |
340 | SUBSYS = console |
341 | CXX_FLAG = -TP -GX |
137443ea |
342 | |
f7aeb604 |
343 | !IF "$(USE_PERLCRT)" != "define" |
2fcfac58 |
344 | LIBC = msvcrt.lib |
e7083a8c |
345 | !ELSE |
2fcfac58 |
346 | LIBC = PerlCRT.lib |
e7083a8c |
347 | !ENDIF |
348 | |
fd9459bc |
349 | PERLEXE_RES = |
350 | PERLDLL_RES = |
351 | |
137443ea |
352 | !IF "$(CFG)" == "Debug" |
353 | ! IF "$(CCTYPE)" == "MSVC20" |
9d242898 |
354 | OPTIMIZE = -Od -MD -Z7 -DDEBUGGING |
137443ea |
355 | ! ELSE |
9d242898 |
356 | OPTIMIZE = -Od -MD -Zi -DDEBUGGING |
137443ea |
357 | ! ENDIF |
eb480a0b |
358 | LINK_DBG = -debug -pdb:none |
137443ea |
359 | !ELSE |
74593e1f |
360 | ! IF "$(CFG)" == "Optimize" |
c5be433b |
361 | # -O1 yields smaller code, which turns out to be faster than -O2 |
9d242898 |
362 | #OPTIMIZE = -O2 -MD -DNDEBUG |
363 | OPTIMIZE = -O1 -MD -DNDEBUG |
137443ea |
364 | ! ELSE |
9d242898 |
365 | OPTIMIZE = -Od -MD -DNDEBUG |
137443ea |
366 | ! ENDIF |
eb480a0b |
367 | LINK_DBG = -release |
368 | !ENDIF |
369 | |
c5be433b |
370 | !IF "$(USE_OBJECT)" == "define" |
eb480a0b |
371 | OPTIMIZE = $(OPTIMIZE) $(CXX_FLAG) |
c5be433b |
372 | BUILDOPT = $(BUILDOPT) -DPERL_OBJECT |
137443ea |
373 | !ENDIF |
68dc0745 |
374 | |
f7aeb604 |
375 | !IF "$(USE_PERLCRT)" != "define" |
376 | BUILDOPT = $(BUILDOPT) -DPERL_MSVCRT_READFIX |
377 | !ENDIF |
378 | |
9d242898 |
379 | LIBBASEFILES = $(CRYPT_LIB) \ |
f7aeb604 |
380 | oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \ |
381 | comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ |
382 | netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \ |
eb480a0b |
383 | version.lib odbc32.lib odbccp32.lib |
3e3baf6d |
384 | |
e7083a8c |
385 | # we add LIBC here, since we may be using PerlCRT.dll |
386 | LIBFILES = $(LIBBASEFILES) $(LIBC) |
387 | |
eb480a0b |
388 | CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
389 | $(PCHFLAGS) $(OPTIMIZE) |
28004758 |
390 | LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \ |
391 | -libpath:"$(INST_COREDIR)" \ |
392 | -machine:$(PROCESSOR_ARCHITECTURE) |
eb480a0b |
393 | OBJOUT_FLAG = -Fo |
394 | EXEOUT_FLAG = -Fe |
395 | |
c5be433b |
396 | CFLAGS_O = $(CFLAGS) $(BUILDOPT) |
137443ea |
397 | |
398 | #################### do not edit below this line ####################### |
399 | ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ############## |
400 | |
d56e6723 |
401 | o = .obj |
402 | |
137443ea |
403 | # |
404 | # Rules |
405 | # |
137443ea |
406 | |
fd9459bc |
407 | .SUFFIXES : .c $(o) .dll .lib .exe .rc .res |
d56e6723 |
408 | |
409 | .c$(o): |
eb480a0b |
410 | $(CC) -c -I$(<D) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $< |
411 | |
412 | .y.c: |
413 | $(NOOP) |
137443ea |
414 | |
d56e6723 |
415 | $(o).dll: |
3e3baf6d |
416 | $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \ |
dc050285 |
417 | -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL) |
68dc0745 |
418 | |
fd9459bc |
419 | .rc.res: |
e9ff6d27 |
420 | $(RSC) -i.. $< |
fd9459bc |
421 | |
68dc0745 |
422 | # |
68dc0745 |
423 | # various targets |
3075ddba |
424 | PERLIMPLIB = ..\perl56.lib |
425 | PERLDLL = ..\perl56.dll |
26618a56 |
426 | |
eb480a0b |
427 | MINIPERL = ..\miniperl.exe |
428 | MINIDIR = .\mini |
429 | PERLEXE = ..\perl.exe |
7766f137 |
430 | WPERLEXE = ..\wperl.exe |
eb480a0b |
431 | GLOBEXE = ..\perlglob.exe |
432 | CONFIGPM = ..\lib\Config.pm |
433 | MINIMOD = ..\lib\ExtUtils\Miniperl.pm |
434 | X2P = ..\x2p\a2p.exe |
435 | |
436 | PL2BAT = bin\pl2bat.pl |
437 | GLOBBAT = bin\perlglob.bat |
438 | |
4a71ed0c |
439 | UTILS = \ |
440 | ..\utils\h2ph \ |
441 | ..\utils\splain \ |
95667ae4 |
442 | ..\utils\dprofpp \ |
4a71ed0c |
443 | ..\utils\perlbug \ |
444 | ..\utils\pl2pm \ |
445 | ..\utils\c2ph \ |
446 | ..\utils\h2xs \ |
447 | ..\utils\perldoc \ |
4a71ed0c |
448 | ..\utils\perlcc \ |
449 | ..\pod\checkpods \ |
450 | ..\pod\pod2html \ |
451 | ..\pod\pod2latex \ |
452 | ..\pod\pod2man \ |
453 | ..\pod\pod2text \ |
360aca43 |
454 | ..\pod\pod2usage \ |
455 | ..\pod\podchecker \ |
456 | ..\pod\podselect \ |
4a71ed0c |
457 | ..\x2p\find2perl \ |
458 | ..\x2p\s2p \ |
c4bbdec3 |
459 | bin\exetype.pl \ |
4a71ed0c |
460 | bin\runperl.pl \ |
461 | bin\pl2bat.pl \ |
462 | bin\perlglob.pl \ |
463 | bin\search.pl |
464 | |
eb480a0b |
465 | MAKE = nmake -nologo |
466 | |
467 | CFGSH_TMPL = config.vc |
468 | CFGH_TMPL = config_H.vc |
e7083a8c |
469 | |
eb480a0b |
470 | XCOPY = xcopy /f /r /i /d |
471 | RCOPY = xcopy /f /r /i /e /d |
472 | NOOP = @echo |
473 | NULL = |
1c1c7f20 |
474 | |
68dc0745 |
475 | # |
476 | # filenames given to xsubpp must have forward slashes (since it puts |
477 | # full pathnames in #line strings) |
eb480a0b |
478 | XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \ |
479 | -C++ -prototypes |
480 | |
852c2e52 |
481 | MICROCORE_SRC = \ |
eb480a0b |
482 | ..\av.c \ |
eb480a0b |
483 | ..\deb.c \ |
484 | ..\doio.c \ |
485 | ..\doop.c \ |
486 | ..\dump.c \ |
487 | ..\globals.c \ |
488 | ..\gv.c \ |
489 | ..\hv.c \ |
490 | ..\mg.c \ |
491 | ..\op.c \ |
492 | ..\perl.c \ |
51371543 |
493 | ..\perlapi.c \ |
eb480a0b |
494 | ..\perly.c \ |
495 | ..\pp.c \ |
496 | ..\pp_ctl.c \ |
497 | ..\pp_hot.c \ |
498 | ..\pp_sys.c \ |
499 | ..\regcomp.c \ |
500 | ..\regexec.c \ |
501 | ..\run.c \ |
502 | ..\scope.c \ |
503 | ..\sv.c \ |
504 | ..\taint.c \ |
505 | ..\toke.c \ |
506 | ..\universal.c \ |
a176fa2a |
507 | ..\utf8.c \ |
349fd7b7 |
508 | ..\util.c \ |
509 | ..\xsutils.c |
eb480a0b |
510 | |
0cb96387 |
511 | EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c |
512 | |
eb480a0b |
513 | !IF "$(PERL_MALLOC)" == "define" |
852c2e52 |
514 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c |
eb480a0b |
515 | !ENDIF |
516 | |
c5be433b |
517 | !IF "$(USE_OBJECT)" != "define" |
852c2e52 |
518 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c |
eb480a0b |
519 | !ENDIF |
520 | |
521 | WIN32_SRC = \ |
522 | .\win32.c \ |
c44d3fdb |
523 | .\win32sck.c \ |
524 | .\win32thread.c |
eb480a0b |
525 | |
8d9b2e3c |
526 | !IF "$(CRYPT_SRC)" != "" |
527 | WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC) |
528 | !ENDIF |
529 | |
eb480a0b |
530 | DLL_SRC = $(DYNALOADER).c |
531 | |
eb480a0b |
532 | X2P_SRC = \ |
533 | ..\x2p\a2p.c \ |
534 | ..\x2p\hash.c \ |
535 | ..\x2p\str.c \ |
536 | ..\x2p\util.c \ |
537 | ..\x2p\walk.c |
538 | |
852c2e52 |
539 | CORE_NOCFG_H = \ |
eb480a0b |
540 | ..\av.h \ |
eb480a0b |
541 | ..\cop.h \ |
542 | ..\cv.h \ |
543 | ..\dosish.h \ |
544 | ..\embed.h \ |
545 | ..\form.h \ |
546 | ..\gv.h \ |
547 | ..\handy.h \ |
548 | ..\hv.h \ |
0f4eea8f |
549 | ..\iperlsys.h \ |
eb480a0b |
550 | ..\mg.h \ |
551 | ..\nostdio.h \ |
552 | ..\op.h \ |
553 | ..\opcode.h \ |
554 | ..\perl.h \ |
51371543 |
555 | ..\perlapi.h \ |
eb480a0b |
556 | ..\perlsdio.h \ |
557 | ..\perlsfio.h \ |
558 | ..\perly.h \ |
559 | ..\pp.h \ |
560 | ..\proto.h \ |
561 | ..\regexp.h \ |
562 | ..\scope.h \ |
563 | ..\sv.h \ |
564 | ..\thread.h \ |
565 | ..\unixish.h \ |
a176fa2a |
566 | ..\utf8.h \ |
eb480a0b |
567 | ..\util.h \ |
2985053f |
568 | ..\warnings.h \ |
eb480a0b |
569 | ..\XSUB.h \ |
eb480a0b |
570 | ..\EXTERN.h \ |
571 | ..\perlvars.h \ |
572 | ..\intrpvar.h \ |
573 | ..\thrdvar.h \ |
574 | .\include\dirent.h \ |
575 | .\include\netdb.h \ |
576 | .\include\sys\socket.h \ |
f8fb7c90 |
577 | .\win32.h |
eb480a0b |
578 | |
852c2e52 |
579 | CORE_H = $(CORE_NOCFG_H) .\config.h |
580 | |
581 | MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj) |
582 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj) |
eb480a0b |
583 | WIN32_OBJ = $(WIN32_SRC:.c=.obj) |
852c2e52 |
584 | MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \ |
585 | $(MINIDIR)\miniperlmain$(o) \ |
586 | $(MINIDIR)\perlio$(o) |
eb480a0b |
587 | MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\) |
588 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) |
eb480a0b |
589 | DLL_OBJ = $(DLL_SRC:.c=.obj) |
590 | X2P_OBJ = $(X2P_SRC:.c=.obj) |
591 | |
eb480a0b |
592 | PERLDLL_OBJ = $(CORE_OBJ) |
593 | PERLEXE_OBJ = perlmain$(o) |
594 | |
eb480a0b |
595 | PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
0cb96387 |
596 | #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
eb480a0b |
597 | |
baed7233 |
598 | !IF "$(USE_SETARGV)" != "" |
599 | SETARGV_OBJ = setargv$(o) |
600 | !ENDIF |
601 | |
823edd99 |
602 | DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \ |
f91101c9 |
603 | Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \ |
604 | Sys/Hostname |
eb480a0b |
605 | STATIC_EXT = DynaLoader |
eab60bb1 |
606 | NONXS_EXT = Errno |
eb480a0b |
607 | |
608 | DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader |
609 | SOCKET = $(EXTDIR)\Socket\Socket |
610 | FCNTL = $(EXTDIR)\Fcntl\Fcntl |
611 | OPCODE = $(EXTDIR)\Opcode\Opcode |
612 | SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File |
613 | IO = $(EXTDIR)\IO\IO |
614 | POSIX = $(EXTDIR)\POSIX\POSIX |
615 | ATTRS = $(EXTDIR)\attrs\attrs |
616 | THREAD = $(EXTDIR)\Thread\Thread |
617 | B = $(EXTDIR)\B\B |
823edd99 |
618 | RE = $(EXTDIR)\re\re |
619 | DUMPER = $(EXTDIR)\Data\Dumper\Dumper |
eab60bb1 |
620 | ERRNO = $(EXTDIR)\Errno\Errno |
3967c732 |
621 | PEEK = $(EXTDIR)\Devel\Peek\Peek |
a6c40364 |
622 | BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader |
38b3a85b |
623 | DPROF = $(EXTDIR)\Devel\DProf\DProf |
4f49e16e |
624 | GLOB = $(EXTDIR)\File\Glob\Glob |
f91101c9 |
625 | HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname |
eb480a0b |
626 | |
627 | SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll |
628 | FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll |
629 | OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll |
630 | SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll |
631 | IO_DLL = $(AUTODIR)\IO\IO.dll |
632 | POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll |
633 | ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll |
634 | THREAD_DLL = $(AUTODIR)\Thread\Thread.dll |
635 | B_DLL = $(AUTODIR)\B\B.dll |
823edd99 |
636 | DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll |
3967c732 |
637 | PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll |
15e52e56 |
638 | RE_DLL = $(AUTODIR)\re\re.dll |
b295d113 |
639 | BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll |
38b3a85b |
640 | DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll |
4f49e16e |
641 | GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll |
f91101c9 |
642 | HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll |
eb480a0b |
643 | |
eab60bb1 |
644 | ERRNO_PM = $(LIBDIR)\Errno.pm |
645 | |
eb480a0b |
646 | EXTENSION_C = \ |
647 | $(SOCKET).c \ |
648 | $(FCNTL).c \ |
649 | $(OPCODE).c \ |
650 | $(SDBM_FILE).c \ |
651 | $(IO).c \ |
652 | $(POSIX).c \ |
653 | $(ATTRS).c \ |
654 | $(THREAD).c \ |
15e52e56 |
655 | $(RE).c \ |
823edd99 |
656 | $(DUMPER).c \ |
3967c732 |
657 | $(PEEK).c \ |
b295d113 |
658 | $(B).c \ |
38b3a85b |
659 | $(BYTELOADER).c \ |
4f49e16e |
660 | $(DPROF).c \ |
f91101c9 |
661 | $(GLOB).c \ |
662 | $(HOSTNAME).c |
eb480a0b |
663 | |
664 | EXTENSION_DLL = \ |
665 | $(SOCKET_DLL) \ |
666 | $(FCNTL_DLL) \ |
667 | $(OPCODE_DLL) \ |
668 | $(SDBM_FILE_DLL)\ |
669 | $(IO_DLL) \ |
670 | $(POSIX_DLL) \ |
51aa15f3 |
671 | $(ATTRS_DLL) \ |
823edd99 |
672 | $(DUMPER_DLL) \ |
3967c732 |
673 | $(PEEK_DLL) \ |
b295d113 |
674 | $(B_DLL) \ |
c5be433b |
675 | $(RE_DLL) \ |
676 | $(THREAD_DLL) \ |
38b3a85b |
677 | $(BYTELOADER_DLL) \ |
4f49e16e |
678 | $(DPROF_DLL) \ |
f91101c9 |
679 | $(GLOB_DLL) \ |
680 | $(HOSTNAME_DLL) |
26ca90b6 |
681 | |
eab60bb1 |
682 | EXTENSION_PM = \ |
683 | $(ERRNO_PM) |
684 | |
eb480a0b |
685 | POD2HTML = $(PODDIR)\pod2html |
686 | POD2MAN = $(PODDIR)\pod2man |
687 | POD2LATEX = $(PODDIR)\pod2latex |
688 | POD2TEXT = $(PODDIR)\pod2text |
689 | |
690 | CFG_VARS = \ |
691 | "INST_DRV=$(INST_DRV)" \ |
692 | "INST_TOP=$(INST_TOP)" \ |
e5a95ffb |
693 | "INST_VER=$(INST_VER)" \ |
0cb96387 |
694 | "INST_ARCH=$(INST_ARCH)" \ |
eb480a0b |
695 | "archname=$(ARCHNAME)" \ |
696 | "cc=$(CC)" \ |
c5be433b |
697 | "ccflags=$(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \ |
eb480a0b |
698 | "cf_email=$(EMAIL)" \ |
699 | "d_crypt=$(D_CRYPT)" \ |
700 | "d_mymalloc=$(PERL_MALLOC)" \ |
701 | "libs=$(LIBFILES)" \ |
80252599 |
702 | "incpath=$(CCINCDIR:"=\")" \ |
703 | "libperl=$(PERLIMPLIB:..\=)" \ |
704 | "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \ |
eb480a0b |
705 | "libc=$(LIBC)" \ |
706 | "make=nmake" \ |
707 | "static_ext=$(STATIC_EXT)" \ |
708 | "dynamic_ext=$(DYNAMIC_EXT)" \ |
eab60bb1 |
709 | "nonxs_ext=$(NONXS_EXT)" \ |
aaacdc8b |
710 | "use5005threads=$(USE_5005THREADS)" \ |
711 | "useithreads=$(USE_ITHREADS)" \ |
712 | "usethreads=$(USE_5005THREADS)" \ |
b86a2fa7 |
713 | "usemultiplicity=$(USE_MULTI)" \ |
80252599 |
714 | "LINK_FLAGS=$(LINK_FLAGS:"=\")" \ |
715 | "optimize=$(OPTIMIZE:"=\")" |
924b3ec4 |
716 | |
137443ea |
717 | # |
718 | # Top targets |
719 | # |
0a753a76 |
720 | |
9e5f57de |
721 | all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \ |
c5be433b |
722 | $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM) |
0a753a76 |
723 | |
d56e6723 |
724 | $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c |
0a753a76 |
725 | |
137443ea |
726 | #------------------------------------------------------------ |
0a753a76 |
727 | |
eb480a0b |
728 | $(GLOBEXE) : perlglob$(o) |
dc050285 |
729 | $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \ |
d56e6723 |
730 | perlglob$(o) setargv$(o) |
0a753a76 |
731 | |
d56e6723 |
732 | perlglob$(o) : perlglob.c |
137443ea |
733 | |
3e3baf6d |
734 | config.w32 : $(CFGSH_TMPL) |
735 | copy $(CFGSH_TMPL) config.w32 |
736 | |
d55594ae |
737 | .\config.h : $(CFGH_TMPL) |
3e3baf6d |
738 | -del /f config.h |
739 | copy $(CFGH_TMPL) config.h |
740 | |
137443ea |
741 | ..\config.sh : config.w32 $(MINIPERL) config_sh.PL |
924b3ec4 |
742 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh |
137443ea |
743 | |
ac4c12e7 |
744 | # this target is for when changes to the main config.sh happen |
745 | # edit config.{b,v,g}c and make this target once for each supported |
746 | # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`) |
747 | regen_config_h: |
748 | perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh |
749 | cd .. |
750 | -del /f perl.exe |
751 | perl configpm |
752 | cd win32 |
753 | -del /f $(CFGH_TMPL) |
80252599 |
754 | -mkdir $(COREDIR) |
e5a95ffb |
755 | -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)" |
ac4c12e7 |
756 | rename config.h $(CFGH_TMPL) |
757 | |
83437bec |
758 | $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl |
137443ea |
759 | cd .. && miniperl configpm |
c90c0ff4 |
760 | if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL) |
d07c2202 |
761 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
762 | $(XCOPY) *.h $(COREDIR)\*.* |
15e52e56 |
763 | $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.* |
d07c2202 |
764 | $(RCOPY) include $(COREDIR)\*.* |
e5a95ffb |
765 | $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \ |
80252599 |
766 | || $(MAKE) /$(MAKEFLAGS) $(CONFIGPM) |
137443ea |
767 | |
eb480a0b |
768 | $(MINIPERL) : $(MINIDIR) $(MINI_OBJ) |
137443ea |
769 | $(LINK32) -subsystem:console -out:$@ @<< |
eb480a0b |
770 | $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ) |
137443ea |
771 | << |
772 | |
eb480a0b |
773 | $(MINIDIR) : |
774 | if not exist "$(MINIDIR)" mkdir "$(MINIDIR)" |
775 | |
852c2e52 |
776 | $(MINICORE_OBJ) : $(CORE_NOCFG_H) |
fe0bfefd |
777 | $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c |
eb480a0b |
778 | |
852c2e52 |
779 | $(MINIWIN32_OBJ) : $(CORE_NOCFG_H) |
eb480a0b |
780 | $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c |
781 | |
7766f137 |
782 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c |
f8fb7c90 |
783 | # This is the only file that depends on perlhost.h, vmem.h, and vdir.h |
7766f137 |
784 | !IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef" |
f8fb7c90 |
785 | perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h |
7766f137 |
786 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c |
787 | !ENDIF |
788 | |
852c2e52 |
789 | # 1. we don't want to rebuild miniperl.exe when config.h changes |
790 | # 2. we don't want to rebuild miniperl.exe with non-default config.h |
791 | $(MINI_OBJ) : $(CORE_NOCFG_H) |
792 | |
eb480a0b |
793 | $(WIN32_OBJ) : $(CORE_H) |
794 | $(CORE_OBJ) : $(CORE_H) |
eb480a0b |
795 | $(DLL_OBJ) : $(CORE_H) |
eb480a0b |
796 | $(X2P_OBJ) : $(CORE_H) |
0a753a76 |
797 | |
549a6b10 |
798 | perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl |
799 | $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \ |
910dfcc8 |
800 | CCTYPE=$(CCTYPE) > perldll.def |
0a753a76 |
801 | |
fd9459bc |
802 | $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) |
9d242898 |
803 | $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<< |
804 | $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES) |
137443ea |
805 | << |
d07c2202 |
806 | $(XCOPY) $(PERLIMPLIB) $(COREDIR) |
137443ea |
807 | |
83437bec |
808 | $(MINIMOD) : $(MINIPERL) ..\minimod.pl |
809 | cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm |
810 | |
eb480a0b |
811 | ..\x2p\a2p$(o) : ..\x2p\a2p.c |
812 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c |
813 | |
814 | ..\x2p\hash$(o) : ..\x2p\hash.c |
815 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c |
816 | |
817 | ..\x2p\str$(o) : ..\x2p\str.c |
818 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c |
819 | |
820 | ..\x2p\util$(o) : ..\x2p\util.c |
821 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c |
822 | |
823 | ..\x2p\walk$(o) : ..\x2p\walk.c |
824 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c |
825 | |
826 | $(X2P) : $(MINIPERL) $(X2P_OBJ) |
827 | $(MINIPERL) ..\x2p\find2perl.PL |
828 | $(MINIPERL) ..\x2p\s2p.PL |
d07c2202 |
829 | $(LINK32) -subsystem:console -out:$@ @<< |
eb480a0b |
830 | $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ) |
d07c2202 |
831 | << |
832 | |
83437bec |
833 | perlmain.c : runperl.c |
0a753a76 |
834 | copy runperl.c perlmain.c |
137443ea |
835 | |
d56e6723 |
836 | perlmain$(o) : perlmain.c |
8957be0a |
837 | $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c |
137443ea |
838 | |
fd9459bc |
839 | $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) |
9d242898 |
840 | $(LINK32) -subsystem:console -out:$@ -stack:0x8000000 $(LINK_FLAGS) \ |
841 | $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) |
7766f137 |
842 | copy $(PERLEXE) $(WPERLEXE) |
2f8d1947 |
843 | $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS |
0a753a76 |
844 | copy splittree.pl .. |
eb480a0b |
845 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
0a753a76 |
846 | |
137443ea |
847 | $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM) |
eb480a0b |
848 | if not exist $(AUTODIR) mkdir $(AUTODIR) |
a1dd9325 |
849 | cd $(EXTDIR)\$(*B) |
bfab39a2 |
850 | ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL |
8454a2ba |
851 | ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL |
a1dd9325 |
852 | cd ..\..\win32 |
68dc0745 |
853 | $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL) |
8454a2ba |
854 | $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL) |
68dc0745 |
855 | cd $(EXTDIR)\$(*B) |
856 | $(XSUBPP) dl_win32.xs > $(*B).c |
0a753a76 |
857 | cd ..\..\win32 |
858 | |
68dc0745 |
859 | $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs |
860 | copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs |
0a753a76 |
861 | |
823edd99 |
862 | $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs |
863 | cd $(EXTDIR)\Data\$(*B) |
864 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
865 | $(MAKE) |
866 | cd ..\..\..\win32 |
867 | |
38b3a85b |
868 | $(DPROF_DLL): $(PERLEXE) $(DPROF).xs |
869 | cd $(EXTDIR)\Devel\$(*B) |
870 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
871 | $(MAKE) |
872 | cd ..\..\..\win32 |
873 | |
4f49e16e |
874 | $(GLOB_DLL): $(PERLEXE) $(GLOB).xs |
875 | cd $(EXTDIR)\File\$(*B) |
876 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
877 | $(MAKE) |
878 | cd ..\..\..\win32 |
879 | |
3967c732 |
880 | $(PEEK_DLL): $(PERLEXE) $(PEEK).xs |
881 | cd $(EXTDIR)\Devel\$(*B) |
882 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
883 | $(MAKE) |
884 | cd ..\..\..\win32 |
885 | |
15e52e56 |
886 | $(RE_DLL): $(PERLEXE) $(RE).xs |
887 | cd $(EXTDIR)\$(*B) |
888 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
889 | $(MAKE) |
890 | cd ..\..\win32 |
891 | |
2a321948 |
892 | $(B_DLL): $(PERLEXE) $(B).xs |
a98bd6f4 |
893 | cd $(EXTDIR)\$(*B) |
894 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
895 | $(MAKE) |
896 | cd ..\..\win32 |
897 | |
d55594ae |
898 | $(THREAD_DLL): $(PERLEXE) $(THREAD).xs |
059e4e88 |
899 | cd $(EXTDIR)\$(*B) |
900 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
901 | $(MAKE) |
902 | cd ..\..\win32 |
903 | |
2a321948 |
904 | $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs |
905 | cd $(EXTDIR)\$(*B) |
906 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
907 | $(MAKE) |
908 | cd ..\..\win32 |
d55594ae |
909 | |
6dead956 |
910 | $(POSIX_DLL): $(PERLEXE) $(POSIX).xs |
911 | cd $(EXTDIR)\$(*B) |
912 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
913 | $(MAKE) |
914 | cd ..\..\win32 |
915 | |
eb480a0b |
916 | $(IO_DLL): $(PERLEXE) $(IO).xs |
68dc0745 |
917 | cd $(EXTDIR)\$(*B) |
137443ea |
918 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
919 | $(MAKE) |
0a753a76 |
920 | cd ..\..\win32 |
921 | |
137443ea |
922 | $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs |
68dc0745 |
923 | cd $(EXTDIR)\$(*B) |
137443ea |
924 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
925 | $(MAKE) |
68dc0745 |
926 | cd ..\..\win32 |
0a753a76 |
927 | |
137443ea |
928 | $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs |
68dc0745 |
929 | cd $(EXTDIR)\$(*B) |
137443ea |
930 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
931 | $(MAKE) |
0a753a76 |
932 | cd ..\..\win32 |
933 | |
137443ea |
934 | $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs |
68dc0745 |
935 | cd $(EXTDIR)\$(*B) |
137443ea |
936 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
937 | $(MAKE) |
68dc0745 |
938 | cd ..\..\win32 |
0a753a76 |
939 | |
059e4e88 |
940 | $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs |
68dc0745 |
941 | cd $(EXTDIR)\$(*B) |
137443ea |
942 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
943 | $(MAKE) |
0a753a76 |
944 | cd ..\..\win32 |
945 | |
f91101c9 |
946 | $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs |
947 | cd $(EXTDIR)\Sys\$(*B) |
948 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
949 | $(MAKE) |
950 | cd ..\..\..\win32 |
951 | |
b295d113 |
952 | $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs |
953 | cd $(EXTDIR)\$(*B) |
954 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
955 | $(MAKE) |
956 | cd ..\..\win32 |
957 | |
eab60bb1 |
958 | $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL |
959 | cd $(EXTDIR)\$(*B) |
960 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
961 | $(MAKE) |
962 | cd ..\..\win32 |
963 | |
68dc0745 |
964 | doc: $(PERLEXE) |
d07c2202 |
965 | $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \ |
b3b61bd8 |
966 | --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \ |
3e3baf6d |
967 | --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse |
68dc0745 |
968 | |
4a71ed0c |
969 | utils: $(PERLEXE) $(X2P) |
3fe9a6f1 |
970 | cd ..\utils |
eb480a0b |
971 | $(MAKE) PERL=$(MINIPERL) |
4a71ed0c |
972 | cd ..\pod |
66aa1127 |
973 | copy ..\README.win32 .\perlwin32.pod |
4a71ed0c |
974 | $(MAKE) -f ..\win32\pod.mak converters |
3fe9a6f1 |
975 | cd ..\win32 |
4a71ed0c |
976 | $(PERLEXE) $(PL2BAT) $(UTILS) |
3fe9a6f1 |
977 | |
137443ea |
978 | distclean: clean |
9e5f57de |
979 | -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ |
83437bec |
980 | $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) |
3e3baf6d |
981 | -del /f *.def *.map |
eab60bb1 |
982 | -del /f $(EXTENSION_DLL) $(EXTENSION_PM) |
983 | -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm |
eb480a0b |
984 | -del /f $(EXTDIR)\DynaLoader\dl_win32.xs |
985 | -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm |
8454a2ba |
986 | -del /f $(LIBDIR)\XSLoader.pm |
eb480a0b |
987 | -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm |
988 | -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm |
989 | -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm |
15e52e56 |
990 | -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm |
b295d113 |
991 | -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm |
38b3a85b |
992 | -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm |
4f49e16e |
993 | -del /f $(LIBDIR)\File\Glob.pm |
eb480a0b |
994 | -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO |
995 | -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread |
996 | -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B |
823edd99 |
997 | -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data |
68dc0745 |
998 | -del /f $(PODDIR)\*.html |
999 | -del /f $(PODDIR)\*.bat |
eb480a0b |
1000 | cd ..\utils |
5920a0ba |
1001 | -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp |
eb480a0b |
1002 | -del /f *.bat |
1003 | cd ..\win32 |
1004 | cd ..\x2p |
1005 | -del /f find2perl s2p |
1006 | -del /f *.bat |
1007 | cd ..\win32 |
1008 | -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new |
1009 | -del /f $(CONFIGPM) |
d444a431 |
1010 | -del /f bin\*.bat |
3e3baf6d |
1011 | cd $(EXTDIR) |
22c35a8c |
1012 | -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib |
3e3baf6d |
1013 | cd ..\win32 |
eb480a0b |
1014 | -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR) |
1015 | -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR) |
68dc0745 |
1016 | |
4a71ed0c |
1017 | install : all installbare installhtml |
6dead956 |
1018 | |
4a71ed0c |
1019 | installbare : utils |
d07c2202 |
1020 | $(PERLEXE) ..\installperl |
7766f137 |
1021 | if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* |
68dc0745 |
1022 | $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.* |
e5a95ffb |
1023 | $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.* |
6dead956 |
1024 | |
1025 | installhtml : doc |
3e3baf6d |
1026 | $(RCOPY) html\*.* $(INST_HTML)\*.* |
68dc0745 |
1027 | |
137443ea |
1028 | inst_lib : $(CONFIGPM) |
68dc0745 |
1029 | copy splittree.pl .. |
eb480a0b |
1030 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
c90c0ff4 |
1031 | $(RCOPY) ..\lib $(INST_LIB)\*.* |
0a753a76 |
1032 | |
dfb634a9 |
1033 | minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils |
137443ea |
1034 | $(XCOPY) $(MINIPERL) ..\t\perl.exe |
1035 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1036 | attrib -r ..\t\*.* |
1037 | copy test ..\t |
1038 | cd ..\t |
1039 | $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t |
1040 | cd ..\win32 |
1041 | |
dfb634a9 |
1042 | test-prep : all utils |
68dc0745 |
1043 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) |
1044 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) |
1045 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
fb73857a |
1046 | |
1047 | test : test-prep |
1048 | cd ..\t |
1049 | $(PERLEXE) -I..\lib harness |
1050 | cd ..\win32 |
1051 | |
1052 | test-notty : test-prep |
1053 | set PERL_SKIP_TTY_TEST=1 |
137443ea |
1054 | cd ..\t |
1055 | $(PERLEXE) -I..\lib harness |
68dc0745 |
1056 | cd ..\win32 |
137443ea |
1057 | |
2b32313b |
1058 | test-wide : test-prep |
1059 | set HARNESS_PERL_SWITCHES=-C |
1060 | cd ..\t |
1061 | $(PERLEXE) -I..\lib harness |
1062 | cd ..\win32 |
1063 | |
1064 | test-wide-notty : test-prep |
1065 | set PERL_SKIP_TTY_TEST=1 |
1066 | set HARNESS_PERL_SWITCHES=-C |
1067 | cd ..\t |
1068 | $(PERLEXE) -I..\lib harness |
1069 | cd ..\win32 |
1070 | |
137443ea |
1071 | clean : |
d56e6723 |
1072 | -@erase miniperlmain$(o) |
137443ea |
1073 | -@erase $(MINIPERL) |
d56e6723 |
1074 | -@erase perlglob$(o) |
1075 | -@erase perlmain$(o) |
3e3baf6d |
1076 | -@erase config.w32 |
1077 | -@erase /f config.h |
137443ea |
1078 | -@erase $(GLOBEXE) |
1079 | -@erase $(PERLEXE) |
7766f137 |
1080 | -@erase $(WPERLEXE) |
137443ea |
1081 | -@erase $(PERLDLL) |
1082 | -@erase $(CORE_OBJ) |
eb480a0b |
1083 | -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR) |
137443ea |
1084 | -@erase $(WIN32_OBJ) |
1085 | -@erase $(DLL_OBJ) |
d07c2202 |
1086 | -@erase $(X2P_OBJ) |
c5be433b |
1087 | -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res |
d444a431 |
1088 | -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat |
d07c2202 |
1089 | -@erase ..\x2p\*.exe ..\x2p\*.bat |
137443ea |
1090 | -@erase *.ilk |
1091 | -@erase *.pdb |