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