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