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