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