This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Missing 'require' in auto-generated .pm by h2xs
[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
270DLL_OBJ = perllib.obj $(DYNALOADER).obj
271
272CORE_H = ..\av.h \
273 ..\cop.h \
274 ..\cv.h \
275 ..\dosish.h \
276 ..\embed.h \
277 ..\form.h \
278 ..\gv.h \
279 ..\handy.h \
280 ..\hv.h \
281 ..\mg.h \
282 ..\nostdio.h \
283 ..\op.h \
284 ..\opcode.h \
285 ..\perl.h \
286 ..\perlio.h \
287 ..\perlsdio.h \
288 ..\perlsfio.h \
289 ..\perly.h \
290 ..\pp.h \
291 ..\proto.h \
292 ..\regexp.h \
293 ..\scope.h \
294 ..\sv.h \
295 ..\unixish.h \
296 ..\util.h \
297 ..\XSUB.h \
298 .\config.h \
299 ..\EXTERN.h \
300 .\include\dirent.h \
301 .\include\netdb.h \
302 .\include\sys\socket.h \
303 .\win32.h
304
305
306EXTENSIONS=DynaLoader Socket IO Fcntl Opcode SDBM_File
307
308DYNALOADER=$(EXTDIR)\DynaLoader\DynaLoader
309SOCKET=$(EXTDIR)\Socket\Socket
310FCNTL=$(EXTDIR)\Fcntl\Fcntl
311OPCODE=$(EXTDIR)\Opcode\Opcode
312SDBM_FILE=$(EXTDIR)\SDBM_File\SDBM_File
313IO=$(EXTDIR)\IO\IO
314
315SOCKET_DLL=..\lib\auto\Socket\Socket.dll
316FCNTL_DLL=..\lib\auto\Fcntl\Fcntl.dll
317OPCODE_DLL=..\lib\auto\Opcode\Opcode.dll
318SDBM_FILE_DLL=..\lib\auto\SDBM_File\SDBM_File.dll
319IO_DLL=..\lib\auto\IO\IO.dll
320
321STATICLINKMODULES=DynaLoader
322DYNALOADMODULES= \
323 $(SOCKET_DLL) \
324 $(FCNTL_DLL) \
325 $(OPCODE_DLL) \
326 $(SDBM_FILE_DLL)\
327 $(IO_DLL)
328
329POD2HTML=$(PODDIR)\pod2html
330POD2MAN=$(PODDIR)\pod2man
331POD2LATEX=$(PODDIR)\pod2latex
332POD2TEXT=$(PODDIR)\pod2text
333
334#
335# Top targets
336#
337
338all: $(PERLEXE) $(PERL95EXE) $(GLOBEXE) $(DYNALOADMODULES) $(MINIMOD) $(GLOBBAT)
339
340$(DYNALOADER).obj : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
341
342#------------------------------------------------------------
343
344$(GLOBEXE): perlglob.obj
345.IF "$(CCTYPE)" == "BORLAND"
346 $(CC) -c -w -v -tWM -I$(CCINCDIR) perlglob.c
347 $(LINK32) -Tpe -ap $(LINK_FLAGS) c0x32.obj perlglob.obj \
348 $(CCLIBDIR)\32BIT\wildargs.obj,$@,,import32.lib cw32mt.lib,
349.ELSE
350 $(LINK32) $(LINK_FLAGS) -out:$@ -subsystem:$(SUBSYS) perlglob.obj setargv.obj
351.ENDIF
352
d444a431
TB
353$(GLOBBAT) : ..\lib\File\DosGlob.pm $(MINIPERL)
354 $(MINIPERL) $(PL2BAT) - < ..\lib\File\DosGlob.pm > $(GLOBBAT)
08aa1457
PP
355
356perlglob.obj : perlglob.c
357
358..\miniperlmain.obj : ..\miniperlmain.c $(CORE_H)
359
360config.w32 : $(CFGSH_TMPL)
361 copy $(CFGSH_TMPL) config.w32
362
363.\config.h : $(CFGSH_TMPL)
364 -del /f config.h
365 copy $(CFGH_TMPL) config.h
366
367..\config.sh : config.w32 $(MINIPERL) config_sh.PL
368 $(MINIPERL) -I..\lib config_sh.PL "INST_DRV=$(INST_DRV)" \
369 "INST_TOP=$(INST_TOP)" "cc=$(CC)" "ccflags=$(RUNTIME) -DWIN32" \
f7c603cb 370 "cf_email=$(EMAIL)" "libs=$(LIBFILES:f)" "incpath=$(CCINCDIR)" \
08aa1457
PP
371 "libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" "libc=$(LIBC)" \
372 config.w32 > ..\config.sh
373
374$(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
375 cd .. && miniperl configpm
376 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
377 $(XCOPY) ..\*.h ..\lib\CORE\*.*
378 $(XCOPY) *.h ..\lib\CORE\*.*
379 $(RCOPY) include ..\lib\CORE\*.*
380 $(MINIPERL) -I..\lib config_h.PL || $(MAKE) CCTYPE=$(CCTYPE) \
381 RUNTIME=$(RUNTIME) CFG=$(CFG) $(CONFIGPM)
382
383$(MINIPERL) : ..\miniperlmain.obj $(CORE_OBJ) $(WIN32_OBJ)
384.IF "$(CCTYPE)" == "BORLAND"
385 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
386 @$(mktmp c0x32.obj ..\miniperlmain.obj \
387 $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\),$@,,$(LIBFILES),)
388.ELSE
389 $(LINK32) -subsystem:console -out:$@ \
390 @$(mktmp $(LINK_FLAGS) ..\miniperlmain.obj \
391 $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\))
392.ENDIF
393
394$(WIN32_OBJ) : $(CORE_H)
395$(CORE_OBJ) : $(CORE_H)
396$(DLL_OBJ) : $(CORE_H)
397
398perldll.def : $(MINIPERL) $(CONFIGPM)
399 $(MINIPERL) -w makedef.pl $(CCTYPE) > perldll.def
400
401$(PERLDLL): perldll.def $(CORE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
402.IF "$(CCTYPE)" == "BORLAND"
403 $(LINK32) -Tpd -ap $(LINK_FLAGS) \
404 @$(mktmp c0d32.obj $(CORE_OBJ:s,\,\\) \
405 $(WIN32_OBJ:s,\,\\) $(DLL_OBJ:s,\,\\)\n \
406 $@,\n \
407 $(LIBFILES)\n \
408 perldll.def\n)
409 $(IMPLIB) $*.lib $@
410.ELSE
411 $(LINK32) -dll -def:perldll.def -out:$@ \
412 @$(mktmp $(LINK_FLAGS) $(CORE_OBJ:s,\,\\) \
413 $(WIN32_OBJ:s,\,\\) $(DLL_OBJ:s,\,\\))
414.ENDIF
415 $(XCOPY) $(PERLIMPLIB) ..\lib\CORE
416
417perl.def : $(MINIPERL) makeperldef.pl
418 $(MINIPERL) -I..\lib makeperldef.pl $(NULL) > perl.def
419
420$(MINIMOD) : $(MINIPERL) ..\minimod.pl
421 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
422
423perlmain.c : runperl.c
424 copy runperl.c perlmain.c
425
426perlmain.obj : perlmain.c
427 $(CC) $(CFLAGS) -UPERLDLL -c perlmain.c
428
429
430$(PERLEXE): $(PERLDLL) $(CONFIGPM) perlmain.obj
431.IF "$(CCTYPE)" == "BORLAND"
432 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
433 @$(mktmp c0x32.obj perlmain.obj $(WINIOMAYBE)\n \
434 $@,\n \
435 $(PERLIMPLIB) $(LIBFILES)\n)
436.ELSE
437 $(LINK32) -subsystem:console -out:perl.exe $(LINK_FLAGS) \
438 perlmain.obj $(WINIOMAYBE) $(PERLIMPLIB)
439 copy perl.exe $@
440 del perl.exe
441.ENDIF
442 copy splittree.pl ..
443 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
444 attrib -r ..\t\*.*
445 copy test ..\t
446
447.IF "$(CCTYPE)" != "BORLAND"
448
449perl95.c : runperl.c
450 copy runperl.c perl95.c
451
452perl95.obj : perl95.c
453 $(CC) $(CFLAGS) -MT -UPERLDLL -c perl95.c
454
455win32iomt.obj : win32io.c
456 $(CC) $(CFLAGS) -MT -c $(OBJOUT_FLAG)win32iomt.obj win32io.c
457
458$(PERL95EXE): $(PERLDLL) $(CONFIGPM) perl95.obj win32iomt.obj
459 $(LINK32) -subsystem:console -out:perl95.exe $(LINK_FLAGS) \
460 perl95.obj win32iomt.obj $(PERLIMPLIB)
461 copy perl95.exe $@
462 del perl95.exe
463
464.ENDIF
465
466$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
467 if not exist ..\lib\auto mkdir ..\lib\auto
468 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
469 cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
470 $(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .
471
472$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
473 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
474
475$(IO_DLL): $(PERLEXE) $(CONFIGPM) $(IO).xs
476 cd $(EXTDIR)\$(*B) && \
477 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
478 cd $(EXTDIR)\$(*B) && $(MAKE)
479
480$(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
481 cd $(EXTDIR)\$(*B) && \
482 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
483 cd $(EXTDIR)\$(*B) && $(MAKE)
484
485$(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
486 cd $(EXTDIR)\$(*B) && \
487 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
488 cd $(EXTDIR)\$(*B) && $(MAKE)
489
490$(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
491 cd $(EXTDIR)\$(*B) && \
492 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
493 cd $(EXTDIR)\$(*B) && $(MAKE)
494
495$(SOCKET_DLL): $(SOCKET).xs $(PERLEXE)
496 cd $(EXTDIR)\$(*B) && \
497 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
498 cd $(EXTDIR)\$(*B) && $(MAKE)
499
500doc: $(PERLEXE)
84902520
TB
501 cd ..\pod && $(MAKE) -f ..\win32\pod.mak checkpods \
502 pod2html pod2latex pod2man pod2text
503 cd ..\pod && $(XCOPY) *.bat ..\win32\bin\*.*
08aa1457
PP
504 copy ..\README.win32 ..\pod\perlwin32.pod
505 $(PERLEXE) ..\installhtml --podroot=.. --htmldir=./html \
506 --podpath=pod:lib:ext:utils --htmlroot="//$(INST_HTML:s,:,|,)" \
507 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
508
509utils: $(PERLEXE)
510 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
511 cd ..\utils && $(PERLEXE) ..\win32\$(PL2BAT) h2ph splain perlbug \
512 pl2pm c2ph h2xs perldoc pstruct
d444a431
TB
513 $(XCOPY) ..\utils\*.bat bin\*.*
514 $(PERLEXE) $(PL2BAT) bin\network.pl bin\www.pl bin\runperl.pl \
515 bin\pl2bat.pl
08aa1457
PP
516
517distclean: clean
518 -del /f $(MINIPERL) $(PERLEXE) $(PERLDLL) $(GLOBEXE) \
519 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
520 -del /f *.def *.map
521 -del /f $(SOCKET_DLL) $(IO_DLL) $(SDBM_FILE_DLL) $(FCNTL_DLL) \
522 $(OPCODE_DLL)
523 -del /f $(SOCKET).c $(IO).c $(SDBM_FILE).c $(FCNTL).c $(OPCODE).c \
524 $(DYNALOADER).c
525 -del /f $(PODDIR)\*.html
526 -del /f $(PODDIR)\*.bat
d444a431
TB
527 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
528.IF "$(PERL95EXE)" != ""
529 -del /f perl95.c
530.ENDIF
531 -del /f bin\*.bat
08aa1457
PP
532 -cd $(EXTDIR) && del /s *.lib *.def *.map *.bs Makefile *.obj pm_to_blib
533 -rmdir /s /q ..\lib\auto
534 -rmdir /s /q ..\lib\CORE
535
536install : all doc utils
537 if not exist $(INST_TOP) mkdir $(INST_TOP)
538 echo I $(INST_TOP) L $(LIBDIR)
539 $(XCOPY) $(PERLEXE) $(INST_BIN)\*.*
540.IF "$(PERL95EXE)" != ""
541 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
542.ENDIF
543 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
08aa1457 544 $(XCOPY) $(PERLDLL) $(INST_BIN)\*.*
d444a431 545 $(XCOPY) bin\*.bat $(INST_BIN)\*.*
08aa1457
PP
546 $(RCOPY) ..\lib $(INST_LIB)\*.*
547 $(XCOPY) ..\pod\*.bat $(INST_BIN)\*.*
548 $(XCOPY) ..\pod\*.pod $(INST_POD)\*.*
549 $(RCOPY) html\*.* $(INST_HTML)\*.*
550
551inst_lib : $(CONFIGPM)
552 copy splittree.pl ..
553 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
554 $(RCOPY) ..\lib $(INST_LIB)\*.*
555
556minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM)
557 $(XCOPY) $(MINIPERL) ..\t\perl.exe
558.IF "$(CCTYPE)" == "BORLAND"
559 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
560.ELSE
561 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
562.ENDIF
563 attrib -r ..\t\*.*
564 copy test ..\t
565 cd ..\t && \
566 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
567
568test : all
569 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
570 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
571.IF "$(CCTYPE)" == "BORLAND"
572 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
573.ELSE
574 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
575.ENDIF
576 cd ..\t && $(PERLEXE) -I..\lib harness
577
578clean :
579 -@erase miniperlmain.obj
580 -@erase $(MINIPERL)
581 -@erase perlglob.obj
582 -@erase perlmain.obj
583 -@erase config.w32
584 -@erase /f config.h
585 -@erase $(GLOBEXE)
586 -@erase $(PERLEXE)
587 -@erase $(PERLDLL)
588 -@erase $(CORE_OBJ)
589 -@erase $(WIN32_OBJ)
590 -@erase $(DLL_OBJ)
d444a431
TB
591 -@erase ..\*.obj ..\*.lib ..\*.exp *.obj *.lib *.exp
592 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
08aa1457
PP
593 -@erase *.ilk
594 -@erase *.pdb
595
596