This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] change#398 breaks ENV_IS_CASELESS, fix it
[perl5.git] / win32 / Makefile
CommitLineData
68dc0745
PP
1#
2# Makefile to build perl on Windowns NT using Microsoft NMAKE.
3#
4#
5# This is set up to build a perl.exe that runs off a shared library
6# (perl.dll). Also makes individual DLLs for the XS extensions.
7#
137443ea
PP
8
9#
10# Set these to wherever you want "nmake install" to put your
11# newly built perl.
137443ea 12INST_DRV=c:
dc86dda3 13INST_TOP=$(INST_DRV)\perl5004.5x
910dfcc8 14BUILDOPT=-DUSE_THREADS
d4cce5f1
NIS
15#BUILDOPT=-DMULTIPLICITY
16#BUILDOPT=-DMULTIPLICITY -DUSE_THREADS
910dfcc8 17#BUILDOPT=-DPERL_GLOBAL_STRUCT -DMULTIPLICITY
137443ea 18
c90c0ff4 19#
c90c0ff4
PP
20# uncomment next line if you are using Visual C++ 2.x
21#CCTYPE=MSVC20
22
23#
24# uncomment next line if you want debug version of perl (big,slow)
dc86dda3 25#CFG=Debug
137443ea 26
d484a829 27#
26618a56
GS
28# if you have the source for des_fcrypt(), uncomment this and make sure the
29# file exists (see README.win32)
30#CRYPT_SRC=des_fcrypt.c
31
32#
33# if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
34# library, uncomment this, and make sure the library exists (see README.win32)
35#CRYPT_LIB=des_fcrypt.lib
36
37#
3e3baf6d
TB
38# set the install locations of the compiler include/libraries
39#CCHOME = f:\msvc20
40CCHOME = $(MSVCDIR)
41CCINCDIR = $(CCHOME)\include
42CCLIBDIR = $(CCHOME)\lib
43
44#
d484a829
GS
45# set this to your email address (perl will guess a value from
46# from your loginname and your hostname, which may not be right)
47#EMAIL =
48
137443ea
PP
49##################### CHANGE THESE ONLY IF YOU MUST #####################
50
26618a56
GS
51!IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
52D_CRYPT=undef
53!ELSE
54D_CRYPT=define
55CRYPT_FLAG=-DHAVE_DES_FCRYPT
56!ENDIF
57
137443ea
PP
58#
59# Programs to compile, build .lib files and link
60#
68dc0745 61
137443ea
PP
62CC=cl.exe
63LINK32=link.exe
64LIB32=$(LINK32) -lib
68dc0745 65#
137443ea
PP
66# Options
67#
c90c0ff4 68!IF "$(RUNTIME)" == ""
137443ea 69RUNTIME = -MD
c90c0ff4 70!ENDIF
3e3baf6d 71INCLUDES = -I.\include -I. -I..
137443ea 72#PCHFLAGS = -Fp"$(INTDIR)/modules.pch" -YX
26618a56 73DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) $(CRYPT_FLAG)
910dfcc8 74LOCDEFS = -DPERLDLL -DPERL_CORE
137443ea 75SUBSYS = console
137443ea
PP
76
77!IF "$(RUNTIME)" == "-MD"
3e3baf6d 78LIBC = msvcrt.lib
137443ea
PP
79WINIOMAYBE =
80!ELSE
3e3baf6d 81LIBC = libcmt.lib
390b85e7 82WINIOMAYBE =
137443ea
PP
83!ENDIF
84
85!IF "$(CFG)" == "Debug"
86! IF "$(CCTYPE)" == "MSVC20"
910dfcc8 87OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
137443ea 88! ELSE
910dfcc8 89OPTIMIZE = -Od $(RUNTIME)d -Z7 -D_DEBUG -DDEBUGGING
137443ea 90! ENDIF
96e4d5b1 91LINK_DBG = -debug -pdb:none
137443ea
PP
92!ELSE
93! IF "$(CCTYPE)" == "MSVC20"
3e3baf6d 94OPTIMIZE = -Od $(RUNTIME) -DNDEBUG
137443ea 95! ELSE
3e3baf6d 96OPTIMIZE = -Od $(RUNTIME) -DNDEBUG
137443ea
PP
97! ENDIF
98LINK_DBG = -release
99!ENDIF
68dc0745 100
3e3baf6d 101# we don't add LIBC here, the compiler do it based on -MD/-MT
26618a56 102LIBFILES = $(CRYPT_LIB) oldnames.lib kernel32.lib user32.lib gdi32.lib \
3e3baf6d
TB
103 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib \
104 oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
105 version.lib odbc32.lib odbccp32.lib
106
d56e6723 107CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
dc050285 108LINK_FLAGS = -nologo $(LINK_DBG) -machine:$(PROCESSOR_ARCHITECTURE)
3e3baf6d 109OBJOUT_FLAG = -Fo
d56e6723 110EXEOUT_FLAG = -Fe
137443ea
PP
111
112#################### do not edit below this line #######################
113############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
114
d56e6723
GS
115o = .obj
116
137443ea
PP
117#
118# Rules
119#
137443ea 120
d56e6723
GS
121.SUFFIXES : .c $(o) .dll .lib .exe
122
123.c$(o):
3e3baf6d 124 $(CC) -c $(CFLAGS) $(OBJOUT_FLAG)$@ $<
137443ea 125
d56e6723 126$(o).dll:
3e3baf6d 127 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
dc050285 128 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
68dc0745 129
68dc0745
PP
130#
131INST_BIN=$(INST_TOP)\bin
132INST_LIB=$(INST_TOP)\lib
137443ea 133INST_POD=$(INST_LIB)\pod
68dc0745
PP
134INST_HTML=$(INST_POD)\html
135LIBDIR=..\lib
0a753a76 136EXTDIR=..\ext
68dc0745 137PODDIR=..\pod
0a753a76 138EXTUTILSDIR=$(LIBDIR)\extutils
68dc0745
PP
139
140#
141# various targets
54310121 142PERLIMPLIB=..\perl.lib
68dc0745
PP
143MINIPERL=..\miniperl.exe
144PERLDLL=..\perl.dll
145PERLEXE=..\perl.exe
146GLOBEXE=..\perlglob.exe
137443ea 147CONFIGPM=..\lib\Config.pm
83437bec 148MINIMOD=..\lib\ExtUtils\Miniperl.pm
68dc0745 149
d444a431
TB
150PL2BAT=bin\pl2bat.pl
151GLOBBAT = bin\perlglob.bat
3e3baf6d 152
137443ea 153MAKE=nmake -nologo
3e3baf6d
TB
154CFGSH_TMPL = config.vc
155CFGH_TMPL = config_H.vc
156PERL95EXE=..\perl95.exe
c90c0ff4
PP
157XCOPY=xcopy /f /r /i /d
158RCOPY=xcopy /f /r /i /e /d
68dc0745
PP
159NULL=
160
26618a56
GS
161!IF "$(CRYPT_SRC)" != ""
162CRYPT_OBJ=$(CRYPT_SRC:.c=.obj)
163!ENDIF
164
68dc0745
PP
165#
166# filenames given to xsubpp must have forward slashes (since it puts
167# full pathnames in #line strings)
137443ea 168XSUBPP=..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp -C++ -prototypes
68dc0745 169
137443ea 170CORE_C= ..\av.c \
68dc0745
PP
171 ..\deb.c \
172 ..\doio.c \
173 ..\doop.c \
174 ..\dump.c \
175 ..\globals.c \
176 ..\gv.c \
177 ..\hv.c \
178 ..\mg.c \
179 ..\op.c \
180 ..\perl.c \
181 ..\perlio.c \
182 ..\perly.c \
183 ..\pp.c \
184 ..\pp_ctl.c \
185 ..\pp_hot.c \
186 ..\pp_sys.c \
187 ..\regcomp.c \
188 ..\regexec.c \
189 ..\run.c \
190 ..\scope.c \
191 ..\sv.c \
192 ..\taint.c \
193 ..\toke.c \
194 ..\universal.c \
bbc8f9de 195 ..\util.c \
26618a56
GS
196 ..\malloc.c \
197 $(CRYPT_SRC)
0a753a76 198
d56e6723
GS
199CORE_OBJ= ..\av$(o) \
200 ..\deb$(o) \
201 ..\doio$(o) \
202 ..\doop$(o) \
203 ..\dump$(o) \
204 ..\globals$(o) \
205 ..\gv$(o) \
206 ..\hv$(o) \
207 ..\mg$(o) \
208 ..\op$(o) \
209 ..\perl$(o) \
210 ..\perlio$(o) \
211 ..\perly$(o) \
212 ..\pp$(o) \
213 ..\pp_ctl$(o) \
214 ..\pp_hot$(o) \
215 ..\pp_sys$(o) \
216 ..\regcomp$(o) \
217 ..\regexec$(o) \
218 ..\run$(o) \
219 ..\scope$(o) \
220 ..\sv$(o) \
221 ..\taint$(o) \
222 ..\toke$(o) \
223 ..\universal$(o)\
224 ..\util$(o) \
26618a56
GS
225 ..\malloc$(o) \
226 $(CRYPT_OBJ)
137443ea
PP
227
228WIN32_C = perllib.c \
229 win32.c \
d55594ae
GS
230 win32sck.c \
231 win32thread.c
137443ea 232
d56e6723
GS
233WIN32_OBJ = win32$(o) \
234 win32sck$(o) \
235 win32thread$(o)
137443ea 236
d56e6723
GS
237PERL95_OBJ = perl95$(o) \
238 win32mt$(o) \
26618a56
GS
239 win32sckmt$(o) \
240 $(CRYPT_OBJ)
fb73857a 241
d56e6723 242DLL_OBJ = perllib$(o) $(DYNALOADER)$(o)
137443ea 243
3e3baf6d
TB
244CORE_H = ..\av.h \
245 ..\cop.h \
246 ..\cv.h \
247 ..\dosish.h \
248 ..\embed.h \
249 ..\form.h \
250 ..\gv.h \
251 ..\handy.h \
252 ..\hv.h \
253 ..\mg.h \
254 ..\nostdio.h \
255 ..\op.h \
256 ..\opcode.h \
257 ..\perl.h \
258 ..\perlio.h \
259 ..\perlsdio.h \
260 ..\perlsfio.h \
261 ..\perly.h \
262 ..\pp.h \
263 ..\proto.h \
264 ..\regexp.h \
265 ..\scope.h \
266 ..\sv.h \
059e4e88 267 ..\thread.h \
3e3baf6d
TB
268 ..\unixish.h \
269 ..\util.h \
270 ..\XSUB.h \
271 .\config.h \
272 ..\EXTERN.h \
49f531da
NIS
273 ..\perlvars.h \
274 ..\intrpvar.h \
d4cce5f1 275 ..\thrdvar.h \
3e3baf6d
TB
276 .\include\dirent.h \
277 .\include\netdb.h \
278 .\include\sys\socket.h \
279 .\win32.h
137443ea 280
dc050285
GS
281DYNAMIC_EXT=Socket IO Fcntl Opcode SDBM_File attrs Thread
282STATIC_EXT=DynaLoader
0a753a76 283
68dc0745
PP
284DYNALOADER=$(EXTDIR)\DynaLoader\DynaLoader
285SOCKET=$(EXTDIR)\Socket\Socket
286FCNTL=$(EXTDIR)\Fcntl\Fcntl
287OPCODE=$(EXTDIR)\Opcode\Opcode
288SDBM_FILE=$(EXTDIR)\SDBM_File\SDBM_File
289IO=$(EXTDIR)\IO\IO
059e4e88 290ATTRS=$(EXTDIR)\attrs\attrs
a98bd6f4 291THREAD=$(EXTDIR)\Thread\Thread
68dc0745
PP
292
293SOCKET_DLL=..\lib\auto\Socket\Socket.dll
294FCNTL_DLL=..\lib\auto\Fcntl\Fcntl.dll
295OPCODE_DLL=..\lib\auto\Opcode\Opcode.dll
296SDBM_FILE_DLL=..\lib\auto\SDBM_File\SDBM_File.dll
297IO_DLL=..\lib\auto\IO\IO.dll
059e4e88 298ATTRS_DLL=..\lib\auto\attrs\attrs.dll
a98bd6f4 299THREAD_DLL=..\lib\auto\Thread\Thread.dll
68dc0745
PP
300
301STATICLINKMODULES=DynaLoader
302DYNALOADMODULES= \
303 $(SOCKET_DLL) \
304 $(FCNTL_DLL) \
305 $(OPCODE_DLL) \
306 $(SDBM_FILE_DLL)\
059e4e88 307 $(IO_DLL) \
910dfcc8 308 $(ATTRS_DLL) \
a98bd6f4 309 $(THREAD_DLL)
68dc0745
PP
310
311POD2HTML=$(PODDIR)\pod2html
312POD2MAN=$(PODDIR)\pod2man
313POD2LATEX=$(PODDIR)\pod2latex
314POD2TEXT=$(PODDIR)\pod2text
315
137443ea
PP
316#
317# Top targets
318#
0a753a76 319
3e3baf6d 320all: $(PERLEXE) $(PERL95EXE) $(GLOBEXE) $(DYNALOADMODULES) $(MINIMOD) $(GLOBBAT)
0a753a76 321
d56e6723 322$(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
0a753a76 323
137443ea 324#------------------------------------------------------------
0a753a76 325
d56e6723 326$(GLOBEXE): perlglob$(o)
dc050285 327 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
d56e6723 328 perlglob$(o) setargv$(o)
0a753a76 329
d444a431
TB
330$(GLOBBAT) : ..\lib\File\DosGlob.pm $(MINIPERL)
331 $(MINIPERL) $(PL2BAT) - < ..\lib\File\DosGlob.pm > $(GLOBBAT)
3e3baf6d 332
d56e6723 333perlglob$(o) : perlglob.c
137443ea 334
d56e6723 335..\miniperlmain$(o) : ..\miniperlmain.c $(CORE_H)
137443ea 336
3e3baf6d
TB
337config.w32 : $(CFGSH_TMPL)
338 copy $(CFGSH_TMPL) config.w32
339
d55594ae 340.\config.h : $(CFGH_TMPL)
3e3baf6d
TB
341 -del /f config.h
342 copy $(CFGH_TMPL) config.h
343
137443ea 344..\config.sh : config.w32 $(MINIPERL) config_sh.PL
910dfcc8
GS
345 $(MINIPERL) -I..\lib config_sh.PL \
346 "INST_DRV=$(INST_DRV)" \
347 "INST_TOP=$(INST_TOP)" \
348 "cc=$(CC)" \
349 "ccflags=$(OPTIMIZE) $(DEFINES)" \
350 "cf_email=$(EMAIL)" \
26618a56 351 "d_crypt=$(D_CRYPT)" \
910dfcc8
GS
352 "libs=$(LIBFILES)" \
353 "incpath=$(CCINCDIR)" \
354 "libpth=$(CCLIBDIR)" \
355 "libc=$(LIBC)" \
356 "static_ext=$(STATIC_EXT)" \
357 "dynamic_ext=$(DYNAMIC_EXT)" \
358 "ldflags=$(LINK_FLAGS)" \
359 "optimize=$(OPTIMIZE)" \
360 config.w32 > ..\config.sh
137443ea 361
83437bec 362$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
137443ea 363 cd .. && miniperl configpm
c90c0ff4 364 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
137443ea
PP
365 $(XCOPY) ..\*.h ..\lib\CORE\*.*
366 $(XCOPY) *.h ..\lib\CORE\*.*
c90c0ff4 367 $(RCOPY) include ..\lib\CORE\*.*
3e3baf6d
TB
368 $(MINIPERL) -I..\lib config_h.PL || $(MAKE) CCTYPE=$(CCTYPE) \
369 RUNTIME=$(RUNTIME) CFG=$(CFG) $(CONFIGPM)
137443ea 370
d56e6723 371$(MINIPERL) : ..\miniperlmain$(o) $(CORE_OBJ) $(WIN32_OBJ)
137443ea 372 $(LINK32) -subsystem:console -out:$@ @<<
d56e6723 373 $(LINK_FLAGS) $(LIBFILES) ..\miniperlmain$(o) $(CORE_OBJ) $(WIN32_OBJ)
137443ea
PP
374<<
375
dc86dda3
NIS
376$(WIN32_OBJ) : $(CORE_H)
377$(CORE_OBJ) : $(CORE_H)
378$(DLL_OBJ) : $(CORE_H)
379$(PERL95_OBJ) : $(CORE_H)
0a753a76 380
910dfcc8
GS
381perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym makedef.pl
382 $(MINIPERL) -w makedef.pl $(OPTIMIZE) $(DEFINES) \
383 CCTYPE=$(CCTYPE) > perldll.def
0a753a76 384
137443ea
PP
385$(PERLDLL): perldll.def $(CORE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
386 $(LINK32) -dll -def:perldll.def -out:$@ @<<
dc050285 387 $(LINK_FLAGS) $(LIBFILES) $(CORE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
137443ea
PP
388<<
389 $(XCOPY) $(PERLIMPLIB) ..\lib\CORE
390
391perl.def : $(MINIPERL) makeperldef.pl
392 $(MINIPERL) -I..\lib makeperldef.pl $(NULL) > perl.def
393
83437bec
NIS
394$(MINIMOD) : $(MINIPERL) ..\minimod.pl
395 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
396
397perlmain.c : runperl.c
0a753a76 398 copy runperl.c perlmain.c
137443ea 399
d56e6723 400perlmain$(o) : perlmain.c
3e3baf6d 401 $(CC) $(CFLAGS) -UPERLDLL -c perlmain.c
137443ea 402
d56e6723 403$(PERLEXE): $(PERLDLL) $(CONFIGPM) perlmain$(o)
dc050285 404 $(LINK32) -subsystem:console -out:perl.exe $(LINK_FLAGS) $(LIBFILES) \
d56e6723 405 perlmain$(o) $(WINIOMAYBE) $(PERLIMPLIB)
137443ea
PP
406 copy perl.exe $@
407 del perl.exe
0a753a76 408 copy splittree.pl ..
137443ea 409 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
0a753a76 410
3e3baf6d
TB
411perl95.c : runperl.c
412 copy runperl.c perl95.c
413
d56e6723 414perl95$(o) : perl95.c
22239a37 415 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c perl95.c
3e3baf6d 416
d56e6723
GS
417win32sckmt$(o) : win32sck.c
418 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c $(OBJOUT_FLAG)win32sckmt$(o) win32sck.c
fb73857a 419
d56e6723
GS
420win32mt$(o) : win32.c
421 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c $(OBJOUT_FLAG)win32mt$(o) win32.c
fb73857a
PP
422
423$(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
dc050285 424 $(LINK32) -subsystem:console -out:perl95.exe $(LINK_FLAGS) $(LIBFILES) \
fb73857a 425 $(PERL95_OBJ) $(PERLIMPLIB)
3e3baf6d
TB
426 copy perl95.exe $@
427 del perl95.exe
428
137443ea 429$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
32f822de 430 if not exist ..\lib\auto mkdir ..\lib\auto
68dc0745
PP
431 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
432 cd $(EXTDIR)\$(*B)
433 $(XSUBPP) dl_win32.xs > $(*B).c
0a753a76
PP
434 cd ..\..\win32
435
68dc0745
PP
436$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
437 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
0a753a76 438
d55594ae 439$(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
a98bd6f4
GS
440 cd $(EXTDIR)\$(*B)
441 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
442 $(MAKE)
443 cd ..\..\win32
444
d55594ae 445$(THREAD_DLL): $(PERLEXE) $(THREAD).xs
059e4e88
GS
446 cd $(EXTDIR)\$(*B)
447 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
448 $(MAKE)
449 cd ..\..\win32
450
d55594ae
GS
451
452$(IO_DLL): $(PERLEXE) $(CONFIGPM) $(IO).xs
68dc0745 453 cd $(EXTDIR)\$(*B)
137443ea
PP
454 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
455 $(MAKE)
0a753a76
PP
456 cd ..\..\win32
457
137443ea 458$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
68dc0745 459 cd $(EXTDIR)\$(*B)
137443ea
PP
460 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
461 $(MAKE)
68dc0745 462 cd ..\..\win32
0a753a76 463
137443ea 464$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
68dc0745 465 cd $(EXTDIR)\$(*B)
137443ea
PP
466 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
467 $(MAKE)
0a753a76
PP
468 cd ..\..\win32
469
137443ea 470$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
68dc0745 471 cd $(EXTDIR)\$(*B)
137443ea
PP
472 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
473 $(MAKE)
68dc0745 474 cd ..\..\win32
0a753a76 475
059e4e88 476$(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
68dc0745 477 cd $(EXTDIR)\$(*B)
137443ea
PP
478 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
479 $(MAKE)
0a753a76
PP
480 cd ..\..\win32
481
68dc0745 482doc: $(PERLEXE)
84902520
TB
483 cd ..\pod
484 $(MAKE) -f ..\win32\pod.mak checkpods pod2html pod2latex \
485 pod2man pod2text
486 $(XCOPY) *.bat ..\win32\bin\*.*
487 cd ..\win32
3e3baf6d
TB
488 copy ..\README.win32 ..\pod\perlwin32.pod
489 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=./html \
490 --podpath=pod:lib:ext:utils --htmlroot="//$(INST_HTML::=|)" \
491 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
68dc0745 492
3fe9a6f1
PP
493utils: $(PERLEXE)
494 cd ..\utils
495 nmake PERL=$(MINIPERL)
d444a431
TB
496 $(PERLEXE) ..\win32\$(PL2BAT) h2ph splain perlbug pl2pm c2ph
497 $(PERLEXE) ..\win32\$(PL2BAT) h2xs perldoc pstruct
3fe9a6f1
PP
498 $(XCOPY) *.bat ..\win32\bin\*.*
499 cd ..\win32
d444a431
TB
500 $(PERLEXE) $(PL2BAT) bin\network.pl bin\www.pl bin\runperl.pl \
501 bin\pl2bat.pl
3fe9a6f1 502
137443ea 503distclean: clean
dc050285 504 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
83437bec 505 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
3e3baf6d 506 -del /f *.def *.map
54310121 507 -del /f $(SOCKET_DLL) $(IO_DLL) $(SDBM_FILE_DLL) $(FCNTL_DLL) \
a98bd6f4 508 $(OPCODE_DLL) $(ATTRS_DLL) $(THREAD_DLL)
54310121 509 -del /f $(SOCKET).c $(IO).c $(SDBM_FILE).c $(FCNTL).c $(OPCODE).c \
a98bd6f4 510 $(DYNALOADER).c $(ATTRS).c $(THREAD).c
68dc0745
PP
511 -del /f $(PODDIR)\*.html
512 -del /f $(PODDIR)\*.bat
d444a431
TB
513 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c \
514 config.h.new perl95.c
515 -del /f bin\*.bat
54310121
PP
516 -rmdir /s /q ..\lib\auto
517 -rmdir /s /q ..\lib\CORE
3e3baf6d 518 cd $(EXTDIR)
d56e6723 519 -del /s *.lib *.def *.map *.bs Makefile *$(o) pm_to_blib
3e3baf6d 520 cd ..\win32
68dc0745 521
3e3baf6d 522install : all doc utils
68dc0745
PP
523 if not exist $(INST_TOP) mkdir $(INST_TOP)
524 echo I $(INST_TOP) L $(LIBDIR)
525 $(XCOPY) $(PERLEXE) $(INST_BIN)\*.*
3e3baf6d 526 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
68dc0745
PP
527 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
528 $(XCOPY) $(PERLDLL) $(INST_BIN)\*.*
d444a431 529 $(XCOPY) bin\*.bat $(INST_BIN)\*.*
c90c0ff4 530 $(RCOPY) ..\lib $(INST_LIB)\*.*
68dc0745
PP
531 $(XCOPY) ..\pod\*.bat $(INST_BIN)\*.*
532 $(XCOPY) ..\pod\*.pod $(INST_POD)\*.*
3e3baf6d 533 $(RCOPY) html\*.* $(INST_HTML)\*.*
68dc0745 534
137443ea 535inst_lib : $(CONFIGPM)
68dc0745 536 copy splittree.pl ..
137443ea 537 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
c90c0ff4 538 $(RCOPY) ..\lib $(INST_LIB)\*.*
0a753a76 539
137443ea
PP
540minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM)
541 $(XCOPY) $(MINIPERL) ..\t\perl.exe
542 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
543 attrib -r ..\t\*.*
544 copy test ..\t
545 cd ..\t
546 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
547 cd ..\win32
548
fb73857a 549test-prep : all
68dc0745
PP
550 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
551 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
552 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
fb73857a
PP
553
554test : test-prep
555 cd ..\t
556 $(PERLEXE) -I..\lib harness
557 cd ..\win32
558
559test-notty : test-prep
560 set PERL_SKIP_TTY_TEST=1
137443ea
PP
561 cd ..\t
562 $(PERLEXE) -I..\lib harness
68dc0745 563 cd ..\win32
137443ea
PP
564
565clean :
d56e6723 566 -@erase miniperlmain$(o)
137443ea 567 -@erase $(MINIPERL)
d56e6723
GS
568 -@erase perlglob$(o)
569 -@erase perlmain$(o)
3e3baf6d
TB
570 -@erase config.w32
571 -@erase /f config.h
137443ea
PP
572 -@erase $(GLOBEXE)
573 -@erase $(PERLEXE)
574 -@erase $(PERLDLL)
575 -@erase $(CORE_OBJ)
576 -@erase $(WIN32_OBJ)
577 -@erase $(DLL_OBJ)
d56e6723 578 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp
d444a431 579 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
137443ea
PP
580 -@erase *.ilk
581 -@erase *.pdb
582
583