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