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