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