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