Commit | Line | Data |
08aa1457 |
1 | # |
e7083a8c |
2 | # Makefile to build perl on Windows NT using DMAKE. |
d56e6723 |
3 | # Supported compilers: |
5db10396 |
4 | # Visual C++ 2.0 thro 6.0 |
d56e6723 |
5 | # Borland C++ 5.02 |
5db10396 |
6 | # Mingw32 with gcc-2.95.2 or better **experimental** |
08aa1457 |
7 | # |
8 | # This is set up to build a perl.exe that runs off a shared library |
9 | # (perl.dll). Also makes individual DLLs for the XS extensions. |
10 | # |
11 | |
e7083a8c |
12 | ## |
69e1fe5e |
13 | ## Make sure you read README.win32 *before* you mess with anything here! |
14 | ## |
15 | |
16 | ## |
e7083a8c |
17 | ## Build configuration. Edit the values below to suit your needs. |
18 | ## |
19 | |
08aa1457 |
20 | # |
7a958ec3 |
21 | # Set these to wherever you want "dmake install" to put your |
08aa1457 |
22 | # newly built perl. |
e7083a8c |
23 | # |
d56e6723 |
24 | INST_DRV *= c: |
e5a95ffb |
25 | INST_TOP *= $(INST_DRV)\perl |
26 | |
e7083a8c |
27 | # |
e5a95ffb |
28 | # Comment this out if you DON'T want your perl installation to be versioned. |
29 | # This means that the new installation will overwrite any files from the |
30 | # old installation at the same INST_TOP location. Leaving it enabled is |
31 | # the safest route, as perl adds the extra version directory to all the |
32 | # locations it installs files to. If you disable it, an alternative |
33 | # versioned installation can be obtained by setting INST_TOP above to a |
34 | # path that includes an arbitrary version string. |
e7083a8c |
35 | # |
bf6c18a6 |
36 | INST_VER *= \5.5.660 |
d56e6723 |
37 | |
38 | # |
0cb96387 |
39 | # Comment this out if you DON'T want your perl installation to have |
40 | # architecture specific components. This means that architecture- |
41 | # specific files will be installed along with the architecture-neutral |
42 | # files. Leaving it enabled is safer and more flexible, in case you |
43 | # want to build multiple flavors of perl and install them together in |
44 | # the same location. Commenting it out gives you a simpler |
45 | # installation that is easier to understand for beginners. |
46 | # |
47 | INST_ARCH *= \$(ARCHNAME) |
48 | |
49 | # |
d08ede9a |
50 | # uncomment to enable multiple interpreters. This is need for fork() |
51 | # emulation. |
c5be433b |
52 | # |
d08ede9a |
53 | #USE_MULTI *= define |
08aa1457 |
54 | |
55 | # |
d08ede9a |
56 | # XXX WARNING! This option is still very experimental. May be broken. |
c5be433b |
57 | # |
d08ede9a |
58 | # Beginnings of interpreter cloning/threads; still very incomplete. |
59 | # This should be enabled to get the fork() emulation. This needs |
60 | # USE_MULTI as well. |
b86a2fa7 |
61 | # |
d08ede9a |
62 | #USE_ITHREADS *= define |
b86a2fa7 |
63 | |
64 | # |
d08ede9a |
65 | # uncomment to enable the implicit "host" layer for all system calls |
66 | # made by perl. This needs USE_MULTI above. This is also needed to |
67 | # get fork(). |
c5be433b |
68 | # |
d08ede9a |
69 | #USE_IMP_SYS *= define |
c5be433b |
70 | |
71 | # |
d08ede9a |
72 | # WARNING! This option is deprecated and will eventually go away (enable |
73 | # USE_ITHREADS instead). |
7766f137 |
74 | # |
d08ede9a |
75 | # uncomment to enable threads-capabilities. This is incompatible with |
76 | # USE_ITHREADS, and is only here for people who may have come to rely |
77 | # on the experimental Thread support that was in 5.005. |
7766f137 |
78 | # |
d08ede9a |
79 | #USE_5005THREADS *= define |
7766f137 |
80 | |
81 | # |
d08ede9a |
82 | # WARNING! This option is deprecated and will eventually go away (enable |
83 | # USE_MULTI instead). |
7766f137 |
84 | # |
d08ede9a |
85 | # uncomment next line if you want to use the PERL_OBJECT build option. |
86 | # DO NOT ENABLE unless you have legacy code that relies on the C++ |
87 | # CPerlObj class that was available in 5.005. This cannot be enabled |
88 | # if you ask for USE_5005THREADS above. |
89 | # |
90 | #USE_OBJECT *= define |
7766f137 |
91 | |
92 | # |
7fac1903 |
93 | # uncomment exactly one of the following |
94 | # |
95 | # Visual C++ 2.x |
d56e6723 |
96 | #CCTYPE *= MSVC20 |
7fac1903 |
97 | # Visual C++ > 2.x and < 6.x |
d56e6723 |
98 | #CCTYPE *= MSVC |
7fac1903 |
99 | # Visual C++ >= 6.x |
100 | #CCTYPE *= MSVC60 |
101 | # Borland 5.02 or later |
4a52a3da |
102 | CCTYPE *= BORLAND |
5db10396 |
103 | # mingw32/gcc-2.95.2 or better |
4a52a3da |
104 | #CCTYPE *= GCC |
08aa1457 |
105 | |
106 | # |
04dc9db9 |
107 | # uncomment this if you are compiling under Windows 95/98 and command.com |
108 | # (not needed if you're running under 4DOS/NT 6.01 or later) |
109 | #IS_WIN95 *= define |
110 | |
111 | # |
08aa1457 |
112 | # uncomment next line if you want debug version of perl (big,slow) |
7fac1903 |
113 | # If not enabled, we automatically try to use maximum optimization |
114 | # with all compilers that are known to have a working optimizer. |
e7083a8c |
115 | # |
d56e6723 |
116 | #CFG *= Debug |
08aa1457 |
117 | |
118 | # |
5db10396 |
119 | # uncomment to enable use of PerlCRT.DLL when using the Visual C compiler. |
120 | # It has patches that fix known bugs in older versions of MSVCRT.DLL. |
121 | # This currently requires VC 5.0 with Service Pack 3 or later. |
b89743e8 |
122 | # Get it from CPAN at http://www.perl.com/CPAN/authors/id/D/DO/DOUGL/ |
e9ee4811 |
123 | # and follow the directions in the package to install. |
e7083a8c |
124 | # |
f7aeb604 |
125 | # Not recommended if you have VC 6.x and you're not running Windows 9x. |
126 | # |
e7083a8c |
127 | #USE_PERLCRT *= define |
128 | |
129 | # |
baed7233 |
130 | # uncomment to enable linking with setargv.obj under the Visual C |
131 | # compiler. Setting this options enables perl to expand wildcards in |
132 | # arguments, but it may be harder to use alternate methods like |
133 | # File::DosGlob that are more powerful. This option is supported only with |
134 | # Visual C. |
135 | # |
136 | #USE_SETARGV *= define |
137 | |
138 | # |
26618a56 |
139 | # if you have the source for des_fcrypt(), uncomment this and make sure the |
8d9b2e3c |
140 | # file exists (see README.win32). File should be located in the same |
ff95b63e |
141 | # directory as this file. |
e7083a8c |
142 | # |
2d77217b |
143 | #CRYPT_SRC *= fcrypt.c |
26618a56 |
144 | |
145 | # |
146 | # if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a |
147 | # library, uncomment this, and make sure the library exists (see README.win32) |
a1dd9325 |
148 | # Specify the full pathname of the library. |
e7083a8c |
149 | # |
2d77217b |
150 | #CRYPT_LIB *= fcrypt.lib |
26618a56 |
151 | |
152 | # |
1c1c7f20 |
153 | # set this if you wish to use perl's malloc |
154 | # WARNING: Turning this on/off WILL break binary compatibility with extensions |
5fd76c3e |
155 | # you may have compiled with/without it. Be prepared to recompile all |
156 | # extensions if you change the default. Currently, this cannot be enabled |
d08ede9a |
157 | # if you ask for USE_IMP_SYS above. |
e7083a8c |
158 | # |
ac4c12e7 |
159 | #PERL_MALLOC *= define |
1c1c7f20 |
160 | |
161 | # |
08aa1457 |
162 | # set the install locations of the compiler include/libraries |
69e1fe5e |
163 | # Running VCVARS32.BAT is *required* when using Visual C. |
95883bf3 |
164 | # Some versions of Visual C don't define MSVCDIR in the environment, |
80252599 |
165 | # so you may have to set CCHOME explicitly (spaces in the path name should |
166 | # not be quoted) |
a8deba26 |
167 | # |
fd9459bc |
168 | CCHOME *= c:\bc5 |
95883bf3 |
169 | #CCHOME *= $(MSVCDIR) |
4a52a3da |
170 | #CCHOME *= D:\packages\mingw32 |
d56e6723 |
171 | CCINCDIR *= $(CCHOME)\include |
172 | CCLIBDIR *= $(CCHOME)\lib |
08aa1457 |
173 | |
174 | # |
c39cd008 |
175 | # Additional compiler flags can be specified here. |
e02fdbd2 |
176 | # |
c39cd008 |
177 | |
178 | # |
179 | # This should normally be disabled. Adding -DPERL_POLLUTE enables support |
180 | # for old symbols by default, at the expense of extreme pollution. You most |
181 | # probably just want to build modules that won't compile with |
182 | # perl Makefile.PL POLLUTE=1 |
183 | # instead of enabling this. Please report such modules to the respective |
184 | # authors. |
e02fdbd2 |
185 | # |
c5be433b |
186 | #BUILDOPT += -DPERL_POLLUTE |
e02fdbd2 |
187 | |
188 | # |
c39cd008 |
189 | # This should normally be disabled. Enabling it will disable the File::Glob |
190 | # implementation of CORE::glob. |
a7089531 |
191 | # |
52bb0670 |
192 | #BUILDOPT += -DPERL_EXTERNAL_GLOB |
a7089531 |
193 | |
c39cd008 |
194 | # |
195 | # This should normally be disabled. Enabling it causes perl to read scripts |
196 | # in text mode (which is the 5.005 behavior) and will break ByteLoader. |
e68cb057 |
197 | #BUILDOPT += -DPERL_TEXTMODE_SCRIPTS |
5db10396 |
198 | |
c39cd008 |
199 | # |
200 | # This should normally be disabled. Enabling it runs a cloned toplevel |
201 | # interpreter (*EXPERIMENTAL*, fails tests) |
7766f137 |
202 | #BUILDOPT += -DTOP_CLONE |
203 | |
a7089531 |
204 | # |
80252599 |
205 | # specify semicolon-separated list of extra directories that modules will |
206 | # look for libraries (spaces in path names need not be quoted) |
fa4efe8e |
207 | # |
208 | EXTRALIBDIRS *= |
209 | |
210 | # |
08aa1457 |
211 | # set this to point to cmd.exe (only needed if you use some |
212 | # alternate shell that doesn't grok cmd.exe style commands) |
e7083a8c |
213 | # |
d56e6723 |
214 | #SHELL *= g:\winnt\system32\cmd.exe |
08aa1457 |
215 | |
216 | # |
217 | # set this to your email address (perl will guess a value from |
218 | # from your loginname and your hostname, which may not be right) |
e7083a8c |
219 | # |
0b94c7bb |
220 | #EMAIL *= |
08aa1457 |
221 | |
e7083a8c |
222 | ## |
223 | ## Build configuration ends. |
224 | ## |
225 | |
08aa1457 |
226 | ##################### CHANGE THESE ONLY IF YOU MUST ##################### |
227 | |
26618a56 |
228 | .IF "$(CRYPT_SRC)$(CRYPT_LIB)" == "" |
eb480a0b |
229 | D_CRYPT = undef |
26618a56 |
230 | .ELSE |
eb480a0b |
231 | D_CRYPT = define |
232 | CRYPT_FLAG = -DHAVE_DES_FCRYPT |
26618a56 |
233 | .ENDIF |
234 | |
c5be433b |
235 | .IF "$(USE_OBJECT)" == "define" |
eb480a0b |
236 | PERL_MALLOC != undef |
aaacdc8b |
237 | USE_5005THREADS != undef |
b86a2fa7 |
238 | USE_MULTI != undef |
7766f137 |
239 | USE_IMP_SYS != define |
1c1c7f20 |
240 | .ENDIF |
241 | |
eb480a0b |
242 | PERL_MALLOC *= undef |
243 | |
aaacdc8b |
244 | USE_5005THREADS *= undef |
7766f137 |
245 | |
aaacdc8b |
246 | .IF "$(USE_5005THREADS)" == "define" |
7766f137 |
247 | USE_ITHREADS != undef |
248 | .ENDIF |
249 | |
d08ede9a |
250 | .IF "$(USE_IMP_SYS)" == "define" |
251 | PERL_MALLOC != undef |
252 | .ENDIF |
253 | |
b86a2fa7 |
254 | USE_MULTI *= undef |
3bb366e1 |
255 | USE_OBJECT *= undef |
7766f137 |
256 | USE_ITHREADS *= undef |
257 | USE_IMP_SYS *= undef |
f7aeb604 |
258 | USE_PERLCRT *= undef |
eb480a0b |
259 | |
6f4183fe |
260 | .IF "$(USE_IMP_SYS)$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" == "defineundefundefundef" |
261 | USE_MULTI != define |
262 | .ENDIF |
263 | |
264 | .IF "$(USE_ITHREADS)$(USE_MULTI)$(USE_OBJECT)" == "defineundefundef" |
265 | USE_MULTI != define |
266 | USE_5005THREADS != undef |
267 | .ENDIF |
268 | |
aaacdc8b |
269 | .IF "$(USE_MULTI)$(USE_5005THREADS)$(USE_OBJECT)" != "undefundefundef" |
0b94c7bb |
270 | BUILDOPT += -DPERL_IMPLICIT_CONTEXT |
271 | .ENDIF |
272 | |
7766f137 |
273 | .IF "$(USE_IMP_SYS)" != "undef" |
274 | BUILDOPT += -DPERL_IMPLICIT_SYS |
275 | .ENDIF |
0b94c7bb |
276 | |
d07c2202 |
277 | .IMPORT .IGNORE : PROCESSOR_ARCHITECTURE |
278 | |
279 | PROCESSOR_ARCHITECTURE *= x86 |
280 | |
c5be433b |
281 | .IF "$(USE_OBJECT)" == "define" |
b83ac84c |
282 | ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-object |
aaacdc8b |
283 | .ELIF "$(USE_5005THREADS)" == "define" |
d07c2202 |
284 | ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread |
c5be433b |
285 | .ELIF "$(USE_MULTI)" == "define" |
286 | ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-multi |
924b3ec4 |
287 | .ELSE |
288 | ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE) |
d07c2202 |
289 | .ENDIF |
290 | |
aaacdc8b |
291 | .IF "$(USE_OBJECT)" == "define" |
292 | ARCHNAME = $(ARCHNAME)-thread |
293 | .ENDIF |
294 | |
7fac1903 |
295 | # Visual Studio 98 specific |
296 | .IF "$(CCTYPE)" == "MSVC60" |
297 | |
298 | # VC 6.0 can load the socket dll on demand. Makes the test suite |
299 | # run in about 10% less time. |
300 | DELAYLOAD *= -DELAYLOAD:wsock32.dll delayimp.lib |
301 | |
302 | # VC 6.0 seems capable of compiling perl correctly with optimizations |
303 | # enabled. Anything earlier fails tests. |
304 | CFG *= Optimize |
305 | .ENDIF |
306 | |
28004758 |
307 | ARCHDIR = ..\lib\$(ARCHNAME) |
d07c2202 |
308 | COREDIR = ..\lib\CORE |
eb480a0b |
309 | AUTODIR = ..\lib\auto |
28004758 |
310 | LIBDIR = ..\lib |
311 | EXTDIR = ..\ext |
312 | PODDIR = ..\pod |
313 | EXTUTILSDIR = $(LIBDIR)\ExtUtils |
314 | |
315 | # |
316 | INST_SCRIPT = $(INST_TOP)$(INST_VER)\bin |
317 | INST_BIN = $(INST_SCRIPT)$(INST_ARCH) |
318 | INST_LIB = $(INST_TOP)$(INST_VER)\lib |
319 | INST_ARCHLIB = $(INST_LIB)$(INST_ARCH) |
320 | INST_COREDIR = $(INST_ARCHLIB)\CORE |
321 | INST_POD = $(INST_LIB)\pod |
322 | INST_HTML = $(INST_POD)\html |
d07c2202 |
323 | |
08aa1457 |
324 | # |
325 | # Programs to compile, build .lib files and link |
326 | # |
327 | |
328 | .USESHELL : |
329 | |
330 | .IF "$(CCTYPE)" == "BORLAND" |
331 | |
eb480a0b |
332 | CC = bcc32 |
333 | LINK32 = tlink32 |
064a70d4 |
334 | LIB32 = tlib /P128 |
eb480a0b |
335 | IMPLIB = implib -c |
fd9459bc |
336 | RSC = rc |
08aa1457 |
337 | |
338 | # |
339 | # Options |
340 | # |
eb480a0b |
341 | RUNTIME = -D_RTLDLL |
80252599 |
342 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. -I"$(CCINCDIR)" |
eb480a0b |
343 | #PCHFLAGS = -H -Hc -H=c:\temp\bcmoduls.pch |
c5be433b |
344 | DEFINES = -DWIN32 $(CRYPT_FLAG) |
eb480a0b |
345 | LOCDEFS = -DPERLDLL -DPERL_CORE |
346 | SUBSYS = console |
347 | CXX_FLAG = -P |
08aa1457 |
348 | |
eb480a0b |
349 | LIBC = cw32mti.lib |
350 | LIBFILES = $(CRYPT_LIB) import32.lib $(LIBC) odbc32.lib odbccp32.lib |
08aa1457 |
351 | |
352 | .IF "$(CFG)" == "Debug" |
eb480a0b |
353 | OPTIMIZE = -v $(RUNTIME) -DDEBUGGING |
354 | LINK_DBG = -v |
08aa1457 |
355 | .ELSE |
6a6688c3 |
356 | OPTIMIZE = -O2 $(RUNTIME) |
eb480a0b |
357 | LINK_DBG = |
08aa1457 |
358 | .ENDIF |
359 | |
a88c3d7c |
360 | CFLAGS = -w -g0 -tWM -tWD $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
eb480a0b |
361 | $(PCHFLAGS) $(OPTIMIZE) |
28004758 |
362 | LINK_FLAGS = $(LINK_DBG) -L"$(INST_COREDIR)" -L"$(CCLIBDIR)" |
eb480a0b |
363 | OBJOUT_FLAG = -o |
364 | EXEOUT_FLAG = -e |
064a70d4 |
365 | LIBOUT_FLAG = |
d56e6723 |
366 | |
367 | .ELIF "$(CCTYPE)" == "GCC" |
368 | |
3b657871 |
369 | CC = gcc |
370 | LINK32 = gcc |
064a70d4 |
371 | LIB32 = ar rc |
eb480a0b |
372 | IMPLIB = dlltool |
fd9459bc |
373 | RSC = rc |
d56e6723 |
374 | |
375 | o = .o |
eda5ff31 |
376 | a = .a |
d56e6723 |
377 | |
378 | # |
379 | # Options |
380 | # |
7a958ec3 |
381 | |
5db10396 |
382 | RUNTIME = |
9036c72f |
383 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. |
c5be433b |
384 | DEFINES = -DWIN32 $(CRYPT_FLAG) |
eb480a0b |
385 | LOCDEFS = -DPERLDLL -DPERL_CORE |
386 | SUBSYS = console |
387 | CXX_FLAG = -xc++ |
d56e6723 |
388 | |
5db10396 |
389 | LIBC = -lmsvcrt |
7a958ec3 |
390 | |
5db10396 |
391 | # same libs as MSVC |
392 | LIBFILES = $(CRYPT_LIB) $(LIBC) \ |
393 | -lmoldname -lkernel32 -luser32 -lgdi32 \ |
394 | -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 \ |
395 | -loleaut32 -lnetapi32 -luuid -lwsock32 -lmpr \ |
396 | -lwinmm -lversion -lodbc32 |
d56e6723 |
397 | |
398 | .IF "$(CFG)" == "Debug" |
2b260de0 |
399 | OPTIMIZE = -g $(RUNTIME) -DDEBUGGING |
eb480a0b |
400 | LINK_DBG = -g |
d56e6723 |
401 | .ELSE |
eb480a0b |
402 | OPTIMIZE = -g -O2 $(RUNTIME) |
403 | LINK_DBG = |
d56e6723 |
404 | .ENDIF |
405 | |
eb480a0b |
406 | CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE) |
28004758 |
407 | LINK_FLAGS = $(LINK_DBG) -L"$(INST_COREDIR)" -L"$(CCLIBDIR)" |
eb480a0b |
408 | OBJOUT_FLAG = -o |
409 | EXEOUT_FLAG = -o |
064a70d4 |
410 | LIBOUT_FLAG = |
08aa1457 |
411 | |
412 | .ELSE |
413 | |
045453ec |
414 | CC = cl |
415 | LINK32 = link |
eb480a0b |
416 | LIB32 = $(LINK32) -lib |
fd9459bc |
417 | RSC = rc |
eb480a0b |
418 | |
08aa1457 |
419 | # |
420 | # Options |
421 | # |
eb480a0b |
422 | |
af883608 |
423 | RUNTIME = -MD |
9036c72f |
424 | INCLUDES = -I$(COREDIR) -I.\include -I. -I.. |
eb480a0b |
425 | #PCHFLAGS = -Fpc:\temp\vcmoduls.pch -YX |
c5be433b |
426 | DEFINES = -DWIN32 -D_CONSOLE -DNO_STRICT $(CRYPT_FLAG) |
eb480a0b |
427 | LOCDEFS = -DPERLDLL -DPERL_CORE |
428 | SUBSYS = console |
429 | CXX_FLAG = -TP -GX |
08aa1457 |
430 | |
f7aeb604 |
431 | .IF "$(USE_PERLCRT)" != "define" |
e7083a8c |
432 | .IF "$(CFG)" == "Debug" |
433 | PERLCRTLIBC = msvcrtd.lib |
434 | .ELSE |
435 | PERLCRTLIBC = msvcrt.lib |
436 | .ENDIF |
437 | .ELSE |
438 | .IF "$(CFG)" == "Debug" |
439 | PERLCRTLIBC = PerlCRTD.lib |
440 | .ELSE |
441 | PERLCRTLIBC = PerlCRT.lib |
442 | .ENDIF |
443 | .ENDIF |
444 | |
fd9459bc |
445 | PERLEXE_RES = |
446 | PERLDLL_RES = |
447 | |
08aa1457 |
448 | .IF "$(RUNTIME)" == "-MD" |
e7083a8c |
449 | LIBC = $(PERLCRTLIBC) |
08aa1457 |
450 | .ELSE |
eb480a0b |
451 | LIBC = libcmt.lib |
08aa1457 |
452 | .ENDIF |
453 | |
454 | .IF "$(CFG)" == "Debug" |
455 | .IF "$(CCTYPE)" == "MSVC20" |
eb480a0b |
456 | OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING |
08aa1457 |
457 | .ELSE |
3dfd1da1 |
458 | OPTIMIZE = -Od $(RUNTIME)d -Zi -D_DEBUG -DDEBUGGING |
08aa1457 |
459 | .ENDIF |
eb480a0b |
460 | LINK_DBG = -debug -pdb:none |
08aa1457 |
461 | .ELSE |
74593e1f |
462 | .IF "$(CFG)" == "Optimize" |
c5be433b |
463 | # -O1 yields smaller code, which turns out to be faster than -O2 |
464 | #OPTIMIZE = -O2 $(RUNTIME) -DNDEBUG |
465 | OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG |
08aa1457 |
466 | .ELSE |
af883608 |
467 | OPTIMIZE = -Od $(RUNTIME) -DNDEBUG |
08aa1457 |
468 | .ENDIF |
eb480a0b |
469 | LINK_DBG = -release |
08aa1457 |
470 | .ENDIF |
471 | |
7fac1903 |
472 | LIBBASEFILES = $(DELAYLOAD) $(CRYPT_LIB) \ |
f7aeb604 |
473 | oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib \ |
474 | comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ |
475 | netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \ |
476 | version.lib odbc32.lib odbccp32.lib |
08aa1457 |
477 | |
e7083a8c |
478 | # we add LIBC here, since we may be using PerlCRT.dll |
479 | LIBFILES = $(LIBBASEFILES) $(LIBC) |
480 | |
eb480a0b |
481 | CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) \ |
482 | $(PCHFLAGS) $(OPTIMIZE) |
28004758 |
483 | LINK_FLAGS = -nologo -nodefaultlib $(LINK_DBG) \ |
484 | -libpath:"$(INST_COREDIR)" \ |
485 | -machine:$(PROCESSOR_ARCHITECTURE) |
eb480a0b |
486 | OBJOUT_FLAG = -Fo |
487 | EXEOUT_FLAG = -Fe |
064a70d4 |
488 | LIBOUT_FLAG = /out: |
08aa1457 |
489 | |
f7aeb604 |
490 | .IF "$(USE_PERLCRT)" != "define" |
491 | BUILDOPT += -DPERL_MSVCRT_READFIX |
492 | .ENDIF |
493 | |
08aa1457 |
494 | .ENDIF |
495 | |
c5be433b |
496 | .IF "$(USE_OBJECT)" == "define" |
eb480a0b |
497 | OPTIMIZE += $(CXX_FLAG) |
c5be433b |
498 | BUILDOPT += -DPERL_OBJECT |
eb480a0b |
499 | .ENDIF |
500 | |
c5be433b |
501 | CFLAGS_O = $(CFLAGS) $(BUILDOPT) |
eb480a0b |
502 | |
5db10396 |
503 | # used to allow local linking flags that are not propogated into Config.pm, |
504 | # currently unused |
505 | # -- BKS, 12-12-1999 |
7a958ec3 |
506 | PRIV_LINK_FLAGS *= |
507 | BLINK_FLAGS = $(PRIV_LINK_FLAGS) $(LINK_FLAGS) |
508 | |
08aa1457 |
509 | #################### do not edit below this line ####################### |
510 | ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ############## |
511 | |
d56e6723 |
512 | o *= .obj |
eda5ff31 |
513 | a *= .lib |
d56e6723 |
514 | |
eb480a0b |
515 | LKPRE = INPUT ( |
516 | LKPOST = ) |
517 | |
08aa1457 |
518 | # |
519 | # Rules |
520 | # |
08aa1457 |
521 | |
fd9459bc |
522 | .SUFFIXES : .c $(o) .dll $(a) .exe .rc .res |
d56e6723 |
523 | |
524 | .c$(o): |
eb480a0b |
525 | $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS_O) $(OBJOUT_FLAG)$@ $< |
d07c2202 |
526 | |
527 | .y.c: |
528 | $(NOOP) |
08aa1457 |
529 | |
d56e6723 |
530 | $(o).dll: |
08aa1457 |
531 | .IF "$(CCTYPE)" == "BORLAND" |
7a958ec3 |
532 | $(LINK32) -Tpd -ap $(BLINK_FLAGS) c0d32$(o) $<,$@,,$(LIBFILES),$(*B).def |
08aa1457 |
533 | $(IMPLIB) $(*B).lib $@ |
d56e6723 |
534 | .ELIF "$(CCTYPE)" == "GCC" |
7a958ec3 |
535 | $(LINK32) -o $@ $(BLINK_FLAGS) $< $(LIBFILES) |
5db10396 |
536 | $(IMPLIB) --input-def $(*B).def --output-lib $(*B).a $@ |
08aa1457 |
537 | .ELSE |
08aa1457 |
538 | $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \ |
7a958ec3 |
539 | -out:$@ $(BLINK_FLAGS) $(LIBFILES) $< $(LIBPERL) |
08aa1457 |
540 | .ENDIF |
541 | |
fd9459bc |
542 | .rc.res: |
e9ff6d27 |
543 | $(RSC) -i.. $< |
fd9459bc |
544 | |
08aa1457 |
545 | # |
08aa1457 |
546 | # various targets |
eb480a0b |
547 | MINIPERL = ..\miniperl.exe |
548 | MINIDIR = .\mini |
549 | PERLEXE = ..\perl.exe |
7766f137 |
550 | WPERLEXE = ..\wperl.exe |
eb480a0b |
551 | GLOBEXE = ..\perlglob.exe |
552 | CONFIGPM = ..\lib\Config.pm |
553 | MINIMOD = ..\lib\ExtUtils\Miniperl.pm |
554 | X2P = ..\x2p\a2p.exe |
555 | |
556 | PL2BAT = bin\pl2bat.pl |
557 | GLOBBAT = bin\perlglob.bat |
08aa1457 |
558 | |
4a71ed0c |
559 | UTILS = \ |
560 | ..\utils\h2ph \ |
561 | ..\utils\splain \ |
95667ae4 |
562 | ..\utils\dprofpp \ |
4a71ed0c |
563 | ..\utils\perlbug \ |
564 | ..\utils\pl2pm \ |
565 | ..\utils\c2ph \ |
566 | ..\utils\h2xs \ |
567 | ..\utils\perldoc \ |
4a71ed0c |
568 | ..\utils\perlcc \ |
569 | ..\pod\checkpods \ |
570 | ..\pod\pod2html \ |
571 | ..\pod\pod2latex \ |
572 | ..\pod\pod2man \ |
573 | ..\pod\pod2text \ |
360aca43 |
574 | ..\pod\pod2usage \ |
575 | ..\pod\podchecker \ |
576 | ..\pod\podselect \ |
4a71ed0c |
577 | ..\x2p\find2perl \ |
578 | ..\x2p\s2p \ |
c4bbdec3 |
579 | bin\exetype.pl \ |
4a71ed0c |
580 | bin\runperl.pl \ |
581 | bin\pl2bat.pl \ |
582 | bin\perlglob.pl \ |
583 | bin\search.pl |
584 | |
08aa1457 |
585 | .IF "$(CCTYPE)" == "BORLAND" |
586 | |
eb480a0b |
587 | CFGSH_TMPL = config.bc |
588 | CFGH_TMPL = config_H.bc |
d56e6723 |
589 | |
590 | .ELIF "$(CCTYPE)" == "GCC" |
591 | |
eb480a0b |
592 | CFGSH_TMPL = config.gc |
593 | CFGH_TMPL = config_H.gc |
c5be433b |
594 | .IF "$(USE_OBJECT)" == "define" |
db15561c |
595 | PERLIMPLIB = ..\libperlcore$(a) |
596 | .ELSE |
597 | PERLIMPLIB = ..\libperl$(a) |
598 | .ENDIF |
08aa1457 |
599 | |
600 | .ELSE |
601 | |
eb480a0b |
602 | CFGSH_TMPL = config.vc |
603 | CFGH_TMPL = config_H.vc |
08aa1457 |
604 | |
605 | .ENDIF |
606 | |
3075ddba |
607 | PERLIMPLIB *= ..\perl56$(a) |
608 | PERLDLL = ..\perl56.dll |
eda5ff31 |
609 | |
eb480a0b |
610 | XCOPY = xcopy /f /r /i /d |
611 | RCOPY = xcopy /f /r /i /e /d |
612 | NOOP = @echo |
08aa1457 |
613 | |
eb480a0b |
614 | # |
615 | # filenames given to xsubpp must have forward slashes (since it puts |
616 | # full pathnames in #line strings) |
617 | XSUBPP = ..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp \ |
618 | -C++ -prototypes |
619 | |
852c2e52 |
620 | MICROCORE_SRC = \ |
eb480a0b |
621 | ..\av.c \ |
eb480a0b |
622 | ..\deb.c \ |
623 | ..\doio.c \ |
624 | ..\doop.c \ |
625 | ..\dump.c \ |
626 | ..\globals.c \ |
627 | ..\gv.c \ |
628 | ..\hv.c \ |
629 | ..\mg.c \ |
630 | ..\op.c \ |
631 | ..\perl.c \ |
c5be433b |
632 | ..\perlapi.c \ |
eb480a0b |
633 | ..\perly.c \ |
634 | ..\pp.c \ |
635 | ..\pp_ctl.c \ |
636 | ..\pp_hot.c \ |
637 | ..\pp_sys.c \ |
638 | ..\regcomp.c \ |
639 | ..\regexec.c \ |
640 | ..\run.c \ |
641 | ..\scope.c \ |
642 | ..\sv.c \ |
643 | ..\taint.c \ |
644 | ..\toke.c \ |
645 | ..\universal.c \ |
a176fa2a |
646 | ..\utf8.c \ |
349fd7b7 |
647 | ..\util.c \ |
648 | ..\xsutils.c |
eb480a0b |
649 | |
c5be433b |
650 | EXTRACORE_SRC += perllib.c |
651 | |
1c1c7f20 |
652 | .IF "$(PERL_MALLOC)" == "define" |
852c2e52 |
653 | EXTRACORE_SRC += ..\malloc.c |
1c1c7f20 |
654 | .ENDIF |
655 | |
c5be433b |
656 | .IF "$(USE_OBJECT)" != "define" |
852c2e52 |
657 | EXTRACORE_SRC += ..\perlio.c |
eb480a0b |
658 | .ENDIF |
659 | |
660 | WIN32_SRC = \ |
661 | .\win32.c \ |
662 | .\win32sck.c |
663 | |
aaacdc8b |
664 | .IF "$(USE_5005THREADS)" == "define" |
eb480a0b |
665 | WIN32_SRC += .\win32thread.c |
666 | .ENDIF |
667 | |
8d9b2e3c |
668 | .IF "$(CRYPT_SRC)" != "" |
669 | WIN32_SRC += .\$(CRYPT_SRC) |
670 | .ENDIF |
671 | |
eb480a0b |
672 | DLL_SRC = $(DYNALOADER).c |
673 | |
eb480a0b |
674 | X2P_SRC = \ |
675 | ..\x2p\a2p.c \ |
676 | ..\x2p\hash.c \ |
677 | ..\x2p\str.c \ |
678 | ..\x2p\util.c \ |
679 | ..\x2p\walk.c |
680 | |
852c2e52 |
681 | CORE_NOCFG_H = \ |
eb480a0b |
682 | ..\av.h \ |
eb480a0b |
683 | ..\cop.h \ |
684 | ..\cv.h \ |
685 | ..\dosish.h \ |
686 | ..\embed.h \ |
687 | ..\form.h \ |
688 | ..\gv.h \ |
689 | ..\handy.h \ |
690 | ..\hv.h \ |
0f4eea8f |
691 | ..\iperlsys.h \ |
eb480a0b |
692 | ..\mg.h \ |
693 | ..\nostdio.h \ |
694 | ..\op.h \ |
695 | ..\opcode.h \ |
696 | ..\perl.h \ |
c5be433b |
697 | ..\perlapi.h \ |
eb480a0b |
698 | ..\perlsdio.h \ |
699 | ..\perlsfio.h \ |
700 | ..\perly.h \ |
701 | ..\pp.h \ |
702 | ..\proto.h \ |
703 | ..\regexp.h \ |
704 | ..\scope.h \ |
705 | ..\sv.h \ |
706 | ..\thread.h \ |
707 | ..\unixish.h \ |
a176fa2a |
708 | ..\utf8.h \ |
eb480a0b |
709 | ..\util.h \ |
2985053f |
710 | ..\warnings.h \ |
eb480a0b |
711 | ..\XSUB.h \ |
eb480a0b |
712 | ..\EXTERN.h \ |
713 | ..\perlvars.h \ |
714 | ..\intrpvar.h \ |
715 | ..\thrdvar.h \ |
716 | .\include\dirent.h \ |
717 | .\include\netdb.h \ |
718 | .\include\sys\socket.h \ |
7766f137 |
719 | .\win32.h \ |
720 | .\perlhost.h \ |
721 | .\vdir.h \ |
722 | .\vmem.h |
eb480a0b |
723 | |
852c2e52 |
724 | CORE_H = $(CORE_NOCFG_H) .\config.h |
725 | |
726 | MICROCORE_OBJ = $(MICROCORE_SRC:db:+$(o)) |
727 | CORE_OBJ = $(MICROCORE_OBJ) $(EXTRACORE_SRC:db:+$(o)) |
eb480a0b |
728 | WIN32_OBJ = $(WIN32_SRC:db:+$(o)) |
5fd76c3e |
729 | MINICORE_OBJ = $(MINIDIR)\{$(MICROCORE_OBJ:f) miniperlmain$(o) perlio$(o)} |
eb480a0b |
730 | MINIWIN32_OBJ = $(MINIDIR)\{$(WIN32_OBJ:f)} |
731 | MINI_OBJ = $(MINICORE_OBJ) $(MINIWIN32_OBJ) |
eb480a0b |
732 | DLL_OBJ = $(DLL_SRC:db:+$(o)) |
733 | X2P_OBJ = $(X2P_SRC:db:+$(o)) |
734 | |
eb480a0b |
735 | PERLDLL_OBJ = $(CORE_OBJ) |
736 | PERLEXE_OBJ = perlmain$(o) |
737 | |
eb480a0b |
738 | PERLDLL_OBJ += $(WIN32_OBJ) $(DLL_OBJ) |
eb480a0b |
739 | |
baed7233 |
740 | .IF "$(USE_SETARGV)" != "" |
741 | SETARGV_OBJ = setargv$(o) |
742 | .ENDIF |
743 | |
823edd99 |
744 | DYNAMIC_EXT = Socket IO Fcntl Opcode SDBM_File POSIX attrs Thread B re \ |
f91101c9 |
745 | Data/Dumper Devel/Peek ByteLoader Devel/DProf File/Glob \ |
746 | Sys/Hostname |
eb480a0b |
747 | STATIC_EXT = DynaLoader |
eab60bb1 |
748 | NONXS_EXT = Errno |
eb480a0b |
749 | |
750 | DYNALOADER = $(EXTDIR)\DynaLoader\DynaLoader |
751 | SOCKET = $(EXTDIR)\Socket\Socket |
752 | FCNTL = $(EXTDIR)\Fcntl\Fcntl |
753 | OPCODE = $(EXTDIR)\Opcode\Opcode |
754 | SDBM_FILE = $(EXTDIR)\SDBM_File\SDBM_File |
755 | IO = $(EXTDIR)\IO\IO |
756 | POSIX = $(EXTDIR)\POSIX\POSIX |
757 | ATTRS = $(EXTDIR)\attrs\attrs |
758 | THREAD = $(EXTDIR)\Thread\Thread |
759 | B = $(EXTDIR)\B\B |
15e52e56 |
760 | RE = $(EXTDIR)\re\re |
823edd99 |
761 | DUMPER = $(EXTDIR)\Data\Dumper\Dumper |
eab60bb1 |
762 | ERRNO = $(EXTDIR)\Errno\Errno |
3967c732 |
763 | PEEK = $(EXTDIR)\Devel\Peek\Peek |
a6c40364 |
764 | BYTELOADER = $(EXTDIR)\ByteLoader\ByteLoader |
38b3a85b |
765 | DPROF = $(EXTDIR)\Devel\DProf\DProf |
4f49e16e |
766 | GLOB = $(EXTDIR)\File\Glob\Glob |
f91101c9 |
767 | HOSTNAME = $(EXTDIR)\Sys\Hostname\Hostname |
eb480a0b |
768 | |
769 | SOCKET_DLL = $(AUTODIR)\Socket\Socket.dll |
770 | FCNTL_DLL = $(AUTODIR)\Fcntl\Fcntl.dll |
771 | OPCODE_DLL = $(AUTODIR)\Opcode\Opcode.dll |
772 | SDBM_FILE_DLL = $(AUTODIR)\SDBM_File\SDBM_File.dll |
773 | IO_DLL = $(AUTODIR)\IO\IO.dll |
774 | POSIX_DLL = $(AUTODIR)\POSIX\POSIX.dll |
775 | ATTRS_DLL = $(AUTODIR)\attrs\attrs.dll |
776 | THREAD_DLL = $(AUTODIR)\Thread\Thread.dll |
777 | B_DLL = $(AUTODIR)\B\B.dll |
823edd99 |
778 | DUMPER_DLL = $(AUTODIR)\Data\Dumper\Dumper.dll |
3967c732 |
779 | PEEK_DLL = $(AUTODIR)\Devel\Peek\Peek.dll |
15e52e56 |
780 | RE_DLL = $(AUTODIR)\re\re.dll |
b295d113 |
781 | BYTELOADER_DLL = $(AUTODIR)\ByteLoader\ByteLoader.dll |
38b3a85b |
782 | DPROF_DLL = $(AUTODIR)\Devel\DProf\DProf.dll |
4f49e16e |
783 | GLOB_DLL = $(AUTODIR)\File\Glob\Glob.dll |
f91101c9 |
784 | HOSTNAME_DLL = $(AUTODIR)\Sys\Hostname\Hostname.dll |
eb480a0b |
785 | |
eab60bb1 |
786 | ERRNO_PM = $(LIBDIR)\Errno.pm |
787 | |
ac4c12e7 |
788 | EXTENSION_C = \ |
eb480a0b |
789 | $(SOCKET).c \ |
790 | $(FCNTL).c \ |
791 | $(OPCODE).c \ |
792 | $(SDBM_FILE).c \ |
793 | $(IO).c \ |
794 | $(POSIX).c \ |
795 | $(ATTRS).c \ |
796 | $(THREAD).c \ |
15e52e56 |
797 | $(RE).c \ |
823edd99 |
798 | $(DUMPER).c \ |
3967c732 |
799 | $(PEEK).c \ |
b295d113 |
800 | $(B).c \ |
38b3a85b |
801 | $(BYTELOADER).c \ |
4f49e16e |
802 | $(DPROF).c \ |
f91101c9 |
803 | $(GLOB).c \ |
804 | $(HOSTNAME).c |
eb480a0b |
805 | |
ac4c12e7 |
806 | EXTENSION_DLL = \ |
eb480a0b |
807 | $(SOCKET_DLL) \ |
808 | $(FCNTL_DLL) \ |
809 | $(OPCODE_DLL) \ |
810 | $(SDBM_FILE_DLL)\ |
811 | $(IO_DLL) \ |
812 | $(POSIX_DLL) \ |
51aa15f3 |
813 | $(ATTRS_DLL) \ |
823edd99 |
814 | $(DUMPER_DLL) \ |
3967c732 |
815 | $(PEEK_DLL) \ |
b295d113 |
816 | $(B_DLL) \ |
c5be433b |
817 | $(RE_DLL) \ |
818 | $(THREAD_DLL) \ |
38b3a85b |
819 | $(BYTELOADER_DLL) \ |
4f49e16e |
820 | $(DPROF_DLL) \ |
f91101c9 |
821 | $(GLOB_DLL) \ |
822 | $(HOSTNAME_DLL) |
26ca90b6 |
823 | |
eab60bb1 |
824 | EXTENSION_PM = \ |
825 | $(ERRNO_PM) |
826 | |
eb480a0b |
827 | POD2HTML = $(PODDIR)\pod2html |
828 | POD2MAN = $(PODDIR)\pod2man |
829 | POD2LATEX = $(PODDIR)\pod2latex |
830 | POD2TEXT = $(PODDIR)\pod2text |
831 | |
7a958ec3 |
832 | # vars must be separated by "\t+~\t+", since we're using the tempfile |
833 | # version of config_sh.pl (we were overflowing someone's buffer by |
834 | # trying to fit them all on the command line) |
835 | # -- BKS 10-17-1999 |
eb480a0b |
836 | CFG_VARS = \ |
7a958ec3 |
837 | INST_DRV=$(INST_DRV) ~ \ |
838 | INST_TOP=$(INST_TOP) ~ \ |
839 | INST_VER=$(INST_VER:s/\/\\/) ~ \ |
840 | INST_ARCH=$(INST_ARCH) ~ \ |
841 | archname=$(ARCHNAME) ~ \ |
842 | cc=$(CC) ~ \ |
843 | ccflags=$(OPTIMIZE) $(DEFINES) $(BUILDOPT) ~ \ |
844 | cf_email=$(EMAIL) ~ \ |
845 | d_crypt=$(D_CRYPT) ~ \ |
846 | d_mymalloc=$(PERL_MALLOC) ~ \ |
847 | libs=$(LIBFILES:f) ~ \ |
848 | incpath=$(CCINCDIR) ~ \ |
849 | libperl=$(PERLIMPLIB:f) ~ \ |
850 | libpth=$(CCLIBDIR);$(EXTRALIBDIRS) ~ \ |
851 | libc=$(LIBC) ~ \ |
852 | make=dmake ~ \ |
853 | _o=$(o) obj_ext=$(o) ~ \ |
854 | _a=$(a) lib_ext=$(a) ~ \ |
855 | static_ext=$(STATIC_EXT) ~ \ |
856 | dynamic_ext=$(DYNAMIC_EXT) ~ \ |
857 | nonxs_ext=$(NONXS_EXT) ~ \ |
aaacdc8b |
858 | use5005threads=$(USE_5005THREADS) ~ \ |
859 | useithreads=$(USE_ITHREADS) ~ \ |
860 | usethreads=$(USE_5005THREADS) ~ \ |
7a958ec3 |
861 | usemultiplicity=$(USE_MULTI) ~ \ |
862 | LINK_FLAGS=$(LINK_FLAGS:s/\/\\/) ~ \ |
863 | optimize=$(OPTIMIZE) |
864 | |
865 | # |
866 | # set up targets varying between Win95 and WinNT builds |
867 | # |
868 | |
869 | .IF "$(IS_WIN95)" == "define" |
870 | MK2 = .\makefile.95 |
871 | RIGHTMAKE = __switch_makefiles |
872 | NOOP = @rem |
873 | .ELSE |
874 | MK2 = __not_needed |
875 | RIGHTMAKE = __not_needed |
876 | .ENDIF |
924b3ec4 |
877 | |
08aa1457 |
878 | # |
879 | # Top targets |
880 | # |
881 | |
5db10396 |
882 | all : .\config.h $(GLOBEXE) $(MINIPERL) $(MK2) \ |
9e5f57de |
883 | $(RIGHTMAKE) $(MINIMOD) $(CONFIGPM) $(PERLEXE) \ |
7a958ec3 |
884 | $(X2P) $(EXTENSION_DLL) $(EXTENSION_PM) |
885 | |
886 | $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c |
887 | |
888 | #---------------------------------------------------------------- |
889 | |
890 | #-------------------- BEGIN Win95 SPECIFIC ---------------------- |
891 | |
892 | # this target is a jump-off point for Win95 |
893 | # 1. it switches to the Win95-specific makefile if it exists |
5db10396 |
894 | # (__do_switch_makefiles) |
7a958ec3 |
895 | # 2. it prints a message when the Win95-specific one finishes (__done) |
896 | # 3. it then kills this makefile by trying to make __no_such_target |
8ec44883 |
897 | |
7a958ec3 |
898 | __switch_makefiles: __do_switch_makefiles __done __no_such_target |
899 | |
900 | __do_switch_makefiles: |
901 | .IF "$(NOTFIRST)" != "true" |
902 | if exist $(MK2) $(MAKE:s/-S//) -f $(MK2) $(MAKETARGETS) NOTFIRST=true |
8ec44883 |
903 | .ELSE |
7a958ec3 |
904 | $(NOOP) |
8ec44883 |
905 | .ENDIF |
08aa1457 |
906 | |
7a958ec3 |
907 | .IF "$(NOTFIRST)" != "true" |
908 | __done: |
909 | @echo Build process complete. Ignore any errors after this message. |
910 | @echo Run "dmake test" to test and "dmake install" to install |
911 | |
912 | .ELSE |
913 | # dummy targets for Win95-specific makefile |
08aa1457 |
914 | |
7a958ec3 |
915 | __done: |
916 | $(NOOP) |
917 | |
918 | __no_such_target: |
919 | $(NOOP) |
08aa1457 |
920 | |
8ec44883 |
921 | .ENDIF |
922 | |
7a958ec3 |
923 | # This target is used to generate the new makefile (.\makefile.95) for Win95 |
924 | |
925 | .\makefile.95: .\makefile.mk |
926 | $(MINIPERL) genmk95.pl makefile.mk $(MK2) |
927 | |
928 | #--------------------- END Win95 SPECIFIC --------------------- |
929 | |
7a958ec3 |
930 | # a blank target for when builds don't need to do certain things |
931 | # this target added for Win95 port but used to keep the WinNT port able to |
932 | # use this file |
933 | __not_needed: |
4ce4f76e |
934 | $(NOOP) |
7a958ec3 |
935 | |
eb480a0b |
936 | $(GLOBEXE) : perlglob$(o) |
08aa1457 |
937 | .IF "$(CCTYPE)" == "BORLAND" |
80252599 |
938 | $(CC) -c -w -v -tWM -I"$(CCINCDIR)" perlglob.c |
7a958ec3 |
939 | $(LINK32) -Tpe -ap $(BLINK_FLAGS) c0x32$(o) perlglob$(o) \ |
80252599 |
940 | "$(CCLIBDIR)\32BIT\wildargs$(o)",$@,,import32.lib cw32mt.lib, |
d56e6723 |
941 | .ELIF "$(CCTYPE)" == "GCC" |
5db10396 |
942 | $(LINK32) $(BLINK_FLAGS) -mconsole -o $@ perlglob$(o) $(LIBFILES) |
08aa1457 |
943 | .ELSE |
7a958ec3 |
944 | $(LINK32) $(BLINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \ |
d56e6723 |
945 | perlglob$(o) setargv$(o) |
08aa1457 |
946 | .ENDIF |
947 | |
d56e6723 |
948 | perlglob$(o) : perlglob.c |
08aa1457 |
949 | |
08aa1457 |
950 | config.w32 : $(CFGSH_TMPL) |
951 | copy $(CFGSH_TMPL) config.w32 |
952 | |
852c2e52 |
953 | .\config.h : $(CFGH_TMPL) $(CORE_NOCFG_H) |
08aa1457 |
954 | -del /f config.h |
955 | copy $(CFGH_TMPL) config.h |
956 | |
957 | ..\config.sh : config.w32 $(MINIPERL) config_sh.PL |
7a958ec3 |
958 | $(MINIPERL) -I..\lib config_sh.PL --cfgsh-option-file \ |
959 | $(mktmp $(CFG_VARS)) config.w32 > ..\config.sh |
924b3ec4 |
960 | |
961 | # this target is for when changes to the main config.sh happen |
962 | # edit config.{b,v,g}c and make this target once for each supported |
963 | # compiler (e.g. `dmake CCTYPE=BORLAND regen_config_h`) |
964 | regen_config_h: |
bbda9c9d |
965 | perl config_sh.PL --cfgsh-option-file $(mktmp $(CFG_VARS)) \ |
966 | $(CFGSH_TMPL) > ..\config.sh |
924b3ec4 |
967 | -cd .. && del /f perl.exe |
968 | cd .. && perl configpm |
969 | -del /f $(CFGH_TMPL) |
80252599 |
970 | -mkdir $(COREDIR) |
e5a95ffb |
971 | -perl -I..\lib config_h.PL "INST_VER=$(INST_VER)" |
924b3ec4 |
972 | rename config.h $(CFGH_TMPL) |
08aa1457 |
973 | |
974 | $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl |
975 | cd .. && miniperl configpm |
976 | if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL) |
d07c2202 |
977 | $(XCOPY) ..\*.h $(COREDIR)\*.* |
978 | $(XCOPY) *.h $(COREDIR)\*.* |
15e52e56 |
979 | $(XCOPY) ..\ext\re\re.pm $(LIBDIR)\*.* |
d07c2202 |
980 | $(RCOPY) include $(COREDIR)\*.* |
e5a95ffb |
981 | $(MINIPERL) -I..\lib config_h.PL "INST_VER=$(INST_VER)" \ |
d543acb6 |
982 | || $(MAKE) $(MAKEMACROS) $(CONFIGPM) $(MAKEFILE) |
08aa1457 |
983 | |
7a958ec3 |
984 | $(MINIPERL) : $(MINIDIR) $(MINI_OBJ) $(CRTIPMLIBS) |
08aa1457 |
985 | .IF "$(CCTYPE)" == "BORLAND" |
7a958ec3 |
986 | $(LINK32) -Tpe -ap $(BLINK_FLAGS) \ |
eb480a0b |
987 | @$(mktmp c0x32$(o) $(MINI_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),) |
d56e6723 |
988 | .ELIF "$(CCTYPE)" == "GCC" |
5db10396 |
989 | $(LINK32) -v -mconsole -o $@ $(BLINK_FLAGS) \ |
7a958ec3 |
990 | $(mktmp $(LKPRE) $(MINI_OBJ:s,\,\\) $(LIBFILES) $(LKPOST)) |
08aa1457 |
991 | .ELSE |
992 | $(LINK32) -subsystem:console -out:$@ \ |
7a958ec3 |
993 | @$(mktmp $(BLINK_FLAGS) $(LIBFILES) $(MINI_OBJ:s,\,\\)) |
08aa1457 |
994 | .ENDIF |
995 | |
eb480a0b |
996 | $(MINIDIR) : |
997 | if not exist "$(MINIDIR)" mkdir "$(MINIDIR)" |
998 | |
852c2e52 |
999 | $(MINICORE_OBJ) : $(CORE_NOCFG_H) |
fe0bfefd |
1000 | $(CC) -c $(CFLAGS) -DPERL_EXTERNAL_GLOB $(OBJOUT_FLAG)$@ ..\$(*B).c |
eb480a0b |
1001 | |
852c2e52 |
1002 | $(MINIWIN32_OBJ) : $(CORE_NOCFG_H) |
eb480a0b |
1003 | $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $(*B).c |
1004 | |
7766f137 |
1005 | # -DPERL_IMPLICIT_SYS needs C++ for perllib.c |
5db10396 |
1006 | # rules wrapped in .IFs break Win9X build (we end up with unbalanced []s unless |
1007 | # unless the .IF is true), so instead we use a .ELSE with the default |
7766f137 |
1008 | perllib$(o) : perllib.c |
5db10396 |
1009 | .IF "$(USE_IMP_SYS)$(USE_OBJECT)" == "defineundef" |
7766f137 |
1010 | $(CC) -c -I. $(CFLAGS_O) $(CXX_FLAG) $(OBJOUT_FLAG)$@ perllib.c |
5db10396 |
1011 | .ELSE |
1012 | $(CC) -c -I. $(CFLAGS_O) $(OBJOUT_FLAG)$@ perllib.c |
7766f137 |
1013 | .ENDIF |
1014 | |
852c2e52 |
1015 | # 1. we don't want to rebuild miniperl.exe when config.h changes |
1016 | # 2. we don't want to rebuild miniperl.exe with non-default config.h |
1017 | $(MINI_OBJ) : $(CORE_NOCFG_H) |
1018 | |
eb480a0b |
1019 | $(WIN32_OBJ) : $(CORE_H) |
1020 | $(CORE_OBJ) : $(CORE_H) |
eb480a0b |
1021 | $(DLL_OBJ) : $(CORE_H) |
eb480a0b |
1022 | $(X2P_OBJ) : $(CORE_H) |
08aa1457 |
1023 | |
549a6b10 |
1024 | perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym ..\pp.sym ..\makedef.pl |
e2207946 |
1025 | $(MINIPERL) -w ..\makedef.pl PLATFORM=win32 $(OPTIMIZE) $(DEFINES) \ |
1026 | $(BUILDOPT) CCTYPE=$(CCTYPE) > perldll.def |
08aa1457 |
1027 | |
fd9459bc |
1028 | $(PERLDLL): perldll.def $(PERLDLL_OBJ) $(PERLDLL_RES) |
08aa1457 |
1029 | .IF "$(CCTYPE)" == "BORLAND" |
e2207946 |
1030 | $(LINK32) -Tpd -ap $(BLINK_FLAGS) \ |
eb480a0b |
1031 | @$(mktmp c0d32$(o) $(PERLDLL_OBJ:s,\,\\)\n \ |
08aa1457 |
1032 | $@,\n \ |
1033 | $(LIBFILES)\n \ |
1034 | perldll.def\n) |
1035 | $(IMPLIB) $*.lib $@ |
d56e6723 |
1036 | .ELIF "$(CCTYPE)" == "GCC" |
e2207946 |
1037 | $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(BLINK_FLAGS) \ |
eb480a0b |
1038 | $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) $(LKPOST)) |
d56e6723 |
1039 | dlltool --output-lib $(PERLIMPLIB) \ |
5db10396 |
1040 | --dllname $(PERLDLL:b).dll \ |
1041 | --def perldll.def \ |
1042 | --base-file perl.base \ |
1043 | --output-exp perl.exp |
e2207946 |
1044 | $(LINK32) -mdll -o $@ $(BLINK_FLAGS) \ |
eb480a0b |
1045 | $(mktmp $(LKPRE) $(PERLDLL_OBJ:s,\,\\) $(LIBFILES) \ |
1046 | perl.exp $(LKPOST)) |
08aa1457 |
1047 | .ELSE |
1048 | $(LINK32) -dll -def:perldll.def -out:$@ \ |
fd9459bc |
1049 | @$(mktmp $(BLINK_FLAGS) $(LIBFILES) $(PERLDLL_RES) $(PERLDLL_OBJ:s,\,\\)) |
08aa1457 |
1050 | .ENDIF |
d07c2202 |
1051 | $(XCOPY) $(PERLIMPLIB) $(COREDIR) |
08aa1457 |
1052 | |
08aa1457 |
1053 | $(MINIMOD) : $(MINIPERL) ..\minimod.pl |
1054 | cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm |
1055 | |
eb480a0b |
1056 | ..\x2p\a2p$(o) : ..\x2p\a2p.c |
1057 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\a2p.c |
1058 | |
1059 | ..\x2p\hash$(o) : ..\x2p\hash.c |
1060 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\hash.c |
1061 | |
1062 | ..\x2p\str$(o) : ..\x2p\str.c |
1063 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\str.c |
1064 | |
1065 | ..\x2p\util$(o) : ..\x2p\util.c |
1066 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\util.c |
1067 | |
1068 | ..\x2p\walk$(o) : ..\x2p\walk.c |
1069 | $(CC) -I..\x2p $(CFLAGS) $(OBJOUT_FLAG)$@ -c ..\x2p\walk.c |
1070 | |
1071 | $(X2P) : $(MINIPERL) $(X2P_OBJ) |
d07c2202 |
1072 | $(MINIPERL) ..\x2p\find2perl.PL |
1073 | $(MINIPERL) ..\x2p\s2p.PL |
1074 | .IF "$(CCTYPE)" == "BORLAND" |
7a958ec3 |
1075 | $(LINK32) -Tpe -ap $(BLINK_FLAGS) \ |
d07c2202 |
1076 | @$(mktmp c0x32$(o) $(X2P_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),) |
1077 | .ELIF "$(CCTYPE)" == "GCC" |
7a958ec3 |
1078 | $(LINK32) -v -o $@ $(BLINK_FLAGS) \ |
d07c2202 |
1079 | $(mktmp $(LKPRE) $(X2P_OBJ:s,\,\\) $(LIBFILES) $(LKPOST)) |
1080 | .ELSE |
1081 | $(LINK32) -subsystem:console -out:$@ \ |
7a958ec3 |
1082 | @$(mktmp $(BLINK_FLAGS) $(LIBFILES) $(X2P_OBJ:s,\,\\)) |
d07c2202 |
1083 | .ENDIF |
1084 | |
08aa1457 |
1085 | perlmain.c : runperl.c |
1086 | copy runperl.c perlmain.c |
1087 | |
d56e6723 |
1088 | perlmain$(o) : perlmain.c |
8957be0a |
1089 | $(CC) $(CFLAGS_O) -UPERLDLL $(OBJOUT_FLAG)$@ -c perlmain.c |
08aa1457 |
1090 | |
fd9459bc |
1091 | $(PERLEXE): $(PERLDLL) $(CONFIGPM) $(PERLEXE_OBJ) $(PERLEXE_RES) |
08aa1457 |
1092 | .IF "$(CCTYPE)" == "BORLAND" |
7a958ec3 |
1093 | $(LINK32) -Tpe -ap $(BLINK_FLAGS) \ |
8957be0a |
1094 | @$(mktmp c0x32$(o) $(PERLEXE_OBJ:s,\,\\)\n \ |
1095 | $(@:s,\,\\),\n \ |
08aa1457 |
1096 | $(PERLIMPLIB) $(LIBFILES)\n) |
d56e6723 |
1097 | .ELIF "$(CCTYPE)" == "GCC" |
5db10396 |
1098 | $(LINK32) -mconsole -o $@ $(BLINK_FLAGS) \ |
eb480a0b |
1099 | $(PERLEXE_OBJ) $(PERLIMPLIB) $(LIBFILES) |
08aa1457 |
1100 | .ELSE |
7a958ec3 |
1101 | $(LINK32) -subsystem:console -out:$@ $(BLINK_FLAGS) $(LIBFILES) \ |
fd9459bc |
1102 | $(PERLEXE_OBJ) $(SETARGV_OBJ) $(PERLIMPLIB) $(PERLEXE_RES) |
08aa1457 |
1103 | .ENDIF |
2f8d1947 |
1104 | copy $(PERLEXE) $(WPERLEXE) |
1105 | $(MINIPERL) -I..\lib bin\exetype.pl $(WPERLEXE) WINDOWS |
08aa1457 |
1106 | copy splittree.pl .. |
eb480a0b |
1107 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
08aa1457 |
1108 | |
08aa1457 |
1109 | $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM) |
eb480a0b |
1110 | if not exist $(AUTODIR) mkdir $(AUTODIR) |
bfab39a2 |
1111 | cd $(EXTDIR)\$(*B) && ..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL |
8454a2ba |
1112 | cd $(EXTDIR)\$(*B) && ..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL |
08aa1457 |
1113 | $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL) |
8454a2ba |
1114 | $(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL) |
08aa1457 |
1115 | cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c |
1116 | $(XCOPY) $(EXTDIR)\$(*B)\dlutils.c . |
1117 | |
1118 | $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs |
1119 | copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs |
1120 | |
823edd99 |
1121 | $(DUMPER_DLL): $(PERLEXE) $(DUMPER).xs |
1122 | cd $(EXTDIR)\Data\$(*B) && \ |
1123 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
1124 | cd $(EXTDIR)\Data\$(*B) && $(MAKE) |
1125 | |
38b3a85b |
1126 | $(DPROF_DLL): $(PERLEXE) $(DPROF).xs |
1127 | cd $(EXTDIR)\Devel\$(*B) && \ |
1128 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
1129 | cd $(EXTDIR)\Devel\$(*B) && $(MAKE) |
1130 | |
4f49e16e |
1131 | $(GLOB_DLL): $(PERLEXE) $(GLOB).xs |
1132 | cd $(EXTDIR)\File\$(*B) && \ |
1133 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
1134 | cd $(EXTDIR)\File\$(*B) && $(MAKE) |
1135 | |
35ef4773 |
1136 | $(PEEK_DLL): $(PERLEXE) $(PEEK).xs |
3967c732 |
1137 | cd $(EXTDIR)\Devel\$(*B) && \ |
1138 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
1139 | cd $(EXTDIR)\Devel\$(*B) && $(MAKE) |
1140 | |
15e52e56 |
1141 | $(RE_DLL): $(PERLEXE) $(RE).xs |
1142 | cd $(EXTDIR)\$(*B) && \ |
1143 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1144 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1145 | |
2a321948 |
1146 | $(B_DLL): $(PERLEXE) $(B).xs |
1147 | cd $(EXTDIR)\$(*B) && \ |
1148 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1149 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1150 | |
a98bd6f4 |
1151 | $(THREAD_DLL): $(PERLEXE) $(THREAD).xs |
1152 | cd $(EXTDIR)\$(*B) && \ |
1153 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1154 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1155 | |
5d925967 |
1156 | $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs |
1157 | cd $(EXTDIR)\$(*B) && \ |
1158 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1159 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1160 | |
6dead956 |
1161 | $(POSIX_DLL): $(PERLEXE) $(POSIX).xs |
1162 | cd $(EXTDIR)\$(*B) && \ |
1163 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1164 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1165 | |
5d925967 |
1166 | $(IO_DLL): $(PERLEXE) $(IO).xs |
08aa1457 |
1167 | cd $(EXTDIR)\$(*B) && \ |
1168 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1169 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1170 | |
1171 | $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs |
1172 | cd $(EXTDIR)\$(*B) && \ |
1173 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1174 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1175 | |
1176 | $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs |
1177 | cd $(EXTDIR)\$(*B) && \ |
1178 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1179 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1180 | |
1181 | $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs |
1182 | cd $(EXTDIR)\$(*B) && \ |
1183 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1184 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1185 | |
5d925967 |
1186 | $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs |
08aa1457 |
1187 | cd $(EXTDIR)\$(*B) && \ |
1188 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1189 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1190 | |
f91101c9 |
1191 | $(HOSTNAME_DLL): $(PERLEXE) $(HOSTNAME).xs |
1192 | cd $(EXTDIR)\Sys\$(*B) && \ |
1193 | ..\..\..\miniperl -I..\..\..\lib Makefile.PL INSTALLDIRS=perl |
1194 | cd $(EXTDIR)\Sys\$(*B) && $(MAKE) |
1195 | |
b295d113 |
1196 | $(BYTELOADER_DLL): $(PERLEXE) $(BYTELOADER).xs |
1197 | cd $(EXTDIR)\$(*B) && \ |
1198 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1199 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1200 | |
eab60bb1 |
1201 | $(ERRNO_PM): $(PERLEXE) $(ERRNO)_pm.PL |
1202 | cd $(EXTDIR)\$(*B) && \ |
1203 | ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl |
1204 | cd $(EXTDIR)\$(*B) && $(MAKE) |
1205 | |
08aa1457 |
1206 | doc: $(PERLEXE) |
d07c2202 |
1207 | $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \ |
b3b61bd8 |
1208 | --podpath=pod:lib:ext:utils --htmlroot="file://$(INST_HTML:s,:,|,)"\ |
08aa1457 |
1209 | --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse |
1210 | |
4a71ed0c |
1211 | utils: $(PERLEXE) $(X2P) |
08aa1457 |
1212 | cd ..\utils && $(MAKE) PERL=$(MINIPERL) |
66aa1127 |
1213 | copy ..\README.win32 ..\pod\perlwin32.pod |
4a71ed0c |
1214 | cd ..\pod && $(MAKE) -f ..\win32\pod.mak converters |
1215 | $(PERLEXE) $(PL2BAT) $(UTILS) |
08aa1457 |
1216 | |
1217 | distclean: clean |
9e5f57de |
1218 | -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \ |
eda5ff31 |
1219 | $(PERLIMPLIB) ..\miniperl$(a) $(MINIMOD) |
08aa1457 |
1220 | -del /f *.def *.map |
eab60bb1 |
1221 | -del /f $(EXTENSION_DLL) $(EXTENSION_PM) |
1222 | -del /f $(EXTENSION_C) $(DYNALOADER).c $(ERRNO).pm |
eb480a0b |
1223 | -del /f $(EXTDIR)\DynaLoader\dl_win32.xs |
1224 | -del /f $(LIBDIR)\.exists $(LIBDIR)\attrs.pm $(LIBDIR)\DynaLoader.pm |
8454a2ba |
1225 | -del /f $(LIBDIR)\XSLoader.pm |
eb480a0b |
1226 | -del /f $(LIBDIR)\Fcntl.pm $(LIBDIR)\IO.pm $(LIBDIR)\Opcode.pm |
1227 | -del /f $(LIBDIR)\ops.pm $(LIBDIR)\Safe.pm $(LIBDIR)\Thread.pm |
1228 | -del /f $(LIBDIR)\SDBM_File.pm $(LIBDIR)\Socket.pm $(LIBDIR)\POSIX.pm |
15e52e56 |
1229 | -del /f $(LIBDIR)\B.pm $(LIBDIR)\O.pm $(LIBDIR)\re.pm |
b295d113 |
1230 | -del /f $(LIBDIR)\Data\Dumper.pm $(LIBDIR)\ByteLoader.pm |
38b3a85b |
1231 | -del /f $(LIBDIR)\Devel\Peek.pm $(LIBDIR)\Devel\DProf.pm |
4f49e16e |
1232 | -del /f $(LIBDIR)\File\Glob.pm |
eb480a0b |
1233 | -rmdir /s /q $(LIBDIR)\IO || rmdir /s $(LIBDIR)\IO |
1234 | -rmdir /s /q $(LIBDIR)\Thread || rmdir /s $(LIBDIR)\Thread |
1235 | -rmdir /s /q $(LIBDIR)\B || rmdir /s $(LIBDIR)\B |
823edd99 |
1236 | -rmdir /s /q $(LIBDIR)\Data || rmdir /s $(LIBDIR)\Data |
08aa1457 |
1237 | -del /f $(PODDIR)\*.html |
1238 | -del /f $(PODDIR)\*.bat |
22c35a8c |
1239 | -cd ..\utils && del /f h2ph splain perlbug pl2pm c2ph h2xs perldoc \ |
5920a0ba |
1240 | dprofpp *.bat |
eb480a0b |
1241 | -cd ..\x2p && del /f find2perl s2p *.bat |
d444a431 |
1242 | -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new |
eb480a0b |
1243 | -del /f $(CONFIGPM) |
d444a431 |
1244 | -del /f bin\*.bat |
22c35a8c |
1245 | -cd $(EXTDIR) && del /s *$(a) *.def *.map *.pdb *.bs Makefile *$(o) \ |
1246 | pm_to_blib |
eb480a0b |
1247 | -rmdir /s /q $(AUTODIR) || rmdir /s $(AUTODIR) |
d07c2202 |
1248 | -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR) |
08aa1457 |
1249 | |
4a71ed0c |
1250 | install : all installbare installhtml |
6dead956 |
1251 | |
7a958ec3 |
1252 | installbare : $(RIGHTMAKE) utils |
d07c2202 |
1253 | $(PERLEXE) ..\installperl |
7766f137 |
1254 | if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* |
08aa1457 |
1255 | $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.* |
e5a95ffb |
1256 | $(XCOPY) bin\*.bat $(INST_SCRIPT)\*.* |
6dead956 |
1257 | |
1258 | installhtml : doc |
08aa1457 |
1259 | $(RCOPY) html\*.* $(INST_HTML)\*.* |
1260 | |
1261 | inst_lib : $(CONFIGPM) |
1262 | copy splittree.pl .. |
eb480a0b |
1263 | $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" $(AUTODIR) |
08aa1457 |
1264 | $(RCOPY) ..\lib $(INST_LIB)\*.* |
1265 | |
dfb634a9 |
1266 | minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils |
08aa1457 |
1267 | $(XCOPY) $(MINIPERL) ..\t\perl.exe |
1268 | .IF "$(CCTYPE)" == "BORLAND" |
1269 | $(XCOPY) $(GLOBBAT) ..\t\$(NULL) |
1270 | .ELSE |
1271 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1272 | .ENDIF |
1273 | attrib -r ..\t\*.* |
1274 | copy test ..\t |
1275 | cd ..\t && \ |
1276 | $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t |
1277 | |
dfb634a9 |
1278 | test-prep : all utils |
08aa1457 |
1279 | $(XCOPY) $(PERLEXE) ..\t\$(NULL) |
1280 | $(XCOPY) $(PERLDLL) ..\t\$(NULL) |
1281 | .IF "$(CCTYPE)" == "BORLAND" |
1282 | $(XCOPY) $(GLOBBAT) ..\t\$(NULL) |
1283 | .ELSE |
1284 | $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |
1285 | .ENDIF |
32f822de |
1286 | |
7a958ec3 |
1287 | test : $(RIGHTMAKE) test-prep |
08aa1457 |
1288 | cd ..\t && $(PERLEXE) -I..\lib harness |
1289 | |
32f822de |
1290 | test-notty : test-prep |
1291 | set PERL_SKIP_TTY_TEST=1 && \ |
1292 | cd ..\t && $(PERLEXE) -I.\lib harness |
1293 | |
08aa1457 |
1294 | clean : |
d56e6723 |
1295 | -@erase miniperlmain$(o) |
08aa1457 |
1296 | -@erase $(MINIPERL) |
d56e6723 |
1297 | -@erase perlglob$(o) |
1298 | -@erase perlmain$(o) |
08aa1457 |
1299 | -@erase config.w32 |
1300 | -@erase /f config.h |
1301 | -@erase $(GLOBEXE) |
1302 | -@erase $(PERLEXE) |
7766f137 |
1303 | -@erase $(WPERLEXE) |
08aa1457 |
1304 | -@erase $(PERLDLL) |
1305 | -@erase $(CORE_OBJ) |
eb480a0b |
1306 | -rmdir /s /q $(MINIDIR) || rmdir /s $(MINIDIR) |
08aa1457 |
1307 | -@erase $(WIN32_OBJ) |
1308 | -@erase $(DLL_OBJ) |
d07c2202 |
1309 | -@erase $(X2P_OBJ) |
c5be433b |
1310 | -@erase ..\*$(o) ..\*$(a) ..\*.exp *$(o) *$(a) *.exp *.res |
d444a431 |
1311 | -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat |
d07c2202 |
1312 | -@erase ..\x2p\*.exe ..\x2p\*.bat |
08aa1457 |
1313 | -@erase *.ilk |
1314 | -@erase *.pdb |