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