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