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 |
5 | # (perl56.dll). Also makes individual DLLs for the XS extensions. |
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 | # |
32 | INST_VER = \5.6.0 |
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 |
431 | PERLIMPLIB = ..\perl56.lib |
432 | PERLDLL = ..\perl56.dll |
433 | |
434 | MINIPERL = ..\miniperl.exe |
435 | MINIDIR = .\mini |
436 | PERLEXE = ..\perl.exe |
437 | WPERLEXE = ..\wperl.exe |
438 | GLOBEXE = ..\perlglob.exe |
439 | CONFIGPM = ..\lib\Config.pm |
440 | MINIMOD = ..\lib\ExtUtils\Miniperl.pm |
441 | X2P = ..\x2p\a2p.exe |
442 | |
443 | PL2BAT = bin\pl2bat.pl |
444 | GLOBBAT = bin\perlglob.bat |
445 | |
446 | UTILS = \ |
447 | ..\utils\h2ph \ |
448 | ..\utils\splain \ |
449 | ..\utils\dprofpp \ |
450 | ..\utils\perlbug \ |
451 | ..\utils\pl2pm \ |
452 | ..\utils\c2ph \ |
453 | ..\utils\h2xs \ |
454 | ..\utils\perldoc \ |
455 | ..\utils\perlcc \ |
456 | ..\pod\checkpods \ |
457 | ..\pod\pod2html \ |
458 | ..\pod\pod2latex \ |
459 | ..\pod\pod2man \ |
460 | ..\pod\pod2text \ |
461 | ..\pod\pod2usage \ |
462 | ..\pod\podchecker \ |
463 | ..\pod\podselect \ |
464 | ..\x2p\find2perl \ |
465 | ..\x2p\s2p \ |
466 | bin\exetype.pl \ |
467 | bin\runperl.pl \ |
468 | bin\pl2bat.pl \ |
469 | bin\perlglob.pl \ |
470 | bin\search.pl |
471 | |
472 | MAKE = nmake -nologo |
473 | |
474 | CFGSH_TMPL = config.vc |
475 | CFGH_TMPL = config_H.vc |
476 | |
477 | XCOPY = xcopy /f /r /i /d |
478 | RCOPY = xcopy /f /r /i /e /d |
479 | NOOP = @echo |
480 | NULL = |
481 | |
00b02797 |
482 | DEL = bin\mdelete.bat |
483 | |
a9226780 |
484 | # |
485 | # filenames given to xsubpp must have forward slashes (since it puts |
486 | # full pathnames in #line strings) |
487 | XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \ |
488 | -C++ -prototypes |
489 | |
490 | MICROCORE_SRC = \ |
491 | ..\av.c \ |
492 | ..\deb.c \ |
493 | ..\doio.c \ |
494 | ..\doop.c \ |
495 | ..\dump.c \ |
496 | ..\globals.c \ |
497 | ..\gv.c \ |
498 | ..\hv.c \ |
499 | ..\mg.c \ |
500 | ..\op.c \ |
501 | ..\perl.c \ |
502 | ..\perlapi.c \ |
503 | ..\perly.c \ |
504 | ..\pp.c \ |
505 | ..\pp_ctl.c \ |
506 | ..\pp_hot.c \ |
507 | ..\pp_sys.c \ |
508 | ..\regcomp.c \ |
509 | ..\regexec.c \ |
510 | ..\run.c \ |
511 | ..\scope.c \ |
512 | ..\sv.c \ |
513 | ..\taint.c \ |
514 | ..\toke.c \ |
515 | ..\universal.c \ |
516 | ..\utf8.c \ |
517 | ..\util.c \ |
518 | ..\xsutils.c |
519 | |
520 | EXTRACORE_SRC = $(EXTRACORE_SRC) perllib.c |
521 | |
522 | !IF "$(PERL_MALLOC)" == "define" |
523 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\malloc.c |
524 | !ENDIF |
525 | |
526 | !IF "$(USE_OBJECT)" != "define" |
527 | EXTRACORE_SRC = $(EXTRACORE_SRC) ..\perlio.c |
528 | !ENDIF |
529 | |
530 | WIN32_SRC = \ |
531 | .\win32.c \ |
532 | .\win32sck.c \ |
533 | .\win32thread.c |
534 | |
535 | !IF "$(CRYPT_SRC)" != "" |
536 | WIN32_SRC = $(WIN32_SRC) .\$(CRYPT_SRC) |
537 | !ENDIF |
538 | |
539 | DLL_SRC = $(DYNALOADER).c |
540 | |
541 | X2P_SRC = \ |
542 | ..\x2p\a2p.c \ |
543 | ..\x2p\hash.c \ |
544 | ..\x2p\str.c \ |
545 | ..\x2p\util.c \ |
546 | ..\x2p\walk.c |
547 | |
548 | CORE_NOCFG_H = \ |
549 | ..\av.h \ |
550 | ..\cop.h \ |
551 | ..\cv.h \ |
552 | ..\dosish.h \ |
553 | ..\embed.h \ |
554 | ..\form.h \ |
555 | ..\gv.h \ |
556 | ..\handy.h \ |
557 | ..\hv.h \ |
558 | ..\iperlsys.h \ |
559 | ..\mg.h \ |
560 | ..\nostdio.h \ |
561 | ..\op.h \ |
562 | ..\opcode.h \ |
563 | ..\perl.h \ |
564 | ..\perlapi.h \ |
565 | ..\perlsdio.h \ |
566 | ..\perlsfio.h \ |
567 | ..\perly.h \ |
568 | ..\pp.h \ |
569 | ..\proto.h \ |
570 | ..\regexp.h \ |
571 | ..\scope.h \ |
572 | ..\sv.h \ |
573 | ..\thread.h \ |
574 | ..\unixish.h \ |
575 | ..\utf8.h \ |
576 | ..\util.h \ |
577 | ..\warnings.h \ |
578 | ..\XSUB.h \ |
579 | ..\EXTERN.h \ |
580 | ..\perlvars.h \ |
581 | ..\intrpvar.h \ |
582 | ..\thrdvar.h \ |
583 | .\include\dirent.h \ |
584 | .\include\netdb.h \ |
585 | .\include\sys\socket.h \ |
586 | .\win32.h |
587 | |
588 | CORE_H = $(CORE_NOCFG_H) .\config.h |
589 | |
590 | MICROCORE_OBJ = $(MICROCORE_SRC:.c=.obj) |
591 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:.c=.obj) |
592 | WIN32_OBJ = $(WIN32_SRC:.c=.obj) |
593 | MINICORE_OBJ = $(MICROCORE_OBJ:..\=.\mini\) \ |
594 | $(MINIDIR)\miniperlmain$(o) \ |
595 | $(MINIDIR)\perlio$(o) |
596 | MINIWIN32_OBJ = $(WIN32_OBJ:.\=.\mini\) |
597 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) |
598 | DLL_OBJ = $(DLL_SRC:.c=.obj) |
599 | X2P_OBJ = $(X2P_SRC:.c=.obj) |
600 | |
601 | PERLDLL_OBJ = $(CORE_OBJ) |
602 | PERLEXE_OBJ = perlmain$(o) |
603 | |
604 | PERLDLL_OBJ = $(PERLDLL_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
605 | #PERLEXE_OBJ = $(PERLEXE_OBJ) $(WIN32_OBJ) $(DLL_OBJ) |
606 | |
607 | !IF "$(USE_SETARGV)" != "" |
608 | SETARGV_OBJ = setargv$(o) |
609 | !ENDIF |
610 | |
611 | DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \ |
612 | Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \ |
613 | Sys/Hostname Storable |
614 | STATIC_EXT = DynaLoader |
615 | NONXS_EXT = Errno |
616 | |
617 | DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader |
618 | SOCKET = $(EXTDIR)\Socket\Socket |
619 | FCNTL = $(EXTDIR)\Fcntl\Fcntl |
620 | OPCODE = $(EXTDIR)\Opcode\Opcode |
621 | SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File |
622 | IO = $(EXTDIR)\IO\IO |
623 | POSIX = $(EXTDIR)\POSIX\POSIX |
624 | ATTRS = $(EXTDIR)\attrs\attrs |
625 | THREAD = $(EXTDIR)\Thread\Thread |
626 | B = $(EXTDIR)\B\B |
627 | RE = $(EXTDIR)\re\re |
628 | DUMPER = $(EXTDIR)\Data\Dumper\Dumper |
629 | ERRNO = $(EXTDIR)\Errno\Errno |
630 | PEEK = $(EXTDIR)\Devel\Peek\Peek |
631 | BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader |
632 | DPROF = $(EXTDIR)\Devel\DProf\DProf |
633 | GLOB = $(EXTDIR)\File\Glob\Glob |
634 | HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname |
635 | STORABLE = $(EXTDIR)\Storable\Storable |
636 | |
637 | SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll |
638 | FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll |
639 | OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll |
640 | SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll |
641 | IO_DLL = $(AUTODIR)\IO\IO.dll |
642 | POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll |
643 | ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll |
644 | THREAD_DLL = $(AUTODIR)\Thread\Thread.dll |
645 | B_DLL = $(AUTODIR)\B\B.dll |
646 | DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll |
647 | PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll |
648 | RE_DLL = $(AUTODIR)\re\re.dll |
649 | BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll |
650 | DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll |
651 | GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll |
652 | HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll |
653 | STORABLE_DLL = $(AUTODIR)\Storable\Storable.dll |
654 | |
655 | ERRNO_PM = $(LIBDIR)\Errno.pm |
656 | |
657 | EXTENSION_C = \ |
658 | $(SOCKET).c \ |
659 | $(FCNTL).c \ |
660 | $(OPCODE).c \ |
661 | $(SDBM_FILE).c \ |
662 | $(IO).c \ |
663 | $(POSIX).c \ |
664 | $(ATTRS).c \ |
665 | $(THREAD).c \ |
666 | $(RE).c \ |
667 | $(DUMPER).c \ |
668 | $(PEEK).c \ |
669 | $(B).c \ |
670 | $(BYTELOADER).c \ |
671 | $(DPROF).c \ |
672 | $(GLOB).c \ |
673 | $(HOSTNAME).c \ |
674 | $(STORABLE).c |
675 | |
676 | EXTENSION_DLL = \ |
677 | $(SOCKET_DLL) \ |
678 | $(FCNTL_DLL) \ |
679 | $(OPCODE_DLL) \ |
680 | $(SDBM_FILE_DLL)\ |
681 | $(IO_DLL) \ |
682 | $(POSIX_DLL) \ |
683 | $(ATTRS_DLL) \ |
684 | $(DUMPER_DLL) \ |
685 | $(PEEK_DLL) \ |
686 | $(B_DLL) \ |
687 | $(RE_DLL) \ |
688 | $(THREAD_DLL) \ |
689 | $(BYTELOADER_DLL) \ |
690 | $(DPROF_DLL) \ |
691 | $(GLOB_DLL) \ |
692 | $(HOSTNAME_DLL) \ |
693 | $(STORABLE_DLL) |
694 | |
695 | EXTENSION_PM = \ |
696 | $(ERRNO_PM) |
697 | |
698 | POD2HTML = $(PODDIR)\pod2html |
699 | POD2MAN = $(PODDIR)\pod2man |
700 | POD2LATEX = $(PODDIR)\pod2latex |
701 | POD2TEXT = $(PODDIR)\pod2text |
702 | |
703 | CFG_VARS = \ |
704 | "INST_DRV=$(INST_DRV)" \ |
705 | "INST_TOP=$(INST_TOP)" \ |
706 | "INST_VER=$(INST_VER)" \ |
707 | "INST_ARCH=$(INST_ARCH)" \ |
708 | "archname=$(ARCHNAME)" \ |
709 | "cc=$(CC)" \ |
fd826df2 |
710 | "ld=$(LINK32)" \ |
00b02797 |
711 | "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $(BUILDOPT)" \ |
712 | "cf_email=$(EMAIL)" \ |
a9226780 |
713 | "d_crypt=$(D_CRYPT)" \ |
714 | "d_mymalloc=$(PERL_MALLOC)" \ |
715 | "libs=$(LIBFILES)" \ |
716 | "incpath=$(CCINCDIR:"=\")" \ |
717 | "libperl=$(PERLIMPLIB:..\=)" \ |
718 | "libpth=$(CCLIBDIR:"=\");$(EXTRALIBDIRS:"=\")" \ |
719 | "libc=$(LIBC)" \ |
720 | "make=nmake" \ |
721 | "static_ext=$(STATIC_EXT)" \ |
722 | "dynamic_ext=$(DYNAMIC_EXT)" \ |
723 | "nonxs_ext=$(NONXS_EXT)" \ |
724 | "use5005threads=$(USE_5005THREADS)" \ |
725 | "useithreads=$(USE_ITHREADS)" \ |
726 | "usethreads=$(USE_5005THREADS)" \ |
727 | "usemultiplicity=$(USE_MULTI)" \ |
728 | "LINK_FLAGS=$(LINK_FLAGS:"=\")" \ |
729 | "optimize=$(OPTIMIZE:"=\")" |
730 | |
731 | # |
732 | # Top targets |
733 | # |
734 | |
735 | all : .\config.h $(GLOBEXE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \ |
736 | $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM) |
737 | |
738 | $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c |
739 | |
740 | #------------------------------------------------------------ |
741 | |
742 | $(GLOBEXE) : perlglob$(o) |
743 | $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \ |
744 | perlglob$(o) setargv$(o) |
745 | |
746 | perlglob$(o) : perlglob.c |
747 | |
748 | config.w32 : $(CFGSH_TMPL) |
749 | copy $(CFGSH_TMPL) config.w32 |
750 | |
751 | .\config.h : $(CFGH_TMPL) |
752 | -del /f config.h |
753 | copy $(CFGH_TMPL) config.h |
754 | |
755 | ..\config.sh : config.w32 $(MINIPERL) config_sh.PL |
756 | $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) config.w32 > ..\config.sh |
757 | |
758 | # this target is for when changes to the main config.sh happen |
759 | # edit config.{b,v,g}c and make this target once for each supported |
760 | # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`) |
761 | regen_config_h: |
762 | perl config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh |
763 | cd .. |
764 | -del /f perl.exe |
765 | perl configpm |
766 | cd win32 |
767 | -del /f $(CFGH_TMPL) |
768 | -mkdir $(COREDIR) |
769 | -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)" |
770 | rename config.h $(CFGH_TMPL) |
771 | |
772 | $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl |
00b02797 |
773 | cd .. |
774 | miniperl configpm |
775 | cd win32 |
a9226780 |
776 | if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL) |
777 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
778 | $(XCOPY) *.h $(COREDIR)\*.* |
779 | $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.* |
780 | $(RCOPY) include $(COREDIR)\*.* |
00b02797 |
781 | -$(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" |
782 | if errorlevel 1 $(MAKE) /$(MAKEFLAGS) $(CONFIGPM) |
a9226780 |
783 | |
784 | $(MINIPERL) : $(MINIDIR) $(MINI_OBJ) |
785 | $(LINK32) -subsystem:console -out:$@ @<< |
786 | $(LINK_FLAGS) $(LIBFILES) $(MINI_OBJ) |
787 | << |
788 | |
789 | $(MINIDIR) : |
790 | if not exist "$(MINIDIR)" mkdir "$(MINIDIR)" |
791 | |
792 | $(MINICORE_OBJ) : $(CORE_NOCFG_H) |
793 | $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*F).c |
794 | |
795 | $(MINIWIN32_OBJ) : $(CORE_NOCFG_H) |
796 | $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*F).c |
797 | |
798 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c |
799 | # This is the only file that depends on perlhost.h, vmem.h, and vdir.h |
800 | !IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef" |
801 | perllib$(o) : perllib.c .\perlhost.h .\vdir.h .\vmem.h |
802 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c |
803 | !ENDIF |
804 | |
805 | # 1. we don't want to rebuild miniperl.exe when config.h changes |
806 | # 2. we don't want to rebuild miniperl.exe with non-default config.h |
807 | $(MINI_OBJ) : $(CORE_NOCFG_H) |
808 | |
809 | $(WIN32_OBJ) : $(CORE_H) |
810 | $(CORE_OBJ) : $(CORE_H) |
811 | $(DLL_OBJ) : $(CORE_H) |
812 | $(X2P_OBJ) : $(CORE_H) |
813 | |
814 | perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl |
815 | $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) $(BUILDOPT) \ |
816 | CCTYPE=$(CCTYPE) > perldll.def |
817 | |
818 | $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) |
819 | $(LINK32) -dll -def:perldll.def -base:0x28000000 -out:$@ @<< |
820 | $(LINK_FLAGS) $(DELAYLOAD) $(LIBFILES) $(PERLDLL_OBJ) $(PERLDLL_RES) |
821 | << |
822 | $(XCOPY) $(PERLIMPLIB) $(COREDIR) |
823 | |
824 | $(MINIMOD) : $(MINIPERL) ..\minimod.pl |
00b02797 |
825 | cd .. |
826 | miniperl minimod.pl > lib\ExtUtils\Miniperl.pm |
827 | cd win32 |
a9226780 |
828 | |
829 | ..\x2p\a2p$(o) : ..\x2p\a2p.c |
830 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c |
831 | |
832 | ..\x2p\hash$(o) : ..\x2p\hash.c |
833 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c |
834 | |
835 | ..\x2p\str$(o) : ..\x2p\str.c |
836 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c |
837 | |
838 | ..\x2p\util$(o) : ..\x2p\util.c |
839 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c |
840 | |
841 | ..\x2p\walk$(o) : ..\x2p\walk.c |
842 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c |
843 | |
844 | $(X2P) : $(MINIPERL) $(X2P_OBJ) |
845 | $(MINIPERL) ..\x2p\find2perl.PL |
846 | $(MINIPERL) ..\x2p\s2p.PL |
847 | $(LINK32) -subsystem:console -out:$@ @<< |
848 | $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ) |
849 | << |
850 | |
851 | perlmain.c : runperl.c |
852 | copy runperl.c perlmain.c |
853 | |
854 | perlmain$(o) : perlmain.c |
855 | $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c |
856 | |
857 | $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) |
858 | $(LINK32) -subsystem:console -out:$@ -stack:0x1000000 $(LINK_FLAGS) \ |
859 | $(LIBFILES) $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) |
860 | copy $(PERLEXE) $(WPERLEXE) |
861 | $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS |
862 | copy splittree.pl .. |
863 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
864 | |
865 | $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM) |
866 | if not exist $(AUTODIR) mkdir $(AUTODIR) |
867 | cd $(EXTDIR)\$(*B) |
868 | ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL |
869 | ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL |
870 | cd ..\..\win32 |
871 | $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL) |
872 | $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL) |
873 | cd $(EXTDIR)\$(*B) |
874 | $(XSUBPP) dl_win32.xs > $(*B).c |
875 | cd ..\..\win32 |
876 | |
877 | $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs |
878 | copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs |
879 | |
880 | $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs |
881 | cd $(EXTDIR)\Data\$(*B) |
882 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
883 | $(MAKE) |
884 | cd ..\..\..\win32 |
885 | |
886 | $(DPROF_DLL): $(PERLEXE) $(DPROF).xs |
887 | cd $(EXTDIR)\Devel\$(*B) |
888 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
889 | $(MAKE) |
890 | cd ..\..\..\win32 |
891 | |
892 | $(GLOB_DLL): $(PERLEXE) $(GLOB).xs |
893 | cd $(EXTDIR)\File\$(*B) |
894 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
895 | $(MAKE) |
896 | cd ..\..\..\win32 |
897 | |
898 | $(PEEK_DLL): $(PERLEXE) $(PEEK).xs |
899 | cd $(EXTDIR)\Devel\$(*B) |
900 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
901 | $(MAKE) |
902 | cd ..\..\..\win32 |
903 | |
904 | $(RE_DLL): $(PERLEXE) $(RE).xs |
905 | cd $(EXTDIR)\$(*B) |
906 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
907 | $(MAKE) |
908 | cd ..\..\win32 |
909 | |
910 | $(B_DLL): $(PERLEXE) $(B).xs |
911 | cd $(EXTDIR)\$(*B) |
912 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
913 | $(MAKE) |
914 | cd ..\..\win32 |
915 | |
916 | $(THREAD_DLL): $(PERLEXE) $(THREAD).xs |
917 | cd $(EXTDIR)\$(*B) |
918 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
919 | $(MAKE) |
920 | cd ..\..\win32 |
921 | |
922 | $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs |
923 | cd $(EXTDIR)\$(*B) |
924 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
925 | $(MAKE) |
926 | cd ..\..\win32 |
927 | |
928 | $(POSIX_DLL): $(PERLEXE) $(POSIX).xs |
929 | cd $(EXTDIR)\$(*B) |
930 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
931 | $(MAKE) |
932 | cd ..\..\win32 |
933 | |
934 | $(IO_DLL): $(PERLEXE) $(IO).xs |
935 | cd $(EXTDIR)\$(*B) |
936 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
937 | $(MAKE) |
938 | cd ..\..\win32 |
939 | |
940 | $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs |
941 | cd $(EXTDIR)\$(*B) |
942 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
943 | $(MAKE) |
944 | cd ..\..\win32 |
945 | |
946 | $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs |
947 | cd $(EXTDIR)\$(*B) |
948 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
949 | $(MAKE) |
950 | cd ..\..\win32 |
951 | |
952 | $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs |
953 | cd $(EXTDIR)\$(*B) |
954 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
955 | $(MAKE) |
956 | cd ..\..\win32 |
957 | |
958 | $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs |
959 | cd $(EXTDIR)\$(*B) |
960 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
961 | $(MAKE) |
962 | cd ..\..\win32 |
963 | |
964 | $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs |
965 | cd $(EXTDIR)\Sys\$(*B) |
966 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
967 | $(MAKE) |
968 | cd ..\..\..\win32 |
969 | |
970 | $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs |
971 | cd $(EXTDIR)\$(*B) |
972 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
973 | $(MAKE) |
974 | cd ..\..\win32 |
975 | |
976 | $(STORABLE_DLL): $(PERLEXE) $(STORABLE).xs |
977 | cd $(EXTDIR)\$(*B) |
978 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
979 | $(MAKE) |
980 | cd ..\..\win32 |
981 | |
982 | $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL |
983 | cd $(EXTDIR)\$(*B) |
984 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
985 | $(MAKE) |
986 | cd ..\..\win32 |
987 | |
988 | doc: $(PERLEXE) |
989 | $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \ |
990 | --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML::=|)" \ |
991 | --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse |
992 | |
993 | utils: $(PERLEXE) $(X2P) |
994 | cd ..\utils |
995 | $(MAKE) PERL=$(MINIPERL) |
996 | cd ..\pod |
997 | copy ..\README.amiga .\perlamiga.pod |
998 | copy ..\README.cygwin .\perlcygwin.pod |
999 | copy ..\README.dos .\perldos.pod |
1000 | copy ..\README.hpux .\perlhpux.pod |
1001 | copy ..\README.machten .\perlmachten.pod |
1002 | copy ..\README.os2 .\perlos2.pod |
1003 | copy ..\vms\perlvms.pod .\perlvms.pod |
1004 | copy ..\README.win32 .\perlwin32.pod |
1005 | $(MAKE) -f ..\win32\pod.mak converters |
1006 | cd ..\lib |
1007 | $(PERLEXE) lib_pm.PL |
1008 | cd ..\win32 |
1009 | $(PERLEXE) $(PL2BAT) $(UTILS) |
1010 | |
1011 | distclean: clean |
1012 | -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ |
1013 | $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD) |
1014 | -del /f *.def *.map |
1015 | -del /f $(EXTENSION_DLL) $(EXTENSION_PM) |
1016 | -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm |
1017 | -del /f $(EXTDIR)\DynaLoader\dl_win32.xs |
1018 | -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm |
1019 | -del /f $(LIBDIR)\XSLoader.pm |
1020 | -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm |
1021 | -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm |
1022 | -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm |
1023 | -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm |
1024 | -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm |
1025 | -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm |
1026 | -del /f $(LIBDIR)\File\Glob.pm |
1027 | -del /f $(LIBDIR)\Storable.pm |
00b02797 |
1028 | -if exist $(LIBDIR)\IO rmdir /s /q $(LIBDIR)\IO |
1029 | -rmdir /s $(LIBDIR)\IO |
1030 | -if exist $(LIBDIR)\Thread rmdir /s /q $(LIBDIR)\Thread |
1031 | -rmdir /s $(LIBDIR)\Thread |
1032 | -if exist $(LIBDIR)\B rmdir /s /q $(LIBDIR)\B |
1033 | -rmdir /s $(LIBDIR)\B |
1034 | -if exist $(LIBDIR)\Data rmdir /s /q $(LIBDIR)\Data |
1035 | -rmdir /s $(LIBDIR)\Data |
a9226780 |
1036 | -del /f $(PODDIR)\*.html |
1037 | -del /f $(PODDIR)\*.bat |
1038 | cd ..\utils |
1039 | -del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc dprofpp |
1040 | -del /f *.bat |
1041 | cd ..\win32 |
1042 | cd ..\x2p |
1043 | -del /f find2perl s2p |
1044 | -del /f *.bat |
1045 | cd ..\win32 |
1046 | -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new |
1047 | -del /f $(CONFIGPM) |
1048 | -del /f bin\*.bat |
1049 | cd $(EXTDIR) |
1050 | -del /s *.lib *.def *.map *.pdb *.bs Makefile *$(o) pm_to_blib |
1051 | cd ..\win32 |
00b02797 |
1052 | -if exist $(AUTODIR) rmdir /s /q $(AUTODIR) |
1053 | -rmdir /s $(AUTODIR) |
1054 | -if exist $(COREDIR) rmdir /s /q $(COREDIR) |
1055 | -rmdir /s $(COREDIR) |
a9226780 |
1056 | |
1057 | install : all installbare installhtml |
1058 | |
1059 | installbare : utils |
1060 | $(PERLEXE) ..\installperl |
1061 | if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* |
1062 | $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.* |
1063 | $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.* |
1064 | |
1065 | installhtml : doc |
1066 | $(RCOPY) html\*.* $(INST_HTML)\*.* |
1067 | |
1068 | inst_lib : $(CONFIGPM) |
1069 | copy splittree.pl .. |
1070 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
1071 | $(RCOPY) ..\lib $(INST_LIB)\*.* |
1072 | |
1073 | minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils |
1074 | $(XCOPY) $(MINIPERL) ..\t\perl.exe |
1075 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1076 | attrib -r ..\t\*.* |
1077 | copy test ..\t |
1078 | cd ..\t |
1079 | $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t |
1080 | cd ..\win32 |
1081 | |
1082 | test-prep : all utils |
1083 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) |
1084 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) |
1085 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1086 | |
1087 | test : test-prep |
1088 | cd ..\t |
1089 | $(PERLEXE) -I..\lib harness |
1090 | cd ..\win32 |
1091 | |
1092 | test-notty : test-prep |
1093 | set PERL_SKIP_TTY_TEST=1 |
1094 | cd ..\t |
1095 | $(PERLEXE) -I..\lib harness |
1096 | cd ..\win32 |
1097 | |
1098 | test-wide : test-prep |
1099 | set HARNESS_PERL_SWITCHES=-C |
1100 | cd ..\t |
1101 | $(PERLEXE) -I..\lib harness |
1102 | cd ..\win32 |
1103 | |
1104 | test-wide-notty : test-prep |
1105 | set PERL_SKIP_TTY_TEST=1 |
1106 | set HARNESS_PERL_SWITCHES=-C |
1107 | cd ..\t |
1108 | $(PERLEXE) -I..\lib harness |
1109 | cd ..\win32 |
1110 | |
1111 | clean : |
00b02797 |
1112 | -@$(DEL) miniperlmain$(o) |
1113 | -@$(DEL) $(MINIPERL) |
1114 | -@$(DEL) perlglob$(o) |
1115 | -@$(DEL) perlmain$(o) |
1116 | -@$(DEL) config.w32 |
1117 | -@$(DEL) /f config.h |
1118 | -@$(DEL) $(GLOBEXE) |
1119 | -@$(DEL) $(PERLEXE) |
1120 | -@$(DEL) $(WPERLEXE) |
1121 | -@$(DEL) $(PERLDLL) |
1122 | -@$(DEL) $(CORE_OBJ) |
1123 | -if exist $(MINIDIR) deltree /y $(MINIDIR) |
1124 | -@$(DEL) $(WIN32_OBJ) |
1125 | -@$(DEL) $(DLL_OBJ) |
1126 | -@$(DEL) $(X2P_OBJ) |
1127 | -@$(DEL) ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp *.res |
1128 | -@$(DEL) ..\t\*.exe ..\t\*.dll ..\t\*.bat |
1129 | -@$(DEL) ..\x2p\*.exe ..\x2p\*.bat |
1130 | -@$(DEL) *.ilk |
1131 | -@$(DEL) *.pdb |
a9226780 |
1132 | |
1133 | # Handy way to run perlbug -ok without having to install and run the |
1134 | # installed perlbug. We don't re-run the tests here - we trust the user. |
1135 | # Please *don't* use this unless all tests pass. |
1136 | # If you want to report test failures, use "nmake nok" instead. |
1137 | ok: utils |
1138 | $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" |
1139 | |
1140 | okfile: utils |
1141 | $(PERLEXE) -I..\lib ..\utils\perlbug -ok -s "(UNINSTALLED)" -F perl.ok |
1142 | |
1143 | nok: utils |
1144 | $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" |
1145 | |
1146 | nokfile: utils |
1147 | $(PERLEXE) -I..\lib ..\utils\perlbug -nok -s "(UNINSTALLED)" -F perl.nok |