# being compiled on windows.
#
-assemblies_DATA = \
- Accessibility.dll \
- ByteFX.Data.dll \
- Commons.Xml.Relaxng.dll \
- mscorlib.dll \
- Cscompmgd.dll \
- I18N.CJK.dll \
- I18N.dll \
- I18N.MidEast.dll \
- I18N.Other.dll \
- I18N.Rare.dll \
- I18N.West.dll \
- ICSharpCode.SharpZipLib.dll \
- Microsoft.VisualBasic.dll \
- Microsoft.VisualC.dll \
- Microsoft.Vsa.dll \
- Mono.Cairo.dll \
- Mono.CSharp.Debugger.dll \
- Mono.Data.DB2Client.dll \
- Mono.Data.MySql.dll \
- Mono.Data.PostgreSqlClient.dll \
- Mono.Data.SqliteClient.dll \
- Mono.Data.SybaseClient.dll \
- Mono.Data.TdsClient.dll \
- Mono.Data.Tds.dll \
- Mono.Directory.LDAP.dll \
- Mono.GetOptions.dll \
- Mono.Http.dll \
- Mono.PEToolkit.dll \
- Mono.Posix.dll \
- Mono.Security.dll \
- Mono.Security.Win32.dll \
- Npgsql.dll \
- NUnit.Util.dll \
- NUnit.Framework.dll \
- PEAPI.dll \
- System.Configuration.Install.dll \
- System.Data.dll \
- System.Data.OracleClient.dll \
- System.dll \
- System.Design.dll \
- System.DirectoryServices.dll \
- System.Drawing.Design.dll \
- System.Drawing.dll \
- System.EnterpriseServices.dll \
- System.Management.dll \
- System.Messaging.dll \
- System.Runtime.Remoting.dll \
- System.Runtime.Serialization.Formatters.Soap.dll \
- System.Security.dll \
- System.ServiceProcess.dll \
- System.Web.dll \
- System.Web.Services.dll \
- System.Windows.Forms.dll \
- System.Xml.dll
+SUBDIRS = . net_1_1 net_2_0
-monobins_DATA = mcs.exe mbas.exe monoresgen.exe secutil.exe ilasm.exe cilc.exe xsd.exe wsdl.exe genxs.exe disco.exe sqlsharp.exe signcode.exe chktrust.exe
+mcs_topdir=$(top_srcdir)/../mcs
-EXTRA_DIST = $(monobins_DATA) $(assemblies_DATA)
+monobins_DATA = \
+ monoresgen.exe \
+ monoresgen.exe.mdb \
+ secutil.exe \
+ secutil.exe.mdb \
+ ilasm.exe \
+ ilasm.exe.mdb \
+ cilc.exe \
+ cilc.exe.mdb \
+ xsd.exe \
+ xsd.exe.mdb \
+ wsdl.exe \
+ wsdl.exe.mdb \
+ wsdl2.exe \
+ wsdl2.exe.mdb \
+ genxs.exe \
+ genxs.exe.mdb \
+ al.exe \
+ al.exe.mdb \
+ disco.exe \
+ disco.exe.mdb \
+ sqlsharp.exe \
+ sqlsharp.exe.mdb \
+ signcode.exe \
+ signcode.exe.mdb \
+ chktrust.exe \
+ chktrust.exe.mdb \
+ soapsuds.exe \
+ soapsuds.exe.mdb \
+ monop.exe \
+ monop.exe.mdb \
+ mono-find-provides.exe \
+ mono-find-provides.exe.mdb \
+ mono-find-requires.exe \
+ mono-find-requires.exe.mdb \
+ setreg.exe \
+ setreg.exe.mdb \
+ cert2spc.exe \
+ cert2spc.exe.mdb \
+ certmgr.exe \
+ certmgr.exe.mdb \
+ MakeCert.exe \
+ MakeCert.exe.mdb \
+ gacutil.exe \
+ gacutil.exe.mdb \
+ sn.exe \
+ sn.exe.mdb
+
+monoone_DATA = \
+ mcs.exe \
+ mcs.exe.mdb \
+ mcs.exe.config \
+ mbas.exe
+
+if ! PLATFORM_WIN32
+gmcs_exe = gmcs.exe gmcs.exe.config gmcs.exe.mdb
+endif
+monotwo_DATA = $(gmcs_exe)
+
+EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
+
+MAINTAINERCLEANFILES = $(EXTRA_DIST)
#
# Keep in sync with mono/mono/metadata/Makefile.am
#
-assembliesdir = $(libdir)
+if PLATFORM_WIN32
+monobinsdir = $(libdir)
+monoonedir = $(libdir)
+monotwodir = $(libdir)
+else
monobinsdir = $(bindir)
+monoonedir = $(libdir)/mono/1.0/
+monotwodir = $(libdir)/mono/2.0/
+endif
-$(assemblies_DATA):
- -cp $(top_srcdir)/../mcs/class/lib/$@ . || cp $(assembliesdir)/$@ .
-
-$(monobins_DATA):
- -cp $(top_srcdir)/../mcs/mcs/mcs.exe . || cp $(monobinsdir)/mcs.exe .
- -cp $(top_srcdir)/../mcs/mbas/mbas.exe . || cp $(monobinsdir)/mbas.exe .
- -cp $(top_srcdir)/../mcs/tools/security/secutil.exe . || cp $(monobinsdir)/secutil.exe .
- -cp $(top_srcdir)/../mcs/monoresgen/monoresgen.exe . || cp $(monobinsdir)/monoresgen.exe .
- -cp $(top_srcdir)/../mcs/ilasm/ilasm.exe . || cp $(monobinsdir)/ilasm.exe .
- -cp $(top_srcdir)/../mcs/tools/cilc/cilc.exe . || cp $(monobinsdir)/cilc.exe .
- -cp $(top_srcdir)/../mcs/tools/mono-xsd/xsd.exe . || cp $(monobinsdir)/xsd.exe .
- -cp $(top_srcdir)/../mcs/tools/wsdl/wsdl.exe . || cp $(monobinsdir)/wsdl.exe .
- -cp $(top_srcdir)/../mcs/tools/genxs/genxs.exe . || cp $(monobinsdir)/genxs.exe .
- -cp $(top_srcdir)/../mcs/tools/disco/disco.exe . || cp $(monobinsdir)/disco.exe .
- -cp $(top_srcdir)/../mcs/tools/SqlSharp/sqlsharp.exe . || cp $(monobinsdir)/sqlsharp.exe .
- -cp $(top_srcdir)/../mcs/tools/security/chktrust.exe . || cp $(monobinsdir)/chktrust.exe .
- -cp $(top_srcdir)/../mcs/tools/security/signcode.exe . || cp $(monobinsdir)/signcode.exe .
-
-dist-hook:
- for i in $(monobins_DATA) $(assemblies_DATA); do \
- if test ! -s $(srcdir)/$$i; then echo $$i is empty && exit 1; fi \
- done
+$(monoone_DATA) $(monotwo_DATA) $(monobins_DATA):
+ @name=`echo "$@" | sed 's,\.exe.*$$,,'`; \
+ case $$name in \
+ mcs | mbas | monoresgen | gmcs | ilasm) d=$$name ;; \
+ cilc | genxs | al | disco | soapsuds | monop | browsercaps-updater | gacutil) d=tools/$$name ;; \
+ chktrust | signcode | MakeCert | cert2spc | certmgr | secutil | setreg | sn) d=tools/security ;; \
+ mono-find-provides | mono-find-requires) d=tools/mono-rpm-helpers/$$name ;; \
+ xsd) d=tools/mono-xsd ;; \
+ wsdl*) d=tools/wsdl ;; \
+ sqlsharp) d=tools/SqlSharp ;; \
+ esac; \
+ echo "test -f $(top_srcdir)/../mcs/$$d/$@" ; \
+ test -f $(top_srcdir)/../mcs/$$d/$@ || exit 1 ; \
+ echo "rm -f $(srcdir)/$@" ; \
+ rm -f $(srcdir)/$@ ; \
+ echo "cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@" ; \
+ cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@
copy_dlls:
cp /nt/mono/mcs/class/*/*.dll .
push_dlls:
scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls
+
+cleanassemblies:
+ find -name \*.dll -exec rm -vf {} \;
+ find -name \*.exe -exec rm -vf {} \;