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