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