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