use gconstpointer in mono_marshal_get_icall_wrapper()
[mono.git] / mcs / makefile
1 VERSION=0.13.99
2
3 DIRS=jay nant mcs class nunit nunit20 monoresgen tools mbas
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 testwindows:
26         (cd nunit; make)
27         (cd nunit20; make)
28         (cd class; make test)
29
30 clean:
31         if test x$(OS) = xWindows_NT; then make cleanwindows; else make cleanlinux; fi
32
33 cleanwindows:
34         for i in $(DIRS); do                    \
35                 (cd $$i; make clean)            \
36         done
37
38 cleanlinux:
39         for i in $(DIRS); do                    \
40                 (cd $$i; make -f makefile.gnu clean)            \
41         done
42
43 dist: 
44         (c=`pwd`; d=`basename $$c`; cd ..; cp -a $$d mcs-$(VERSION); cd mcs-$(VERSION); make clean; cd ..; \
45         tar czvf $$d/mcs-$(VERSION).tar.gz --exclude=CVS --exclude='.#*' --exclude=core --exclude='*~' --exclude='*.exe' mcs-$(VERSION); \
46         rm -rf mcs-$(VERSION))
47
48 windowsinstall:
49         if test x$$prefix = x; then             \
50                 echo Usage is: make install prefix=X:/cygwin/home/MyHome/mono/install;  exit 1; \
51         fi
52         mkdir -p $(prefix)/bin/
53         for iexe in $(MONO_WIN_INSTALL_BIN) ; do                                        \
54                 echo Installing exe $$iexe;     \
55                 ($(INSTALL) -m 755 $$iexe $(prefix)/bin/) || exit 1;    \
56                 sed -e 's^\@bindir\@^$(prefix)^g' -e "s^\\@thewindowexe\\@^`basename \"$$iexe\"`^g" < ./winexe.in > ./winexe.tmp;       \
57                 mv ./winexe.tmp ./$$iexe.sh;    \
58                 ($(INSTALL) -m 755 $$iexe.sh $(prefix)/bin/) || exit 1;         \
59         done
60         mkdir -p $(prefix)/lib/
61         for idll in $(MONO_WIN_INSTALL_LIB) ; do                                \
62                 echo Installing dll $$idll;     \
63                 ($(INSTALL) -m 755 $$idll $(prefix)/lib/) || exit 1;    \
64         done
65
66 MONO_WIN_INSTALL_LIB=   \
67         class/lib/I18N.CJK.dll  \
68         class/lib/I18N.MidEast.dll      \
69         class/lib/I18N.Other.dll        \
70         class/lib/I18N.Rare.dll \
71         class/lib/I18N.West.dll \
72         class/lib/I18N.dll      \
73         class/lib/Microsoft.VisualBasic.dll     \
74         class/lib/Mono.Data.MySql.dll   \
75         class/lib/Mono.Data.PostgreSqlClient.dll        \
76         class/lib/Mono.Data.SqliteClient.dll    \
77         class/lib/Mono.Data.SybaseClient.dll    \
78         class/lib/Mono.Data.Tds.dll     \
79         class/lib/Mono.Data.TdsClient.dll       \
80         class/lib/Mono.PEToolkit.dll    \
81         class/lib/System.Configuration.Install.dll      \
82         class/lib/System.Data.dll       \
83         class/lib/System.Drawing.dll    \
84         class/lib/System.EnterpriseServices.dll \
85         class/lib/System.Runtime.Remoting.dll   \
86         class/lib/System.Runtime.Serialization.Formatters.Soap.dll      \
87         class/lib/System.Web.Services.dll       \
88         class/lib/System.Web.dll        \
89         class/lib/System.Xml.dll        \
90         class/lib/System.dll    \
91         class/lib/corlib.dll    \
92         class/lib/corlib_cmp.dll        \
93         nunit/NUnitBase.dll     \
94         nunit/NUnitCore.dll     \
95         nunit/NUnitCore_mono.dll
96
97 MONO_WIN_INSTALL_BIN=   \
98         mcs/mcs.exe     \
99         mbas/mbas.exe   \
100         nant/NAnt.exe   \
101         nunit/NUnitConsole.exe  \
102         nunit/NUnitConsole_mono.exe     \
103         ilasm/ilasm.exe \
104         monoresgen/monoresgen.exe       \
105         tools/EnumCheck.exe     \
106         tools/IFaceDisco.exe    \
107         tools/verifier.exe      \
108         tools/GenerateDelegate.exe      \
109         tools/monostyle.exe     \
110         tools/SqlSharp/sqlsharp.exe     \
111         tools/corcompare/CorCompare.exe