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