2003-04-08 Gaurav Vaish <gvaish_mono AT lycos.com>
[mono.git] / mcs / makefile
1 VERSION=0.13.99
2
3 DIRS=jay nant mcs class nunit nunit20 monoresgen tools mbas ilasm
4 INSTALL= /usr/bin/install
5
6 all: 
7         if test x$(OS) = xWindows_NT; then make linux; else make -f makefile.gnu; fi
8
9 install:
10         if test x$(OS) = xWindows_NT; then make windowsinstall; else make -f makefile.gnu install; fi
11
12 windows:
13         for i in $(DIRS); do                    \
14                 (cd $$i; make linux) || exit 1; \
15         done
16
17 linux:
18         for i in $(DIRS); do                    \
19                 (cd $$i; make linux) || exit 1; \
20         done
21
22 test:
23         if test x$(OS) = xWindows_NT; then make testwindows; else make -f makefile.gnu test; fi
24
25 testcorlib:
26         if test x$(OS) = xWindows_NT; then make testcorlibwindows; else make -f makefile.gnu testcorlib; fi
27
28 testwindows:
29         $(MAKE) -C nunit
30         $(MAKE) -C nunit20
31         $(MAKE) -C class test
32
33 testcorlibwindows:
34         $(MAKE) -C class testcorlib
35
36 clean:
37         if test x$(OS) = xWindows_NT; then make cleanwindows; else make cleanlinux; fi
38
39 cleanwindows:
40         for i in $(DIRS); do                    \
41                 (cd $$i; make clean)            \
42         done
43
44 cleanlinux:
45         for i in $(DIRS); do                    \
46                 (cd $$i; make -f makefile.gnu clean)            \
47         done
48
49 dist: 
50         (c=`pwd`; d=`basename $$c`; cd ..; cp -a $$d mcs-$(VERSION); cd mcs-$(VERSION); make clean; cd ..; \
51         tar czvf $$d/mcs-$(VERSION).tar.gz --exclude=CVS --exclude='.#*' --exclude=core --exclude='*~' --exclude='*.exe' mcs-$(VERSION); \
52         rm -rf mcs-$(VERSION))
53
54 windowsinstall:
55         if test x$$prefix = x; then             \
56                 echo Usage is: make install prefix=X:/cygwin/home/MyHome/mono/install;  exit 1; \
57         fi
58         mkdir -p $(prefix)/bin/
59         for iexe in $(MONO_WIN_INSTALL_BIN) ; do                                        \
60                 echo Installing exe $$iexe;     \
61                 ($(INSTALL) -m 755 $$iexe $(prefix)/bin/) || exit 1;    \
62                 sed -e 's^\@bindir\@^$(prefix)^g' -e "s^\\@thewindowexe\\@^`basename \"$$iexe\"`^g" < ./winexe.in > ./winexe.tmp;       \
63                 mv ./winexe.tmp ./$$iexe.sh;    \
64                 ($(INSTALL) -m 755 $$iexe.sh $(prefix)/bin/) || exit 1;         \
65         done
66         mkdir -p $(prefix)/lib/
67         for idll in $(MONO_WIN_INSTALL_LIB) ; do                                \
68                 echo Installing dll $$idll;     \
69                 ($(INSTALL) -m 755 $$idll $(prefix)/lib/) || exit 1;    \
70         done
71
72 MONO_WIN_INSTALL_LIB=   \
73         class/lib/Accessibility.dll     \
74         class/lib/ICSharpCode.SharpZipLib.dll \
75         class/lib/ByteFX.Data.dll \
76         class/lib/I18N.CJK.dll  \
77         class/lib/I18N.MidEast.dll      \
78         class/lib/I18N.Other.dll        \
79         class/lib/I18N.Rare.dll \
80         class/lib/I18N.West.dll \
81         class/lib/I18N.dll      \
82         class/lib/Microsoft.VisualBasic.dll     \
83         class/lib/Microsoft.VisualC.dll \
84         class/lib/Mono.Data.dll \
85         class/lib/Mono.Data.DB2Client.dll       \
86         class/lib/Mono.Data.MySql.dll   \
87         class/lib/Mono.Data.PostgreSqlClient.dll        \
88         class/lib/Mono.Data.SqliteClient.dll    \
89         class/lib/Mono.Data.SybaseClient.dll    \
90         class/lib/Mono.Data.Tds.dll     \
91         class/lib/Mono.Data.TdsClient.dll       \
92         class/lib/Mono.Directory.LDAP.dll       \
93         class/lib/Mono.GetOptions.dll   \
94         class/lib/Mono.PEToolkit.dll    \
95         class/lib/Mono.Posix.dll        \
96         class/lib/Mono.Security.dll     \
97         class/lib/Mono.Security.Win32.dll       \
98         class/lib/Npgsql.dll    \
99         class/lib/PEAPI.dll     \
100         class/lib/System.Configuration.Install.dll      \
101         class/lib/System.Data.dll       \
102         class/lib/System.Data.OracleClient.dll  \
103         class/lib/System.Design.dll     \
104         class/lib/System.Drawing.dll    \
105         class/lib/System.EnterpriseServices.dll \
106         class/lib/System.Management.dll \
107         class/lib/System.Runtime.Remoting.dll   \
108         class/lib/System.Runtime.Serialization.Formatters.Soap.dll      \
109         class/lib/System.Security.dll   \
110         class/lib/System.ServiceProcess.dll     \
111         class/lib/System.Web.Services.dll       \
112         class/lib/System.Web.dll        \
113         class/lib/System.Windows.Forms.dll      \
114         class/lib/System.Xml.dll        \
115         class/lib/System.dll    \
116         class/lib/corlib.dll    \
117         nunit/NUnitBase.dll     \
118         nunit/NUnitCore.dll     \
119         nunit/NUnitCore_mono.dll
120
121 MONO_WIN_INSTALL_BIN=   \
122         mcs/mcs.exe     \
123         mbas/mbas.exe   \
124         nant/NAnt.exe   \
125         nunit/NUnitConsole.exe  \
126         nunit/NUnitConsole_mono.exe     \
127         ilasm/ilasm.exe \
128         monoresgen/monoresgen.exe       \
129         tools/EnumCheck.exe     \
130         tools/IFaceDisco.exe    \
131         tools/verifier.exe      \
132         tools/GenerateDelegate.exe      \
133         tools/monostyle.exe     \
134         tools/SqlSharp/sqlsharp.exe     \
135