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