6f717c5256aac7b31bf54fa5a72bf800f66d03d4
[mono.git] / runtime / net_1_1 / Makefile.am
1 # This is just used to copy and install the DLL files that are currently
2 # being compiled on windows.
3 #
4
5 gacutil=$(srcdir)/../gacutil.exe
6
7 if USE_JIT
8 mono_runtime = $(top_builddir)/mono/mini/mono
9 else
10 mono_runtime = $(top_builddir)/mono/interpreter/mint
11 endif
12
13 MONO_CSHARP_DEBUGGER = Mono.CSharp.Debugger
14 if PLATFORM_WIN32
15 GAC_DIR = `cygpath -w $(libdir)`
16 GAC_ROOT_DIR = `cygpath -w $(DESTDIR)$(libdir)`
17 else
18 GAC_DIR = $(libdir)
19 GAC_ROOT_DIR = $(DESTDIR)$(libdir)
20 endif
21
22 gac_assemblies_list = \
23         Accessibility                                   \
24         ByteFX.Data                                     \
25         Commons.Xml.Relaxng                             \
26         cscompmgd                                       \
27         I18N.CJK                                        \
28         I18N                                            \
29         I18N.MidEast                                    \
30         I18N.Other                                      \
31         I18N.Rare                                       \
32         I18N.West                                       \
33         IBM.Data.DB2                                    \
34         ICSharpCode.SharpZipLib                         \
35         Microsoft.VisualBasic                           \
36         Microsoft.VisualC                               \
37         Microsoft.Vsa                                   \
38         Mono.Cairo                                      \
39         $(MONO_CSHARP_DEBUGGER)                         \
40         Mono.Data.SybaseClient                          \
41         Mono.Data.SqliteClient                          \
42         Mono.Data.TdsClient                             \
43         Mono.Data.Tds                                   \
44         Mono.GetOptions                                 \
45         Mono.Http                                       \
46         Mono.Posix                                      \
47         Mono.Security                                   \
48         Mono.Security.Win32                             \
49         Novell.Directory.Ldap                           \
50         Npgsql                                          \
51         nunit.util                                      \
52         nunit.core                                      \
53         nunit.framework                                 \
54         PEAPI                                           \
55         System.Configuration.Install                    \
56         System.Data                                     \
57         System.Data.OracleClient                        \
58         System                                          \
59         System.Design                                   \
60         System.DirectoryServices                        \
61         System.Drawing.Design                           \
62         System.Drawing                                  \
63         System.EnterpriseServices                       \
64         System.Management                               \
65         System.Messaging                                \
66         System.Runtime.Remoting                         \
67         System.Runtime.Serialization.Formatters.Soap    \
68         System.Security                                 \
69         System.ServiceProcess                           \
70         System.Web                                      \
71         System.Web.Services                             \
72         System.Windows.Forms                            \
73         System.Xml
74
75 gac_assemblies = $(gac_assemblies_list:=.dll)
76
77 corlibdir = $(libdir)
78 corlib_DATA = mscorlib.dll
79
80 EXTRA_DIST = $(gac_assemblies) $(corlib_DATA)
81 MAINTAINERCLEANFILES = $(EXTRA_DIST)
82
83 mscorlib.dll $(gac_assemblies):
84         test -f $(top_srcdir)/../mcs/class/lib/default/$@
85         -rm -f $(srcdir)/$@
86         cd $(srcdir) && $(LN_S) ../../../mcs/class/lib/default/$@ $@
87
88 all-local: $(gac_assemblies)
89
90 install-data-local:
91         @if test -n '$(gac_assemblies)'; then \
92           for i in ''$(gac_assemblies); do \
93             echo "MONO_PATH=$(srcdir) $(mono_runtime) --config ../../data/config $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR)" ; \
94             MONO_PATH=$(srcdir) \
95               $(LIBTOOL) --mode=execute $(mono_runtime) --config ../../data/config $(gacutil) /i $(srcdir)/$$i /f /package 1.0 /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR) || exit 1 ; \
96           done; fi
97
98 uninstall-local:
99         @if test -n '$(gac_assemblies_list)'; then \
100           for i in ''$(gac_assemblies_list); do \
101             echo "MONO_PATH=$(srcdir) $(mono_runtime) $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR)" ; \
102             MONO_PATH=$(srcdir) \
103               $(LIBTOOL) --mode=execute $(mono_runtime) --config ../../data/config $(gacutil) /u $$i /gacdir $(GAC_DIR) /root $(GAC_ROOT_DIR) || true ; \
104           done; fi
105
106 copy_dlls:
107         cp /nt/mono/mcs/class/*/*.dll .
108
109 push_dlls:
110         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls