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