This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: Inline PI function
[perl5.git] / win32 / Makefile
CommitLineData
0a753a76
PP
1
2LIBDIR=..\..\lib
3EXTDIR=..\ext
4EXTUTILSDIR=$(LIBDIR)\extutils
5XSUBPP=..\..\miniperl $(EXTUTILSDIR)\xsubpp -C++ -prototypes
6AUTOSPLIT=..\..\miniperl ..\..\win32\autosplit.pl
7DEST=..\
8
9EXTENSIONS=DynaLoader Socket IO Fcntl Opcode SDBM_File
10#STATICLINKMODUES=DynaLoader Socket Fcntl Opcode SDBM_File
11STATICLINKMODUES=
12#DYNALOADMODULES=IO.dll
13DYNALOADMODULES=Socket.dll Fcntl.dll Opcode.dll SDBM_File.dll IO.dll
14
15ALL: perl
16
17!IF "$(CFG)" ==""
18CFG=Release
19!ENDIF
20
21modules : $(EXTENSIONS)
22 nmake -A -f modules.mak CFG="modules - Win32 $(CFG)"
23
24perlglob.exe:
25 nmake -f perlglob.mak CFG="perlglob - Win32 Release"
26
27libperl.lib:
28 attrib -r ..\*.h
29 copy dosish.h ..
30 copy EXTERN.h ..
31 nmake -f libperl.mak CFG="libperl - Win32 $(CFG)"
32
33miniperl.exe: libperl.lib
34 nmake -A -f miniperl.mak CFG="miniperl - Win32 $(CFG)"
35 copy config.w32 ..\config.sh
36 cd ..
37 miniperl configpm
38 cd win32
39 if exist lib\* xcopy lib\*.* ..\lib\ /s/e
40 copy bin\test.bat ..\t
41
42perldll: miniperl.exe libperl.lib
43 ..\miniperl -w makedef.pl > perldll.def
44 nmake -A -f perldll.mak CFG="perldll - Win32 $(CFG)"
45
46dynamodules: $(DYNALOADMODULES)
47
48perl: miniperl.exe modules perldll perlglob.exe dynamodules
49 ..\miniperl makemain.pl $(STATICLINKMODUES) > perlmain.c
50 ..\miniperl makeperldef.pl $(STATICLINKMODUES) > perl.def
51 copy runperl.c perlmain.c
52 nmake -A -f perl.mak CFG="perl - Win32 $(CFG)"
53 copy ..\_perl.exe ..\perl.exe
54 del ..\_perl.exe
55 del ..\*.exp
56 copy splittree.pl ..
57 ..\miniperl ..\splittree.pl "../LIB" "../LIB/auto"
58 attrib -r ..\t\*.*
59 copy test ..\t
60 xcopy ..\perl.h ..\lib\CORE\*.*
61
62DynaLoader:
63 md ..\lib\auto
64 cd $(EXTDIR)\$*
65 copy ..\..\win32\dl_win32.xs .
66 copy $*.pm $(LIBDIR)
67 $(XSUBPP) dl_win32.xs > $*.c
68 cd ..\..\win32
69
70Socket:
71 md ..\lib\auto\$*
72 ..\miniperl genxsdef.pl $* > $*.def
73 cd $(EXTDIR)\$*
74 copy $*.pm $(LIBDIR)
75 $(XSUBPP) $*.xs > $*.c
76 cd ..\..\win32
77
78Socket.dll:
79 nmake -f $*.mak CFG="$* - Win32 $(CFG)"
80
81IO:
82 md ..\lib\auto\$*
83 ..\miniperl genxsdef.pl $* > $*.def
84 cd $(EXTDIR)\$*
85 copy $*.pm $(LIBDIR)
86 xcopy lib\*.* $(LIBDIR) /s
87 $(XSUBPP) $*.xs > $*.c
88 cd ..\..\win32
89
90IO.dll:
91 nmake -f $*.mak CFG="$* - Win32 $(CFG)"
92
93SDBM_File:
94 md ..\lib\auto\$*
95 ..\miniperl genxsdef.pl $* > $*.def
96 cd $(EXTDIR)\$*
97 copy $*.pm $(LIBDIR)
98 $(XSUBPP) -typemap ./typemap $*.xs > $*.c
99 cd ..\..\win32
100
101SDBM_File.dll:
102 nmake -f $*.mak CFG="$* - Win32 $(CFG)"
103
104Fcntl:
105 md ..\lib\auto\$*
106 ..\miniperl genxsdef.pl $* > $*.def
107 cd $(EXTDIR)\$*
108 copy $*.pm $(LIBDIR)
109 $(XSUBPP) $*.xs > $*.c
110 cd ..\..\win32
111
112Fcntl.dll:
113 nmake -f $*.mak CFG="$* - Win32 $(CFG)"
114
115Opcode:
116 md ..\lib\auto\$*
117 ..\miniperl genxsdef.pl $* > $*.def
118 cd $(EXTDIR)\$*
119 xcopy *.pm $(LIBDIR)
120 $(XSUBPP) $*.xs > $*.c
121 cd ..\..\win32
122
123Opcode.dll:
124 nmake -f $*.mak CFG="$* - Win32 $(CFG)"
125
126