2 # Makefile to build perl on Windowns NT using DMAKE.
4 # Visual C++ 2.0 thro 5.0
6 # Mingw32-0.1.4 with gcc-2.7.2
8 # This is set up to build a perl.exe that runs off a shared library
9 # (perl.dll). Also makes individual DLLs for the XS extensions.
13 # Set these to wherever you want "nmake install" to put your
16 INST_TOP *= $(INST_DRV)\perl5004.5x
19 # uncomment to enable threads-capabilities
20 #USE_THREADS *= -DUSE_THREADS
30 # uncomment next line if you want to use the perl object
31 #OBJECT *= -DPERL_OBJECT
34 # uncomment next line if you want debug version of perl (big,slow)
38 # if you have the source for des_fcrypt(), uncomment this and make sure the
39 # file exists (see README.win32)
40 #CRYPT_SRC *= des_fcrypt.c
43 # if you didn't set CRYPT_SRC and if you have des_fcrypt() available in a
44 # library, uncomment this, and make sure the library exists (see README.win32)
45 #CRYPT_LIB *= des_fcrypt.lib
48 # set the install locations of the compiler include/libraries
49 #CCHOME *= f:\msdev\vc
51 #CCHOME *= D:\packages\mingw32
52 CCINCDIR *= $(CCHOME)\include
53 CCLIBDIR *= $(CCHOME)\lib
56 # set this to point to cmd.exe (only needed if you use some
57 # alternate shell that doesn't grok cmd.exe style commands)
58 #SHELL *= g:\winnt\system32\cmd.exe
61 # set this to your email address (perl will guess a value from
62 # from your loginname and your hostname, which may not be right)
65 ##################### CHANGE THESE ONLY IF YOU MUST #####################
67 .IF "$(CRYPT_SRC)$(CRYPT_LIB)" == ""
71 CRYPT_FLAG=-DHAVE_DES_FCRYPT
74 BUILDOPT *= $(USE_THREADS)
75 #BUILDOPT *= $(USE_THREADS) -DMULTIPLICITY
76 #BUILDOPT *= $(USE_THREADS) -DPERL_GLOBAL_STRUCT -DMULTIPLICITY
77 # -DUSE_PERLIO -D__STDC__=1 -DUSE_SFIO -DI_SFIO -I\sfio97\include
79 .IMPORT .IGNORE : PROCESSOR_ARCHITECTURE
81 PROCESSOR_ARCHITECTURE *= x86
83 .IF "$(USE_THREADS)" == ""
84 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)
86 ARCHNAME = MSWin32-$(PROCESSOR_ARCHITECTURE)-thread
89 ARCHDIR = ..\lib\$(ARCHNAME)
93 # Programs to compile, build .lib files and link
98 .IF "$(CCTYPE)" == "BORLAND"
109 INCLUDES = -I.\include -I. -I.. -I$(CCINCDIR)
110 #PCHFLAGS = -H -H$(INTDIR)\bcmoduls.pch
111 DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
112 LOCDEFS = -DPERLDLL -DPERL_CORE
115 LIBFILES = $(CRYPT_LIB) import32.lib $(LIBC) odbc32.lib odbccp32.lib
119 .IF "$(CFG)" == "Debug"
120 OPTIMIZE = -v $(RUNTIME) -DDEBUGGING
123 OPTIMIZE = -5 -O2 $(RUNTIME)
127 .IF "$(OBJECT)" == "-DPERL_OBJECT"
128 CFLAGS = -w -d -tWM -tWD -P $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
130 CFLAGS = -w -d -tWM -tWD $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
132 LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
136 .ELIF "$(CCTYPE)" == "GCC"
149 INCLUDES = -I.\include -I. -I..
150 DEFINES = -DWIN32 $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
151 LOCDEFS = -DPERLDLL -DPERL_CORE
154 LIBFILES = $(CRYPT_LIB) -ladvapi32 -luser32 -lwsock32 -lmingw32 -lgcc -lmoldname $(LIBC) \
159 .IF "$(CFG)" == "Debug"
160 OPTIMIZE = -g -O2 $(RUNTIME) -DDEBUGGING
163 OPTIMIZE = -g -O2 $(RUNTIME)
167 .IF "$(OBJECT)" == "-DPERL_OBJECT"
168 CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
170 CFLAGS = $(INCLUDES) $(DEFINES) $(LOCDEFS) $(OPTIMIZE)
172 LINK_FLAGS = $(LINK_DBG) -L$(CCLIBDIR)
184 .IF "$(RUNTIME)" == ""
187 INCLUDES = -I.\include -I. -I..
188 #PCHFLAGS = -Fp$(INTDIR)\vcmoduls.pch -YX
189 DEFINES = -DWIN32 -D_CONSOLE $(BUILDOPT) $(CRYPT_FLAG) $(OBJECT)
190 LOCDEFS = -DPERLDLL -DPERL_CORE
193 .IF "$(RUNTIME)" == "-MD"
201 .IF "$(CFG)" == "Debug"
202 .IF "$(CCTYPE)" == "MSVC20"
203 OPTIMIZE = -Od $(RUNTIME) -Z7 -D_DEBUG -DDEBUGGING
205 OPTIMIZE = -Od $(RUNTIME)d -Z7 -D_DEBUG -DDEBUGGING
207 LINK_DBG = -debug -pdb:none
209 .IF "$(CCTYPE)" == "MSVC20"
210 OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG
212 OPTIMIZE = -O1 $(RUNTIME) -DNDEBUG
217 # we don't add LIBC here, the compiler do it based on -MD/-MT
218 LIBFILES = $(CRYPT_LIB) oldnames.lib kernel32.lib user32.lib gdi32.lib \
219 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib \
220 oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib \
221 version.lib odbc32.lib odbccp32.lib
223 .IF "$(OBJECT)" == "-DPERL_OBJECT"
224 CFLAGS = -nologo -Gf -W3 -TP $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
226 CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOCDEFS) $(PCHFLAGS) $(OPTIMIZE)
228 LINK_FLAGS = -nologo $(LINK_DBG) -machine:$(PROCESSOR_ARCHITECTURE)
234 #################### do not edit below this line #######################
235 ############# NO USER-SERVICEABLE PARTS BEYOND THIS POINT ##############
243 .SUFFIXES : .c $(o) .dll .lib .exe .a
246 $(CC) -c $(null,$(<:d) $(NULL) -I$(<:d)) $(CFLAGS) $(OBJOUT_FLAG)$@ $<
252 .IF "$(CCTYPE)" == "BORLAND"
253 $(LINK32) -Tpd -ap $(LINK_FLAGS) c0d32$(o) $<,$@,,$(LIBFILES),$(*B).def
254 $(IMPLIB) $(*B).lib $@
255 .ELIF "$(CCTYPE)" == "GCC"
256 $(LINK32) -o $@ $(LINK_FLAGS) $< $(LIBFILES)
257 $(IMPLIB) -def $(*B).def $(*B).lib $@
259 $(LINK32) -dll -subsystem:windows -implib:$(*B).lib -def:$(*B).def \
260 -out:$@ $(LINK_FLAGS) $(LIBFILES) $< $(LIBPERL)
264 INST_BIN=$(INST_TOP)\bin
265 INST_LIB=$(INST_TOP)\lib
266 INST_POD=$(INST_LIB)\pod
267 INST_HTML=$(INST_POD)\html
271 EXTUTILSDIR=$(LIBDIR)\extutils
275 PERLIMPLIB=..\perl.lib
276 MINIPERL=..\miniperl.exe
279 GLOBEXE=..\perlglob.exe
280 CONFIGPM=..\lib\Config.pm
281 MINIMOD=..\lib\ExtUtils\Miniperl.pm
285 GLOBBAT = bin\perlglob.bat
287 .IF "$(CCTYPE)" == "BORLAND"
289 CFGSH_TMPL = config.bc
290 CFGH_TMPL = config_H.bc
292 .ELIF "$(CCTYPE)" == "GCC"
294 CFGSH_TMPL = config.gc
295 CFGH_TMPL = config_H.gc
300 CFGSH_TMPL = config.vc
301 CFGH_TMPL = config_H.vc
302 PERL95EXE=..\perl95.exe
306 XCOPY=xcopy /f /r /i /d
307 RCOPY=xcopy /f /r /i /e /d
311 .IF "$(CRYPT_SRC)" != ""
312 CRYPT_OBJ=$(CRYPT_SRC:db:+$(o))
316 # filenames given to xsubpp must have forward slashes (since it puts
317 # full pathnames in #line strings)
318 XSUBPP=..\$(MINIPERL) -I..\..\lib ..\$(EXTUTILSDIR)\xsubpp -C++ -prototypes
349 CORE_OBJ= ..\av$(o) \
378 WIN32_C = perllib.c \
383 WIN32_OBJ = win32$(o) \
387 PERL95_OBJ = perl95$(o) \
392 DLL_OBJ = perllib$(o) $(DYNALOADER)$(o)
394 X2P_OBJ = ..\x2p\a2p$(o) \
434 .\include\sys\socket.h \
437 DYNAMIC_EXT=Socket IO Fcntl Opcode SDBM_File attrs Thread B
438 STATIC_EXT=DynaLoader
440 DYNALOADER=$(EXTDIR)\DynaLoader\DynaLoader
441 SOCKET=$(EXTDIR)\Socket\Socket
442 FCNTL=$(EXTDIR)\Fcntl\Fcntl
443 OPCODE=$(EXTDIR)\Opcode\Opcode
444 SDBM_FILE=$(EXTDIR)\SDBM_File\SDBM_File
446 ATTRS=$(EXTDIR)\attrs\attrs
447 THREAD=$(EXTDIR)\Thread\Thread
450 SOCKET_DLL=..\lib\auto\Socket\Socket.dll
451 FCNTL_DLL=..\lib\auto\Fcntl\Fcntl.dll
452 OPCODE_DLL=..\lib\auto\Opcode\Opcode.dll
453 SDBM_FILE_DLL=..\lib\auto\SDBM_File\SDBM_File.dll
454 IO_DLL=..\lib\auto\IO\IO.dll
455 ATTRS_DLL=..\lib\auto\attrs\attrs.dll
456 THREAD_DLL=..\lib\auto\Thread\Thread.dll
457 B_DLL=..\lib\auto\B\B.dll
459 STATICLINKMODULES=DynaLoader
470 POD2HTML=$(PODDIR)\pod2html
471 POD2MAN=$(PODDIR)\pod2man
472 POD2LATEX=$(PODDIR)\pod2latex
473 POD2TEXT=$(PODDIR)\pod2text
479 all: $(PERLEXE) $(PERL95EXE) $(GLOBEXE) $(DYNALOADMODULES) $(MINIMOD) \
482 $(DYNALOADER)$(o) : $(DYNALOADER).c $(CORE_H) $(EXTDIR)\DynaLoader\dlutils.c
484 #------------------------------------------------------------
486 $(GLOBEXE): perlglob$(o)
487 .IF "$(CCTYPE)" == "BORLAND"
488 $(CC) -c -w -v -tWM -I$(CCINCDIR) perlglob.c
489 $(LINK32) -Tpe -ap $(LINK_FLAGS) c0x32$(o) perlglob$(o) \
490 $(CCLIBDIR)\32BIT\wildargs$(o),$@,,import32.lib cw32mt.lib,
491 .ELIF "$(CCTYPE)" == "GCC"
492 $(LINK32) $(LINK_FLAGS) -o $@ perlglob$(o) $(LIBFILES)
494 $(LINK32) $(LINK_FLAGS) $(LIBFILES) -out:$@ -subsystem:$(SUBSYS) \
495 perlglob$(o) setargv$(o)
498 perlglob$(o) : perlglob.c
500 ..\miniperlmain$(o) : ..\miniperlmain.c $(CORE_H)
502 config.w32 : $(CFGSH_TMPL)
503 copy $(CFGSH_TMPL) config.w32
505 .\config.h : $(CFGH_TMPL)
507 copy $(CFGH_TMPL) config.h
509 ..\config.sh : config.w32 $(MINIPERL) config_sh.PL
510 $(MINIPERL) -I..\lib config_sh.PL \
511 "INST_DRV=$(INST_DRV)" \
512 "INST_TOP=$(INST_TOP)" \
513 "archname=$(ARCHNAME)" \
515 "ccflags=$(OPTIMIZE) $(DEFINES)" \
516 "cf_email=$(EMAIL)" \
517 "d_crypt=$(D_CRYPT)" \
518 "libs=$(LIBFILES:f)" \
519 "incpath=$(CCINCDIR)" \
520 "libpth=$(strip $(CCLIBDIR) $(LIBFILES:d))" \
522 "static_ext=$(STATIC_EXT)" \
523 "dynamic_ext=$(DYNAMIC_EXT)" \
524 "LINK_FLAGS=$(LINK_FLAGS)" \
525 "optimize=$(OPTIMIZE)" \
526 config.w32 > ..\config.sh
528 $(CONFIGPM) : $(MINIPERL) ..\config.sh config_h.PL ..\minimod.pl
529 cd .. && miniperl configpm
530 if exist lib\* $(RCOPY) lib\*.* ..\lib\$(NULL)
531 $(XCOPY) ..\*.h $(COREDIR)\*.*
532 $(XCOPY) *.h $(COREDIR)\*.*
533 $(RCOPY) include $(COREDIR)\*.*
534 $(MINIPERL) -I..\lib config_h.PL || $(MAKE) CCTYPE=$(CCTYPE) \
535 CFG=$(CFG) $(CONFIGPM)
540 $(MINIPERL) : ..\miniperlmain$(o) $(CORE_OBJ) $(WIN32_OBJ)
541 .IF "$(CCTYPE)" == "BORLAND"
542 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
543 @$(mktmp c0x32$(o) ..\miniperlmain$(o) \
544 $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
545 .ELIF "$(CCTYPE)" == "GCC"
546 $(LINK32) -v -o $@ $(LINK_FLAGS) \
547 $(mktmp $(LKPRE) ..\miniperlmain$(o) \
548 $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
550 $(LINK32) -subsystem:console -out:$@ \
551 @$(mktmp $(LINK_FLAGS) $(LIBFILES) ..\miniperlmain$(o) \
552 $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\))
555 $(WIN32_OBJ) : $(CORE_H)
556 $(CORE_OBJ) : $(CORE_H)
557 $(DLL_OBJ) : $(CORE_H)
558 $(X2P_OBJ) : $(CORE_H)
560 perldll.def : $(MINIPERL) $(CONFIGPM) ..\global.sym makedef.pl
561 $(MINIPERL) -w makedef.pl $(OPTIMIZE) $(DEFINES) \
562 CCTYPE=$(CCTYPE) > perldll.def
564 $(PERLDLL): perldll.def $(CORE_OBJ) $(WIN32_OBJ) $(DLL_OBJ)
565 .IF "$(CCTYPE)" == "BORLAND"
566 $(LINK32) -Tpd -ap $(LINK_FLAGS) \
567 @$(mktmp c0d32$(o) $(CORE_OBJ:s,\,\\) \
568 $(WIN32_OBJ:s,\,\\) $(DLL_OBJ:s,\,\\)\n \
573 .ELIF "$(CCTYPE)" == "GCC"
574 $(LINK32) -mdll -o $@ -Wl,--base-file -Wl,perl.base $(LINK_FLAGS) \
575 $(mktmp $(LKPRE) $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\) \
576 $(DLL_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
577 dlltool --output-lib $(PERLIMPLIB) \
580 --base-file perl.base \
581 --output-exp perl.exp
582 $(LINK32) -mdll -o $@ $(LINK_FLAGS) \
583 $(mktmp $(LKPRE) $(CORE_OBJ:s,\,\\) $(WIN32_OBJ:s,\,\\) \
584 $(DLL_OBJ:s,\,\\) $(LIBFILES) perl.exp $(LKPOST))
586 $(LINK32) -dll -def:perldll.def -out:$@ \
587 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(CORE_OBJ:s,\,\\) \
588 $(WIN32_OBJ:s,\,\\) $(DLL_OBJ:s,\,\\))
590 $(XCOPY) $(PERLIMPLIB) $(COREDIR)
592 perl.def : $(MINIPERL) makeperldef.pl
593 $(MINIPERL) -I..\lib makeperldef.pl $(NULL) > perl.def
595 $(MINIMOD) : $(MINIPERL) ..\minimod.pl
596 cd .. && miniperl minimod.pl > lib\ExtUtils\Miniperl.pm
599 $(MINIPERL) ..\x2p\find2perl.PL
600 $(MINIPERL) ..\x2p\s2p.PL
601 .IF "$(CCTYPE)" == "BORLAND"
602 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
603 @$(mktmp c0x32$(o) $(X2P_OBJ:s,\,\\),$(@:s,\,\\),,$(LIBFILES),)
604 .ELIF "$(CCTYPE)" == "GCC"
605 $(LINK32) -v -o $@ $(LINK_FLAGS) \
606 $(mktmp $(LKPRE) $(X2P_OBJ:s,\,\\) $(LIBFILES) $(LKPOST))
608 $(LINK32) -subsystem:console -out:$@ \
609 @$(mktmp $(LINK_FLAGS) $(LIBFILES) $(X2P_OBJ:s,\,\\)
612 perlmain.c : runperl.c
613 copy runperl.c perlmain.c
615 perlmain$(o) : perlmain.c
616 $(CC) $(CFLAGS) -UPERLDLL $(EXEOUT_FLAG)$@ -c perlmain.c
618 $(PERLEXE): $(PERLDLL) $(CONFIGPM) perlmain$(o)
619 .IF "$(CCTYPE)" == "BORLAND"
620 $(LINK32) -Tpe -ap $(LINK_FLAGS) \
621 @$(mktmp c0x32$(o) perlmain$(o) $(WINIOMAYBE)\n \
623 $(PERLIMPLIB) $(LIBFILES)\n)
624 .ELIF "$(CCTYPE)" == "GCC"
625 $(LINK32) -o $@ $(LINK_FLAGS) \
626 perlmain.o $(WINIOMAYBE) $(PERLIMPLIB) $(LIBFILES)
628 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
629 perlmain$(o) $(WINIOMAYBE) $(PERLIMPLIB)
632 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
634 .IF "$(CCTYPE)" != "BORLAND"
635 .IF "$(CCTYPE)" != "GCC"
638 copy runperl.c perl95.c
640 perl95$(o) : perl95.c
641 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c perl95.c
643 win32sckmt$(o) : win32sck.c
644 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c $(OBJOUT_FLAG)win32sckmt$(o) win32sck.c
646 win32mt$(o) : win32.c
647 $(CC) $(CFLAGS) -MT -UPERLDLL -DWIN95FIX -c $(OBJOUT_FLAG)win32mt$(o) win32.c
649 $(PERL95EXE): $(PERLDLL) $(CONFIGPM) $(PERL95_OBJ)
650 $(LINK32) -subsystem:console -out:$@ $(LINK_FLAGS) $(LIBFILES) \
651 $(PERL95_OBJ) $(PERLIMPLIB)
656 $(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs $(CONFIGPM)
657 if not exist ..\lib\auto mkdir ..\lib\auto
658 $(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
659 cd $(EXTDIR)\$(*B) && $(XSUBPP) dl_win32.xs > $(*B).c
660 $(XCOPY) $(EXTDIR)\$(*B)\dlutils.c .
662 $(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
663 copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs
665 $(B_DLL): $(PERLEXE) $(B).xs
666 cd $(EXTDIR)\$(*B) && \
667 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
668 cd $(EXTDIR)\$(*B) && $(MAKE)
670 $(THREAD_DLL): $(PERLEXE) $(THREAD).xs
671 cd $(EXTDIR)\$(*B) && \
672 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
673 cd $(EXTDIR)\$(*B) && $(MAKE)
675 $(ATTRS_DLL): $(PERLEXE) $(ATTRS).xs
676 cd $(EXTDIR)\$(*B) && \
677 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
678 cd $(EXTDIR)\$(*B) && $(MAKE)
680 $(IO_DLL): $(PERLEXE) $(IO).xs
681 cd $(EXTDIR)\$(*B) && \
682 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
683 cd $(EXTDIR)\$(*B) && $(MAKE)
685 $(SDBM_FILE_DLL) : $(PERLEXE) $(SDBM_FILE).xs
686 cd $(EXTDIR)\$(*B) && \
687 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
688 cd $(EXTDIR)\$(*B) && $(MAKE)
690 $(FCNTL_DLL): $(PERLEXE) $(FCNTL).xs
691 cd $(EXTDIR)\$(*B) && \
692 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
693 cd $(EXTDIR)\$(*B) && $(MAKE)
695 $(OPCODE_DLL): $(PERLEXE) $(OPCODE).xs
696 cd $(EXTDIR)\$(*B) && \
697 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
698 cd $(EXTDIR)\$(*B) && $(MAKE)
700 $(SOCKET_DLL): $(PERLEXE) $(SOCKET).xs
701 cd $(EXTDIR)\$(*B) && \
702 ..\..\miniperl -I..\..\lib Makefile.PL INSTALLDIRS=perl
703 cd $(EXTDIR)\$(*B) && $(MAKE)
706 cd ..\pod && $(MAKE) -f ..\win32\pod.mak checkpods \
707 pod2html pod2latex pod2man pod2text
708 cd ..\pod && $(XCOPY) *.bat ..\win32\bin\*.*
709 copy ..\README.win32 ..\pod\perlwin32.pod
710 $(PERLEXE) -I..\lib ..\installhtml --podroot=.. --htmldir=./html \
711 --podpath=pod:lib:ext:utils --htmlroot="//$(INST_HTML:s,:,|,)" \
712 --libpod=perlfunc:perlguts:perlvar:perlrun:perlop --recurse
715 cd ..\utils && $(MAKE) PERL=$(MINIPERL)
716 cd ..\utils && $(PERLEXE) ..\win32\$(PL2BAT) h2ph splain perlbug \
717 pl2pm c2ph h2xs perldoc pstruct
718 $(XCOPY) ..\utils\*.bat bin\*.*
719 $(PERLEXE) -I..\lib $(PL2BAT) bin\network.pl bin\www.pl bin\runperl.pl \
720 bin\pl2bat.pl bin\perlglob.pl
723 -del /f $(MINIPERL) $(PERLEXE) $(PERL95EXE) $(PERLDLL) $(GLOBEXE) \
724 $(PERLIMPLIB) ..\miniperl.lib $(MINIMOD)
726 -del /f $(SOCKET_DLL) $(IO_DLL) $(SDBM_FILE_DLL) $(FCNTL_DLL) \
727 $(OPCODE_DLL) $(ATTRS_DLL) $(THREAD_DLL) $(B_DLL)
728 -del /f $(SOCKET).c $(IO).c $(SDBM_FILE).c $(FCNTL).c $(OPCODE).c \
729 $(DYNALOADER).c $(ATTRS).c $(THREAD).c $(B).c
730 -del /f $(PODDIR)\*.html
731 -del /f $(PODDIR)\*.bat
732 -del /f ..\config.sh ..\splittree.pl perlmain.c dlutils.c config.h.new
733 .IF "$(PERL95EXE)" != ""
737 -cd $(EXTDIR) && del /s *.lib *.def *.map *.bs Makefile *$(o) pm_to_blib
738 -rmdir /s /q ..\lib\auto || rmdir /s ..\lib\auto
739 -rmdir /s /q $(COREDIR) || rmdir /s $(COREDIR)
741 install : all doc utils
742 $(PERLEXE) ..\installperl
743 .IF "$(PERL95EXE)" != ""
744 $(XCOPY) $(PERL95EXE) $(INST_BIN)\*.*
746 $(XCOPY) $(GLOBEXE) $(INST_BIN)\*.*
747 $(XCOPY) bin\*.bat $(INST_BIN)\*.*
748 $(XCOPY) ..\pod\*.bat $(INST_BIN)\*.*
749 $(RCOPY) html\*.* $(INST_HTML)\*.*
751 inst_lib : $(CONFIGPM)
753 $(MINIPERL) -I..\lib ..\splittree.pl "../LIB" "../LIB/auto"
754 $(RCOPY) ..\lib $(INST_LIB)\*.*
756 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
757 $(XCOPY) $(MINIPERL) ..\t\perl.exe
758 .IF "$(CCTYPE)" == "BORLAND"
759 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
761 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
766 $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
768 test-prep : all utils
769 $(XCOPY) $(PERLEXE) ..\t\$(NULL)
770 $(XCOPY) $(PERLDLL) ..\t\$(NULL)
771 .IF "$(CCTYPE)" == "BORLAND"
772 $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
774 $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
778 cd ..\t && $(PERLEXE) -I..\lib harness
780 test-notty : test-prep
781 set PERL_SKIP_TTY_TEST=1 && \
782 cd ..\t && $(PERLEXE) -I.\lib harness
785 -@erase miniperlmain$(o)
798 -@erase ..\*$(o) ..\*.lib ..\*.exp *$(o) *.lib *.exp
799 -@erase ..\t\*.exe ..\t\*.dll ..\t\*.bat
800 -@erase ..\x2p\*.exe ..\x2p\*.bat