Flush
[mono.git] / runtime / Makefile.am
index 6965d95cd90ac44cb415bd786a99fed7e88bfa55..88be6ea53c856838d3163ef40ff03be1874f3743 100644 (file)
@@ -2,81 +2,73 @@
 # being compiled on windows.
 #
 
+SUBDIRS = . net_1_1 net_2_0
+
 mcs_topdir=$(top_srcdir)/../mcs
 
-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.SqliteClient.dll                              \
-       Mono.Data.SybaseClient.dll                              \
-       Mono.Data.TdsClient.dll                                 \
-       Mono.Data.Tds.dll                                       \
-       Novell.Directory.Ldap.dll                                       \
-       Mono.GetOptions.dll                                     \
-       Mono.Http.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
+monobins_DATA = \
+       monoresgen.exe                          \
+       secutil.exe                             \
+       ilasm.exe                               \
+       cilc.exe                                \
+       xsd.exe                                 \
+       wsdl.exe                                \
+       genxs.exe                               \
+       al.exe                                  \
+       disco.exe                               \
+       sqlsharp.exe                            \
+       signcode.exe                            \
+       chktrust.exe                            \
+       soapsuds.exe                            \
+       monop.exe                               \
+       mono-find-provides.exe                  \
+       mono-find-requires.exe                  \
+       setreg.exe                              \
+       cert2spc.exe                            \
+       certmgr.exe                             \
+       MakeCert.exe                            \
+       gacutil.exe                             \
+       sn.exe
+
+monoone_DATA = \
+       mcs.exe                                 \
+       mbas.exe
+
+monotwo_DATA = \
+       gmcs.exe
 
-monobins_DATA = mcs.exe mbas.exe monoresgen.exe secutil.exe ilasm.exe cilc.exe xsd.exe wsdl.exe genxs.exe al.exe disco.exe sqlsharp.exe signcode.exe chktrust.exe soapsuds.exe monop.exe setreg.exe cert2spc.exe certmgr.exe MakeCert.exe
+EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
 
-EXTRA_DIST = $(monobins_DATA) $(assemblies_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
+
+$(monoone_DATA):
+       if test -f $(mcs_topdir)/mcs/mcs.exe; then f=$(mcs_topdir)/mcs/mcs.exe; else f=$(fx11dir)/mcs.exe; fi; \
+       echo "cp -f $$f $(srcdir)"; \
+       cp -f $$f $(srcdir)
+       if test -f $(mcs_topdir)/mbas/mbas.exe; then f=$(mcs_topdir)/mbas/mbas.exe; else f=$(fx11dir)/mbas.exe; fi; \
+       echo "cp -f $$f $(srcdir)"; \
+       cp -f $$f $(srcdir)
 
-$(assemblies_DATA):
-       @f=$(mcs_topdir)/class/lib/$@; \
-       if test -f $$f; then :; else f=$(assembliesdir)/$@; fi ; \
+$(monotwo_DATA):
+       if test -f $(mcs_topdir)/gmcs/gmcs.exe; then f=$(mcs_topdir)/gmcs/gmcs.exe; else f=$(fx20dir)/gmcs.exe; fi; \
        echo "cp -f $$f $(srcdir)"; \
        cp -f $$f $(srcdir)
 
 $(monobins_DATA):
        @case "$@" in \
-       mcs.exe)                 d=mcs                          ;; \
-       mbas.exe)                d=mbas                         ;; \
-       secutil.exe)             d=tools/security               ;; \
        monoresgen.exe)          d=monoresgen                   ;; \
        ilasm.exe)               d=ilasm                        ;; \
        cilc.exe)                d=tools/cilc                   ;; \
@@ -92,22 +84,27 @@ $(monobins_DATA):
        MakeCert.exe)            d=tools/security               ;; \
        cert2spc.exe)            d=tools/security               ;; \
        certmgr.exe)             d=tools/security               ;; \
+       secutil.exe)             d=tools/security               ;; \
        setreg.exe)              d=tools/security               ;; \
+       sn.exe)                  d=tools/security               ;; \
        monop.exe)               d=tools/monop                  ;; \
+       mono-find-provides.exe)  d=tools/mono-rpm-helpers/mono-find-provides    ;; \
+       mono-find-requires.exe)  d=tools/mono-rpm-helpers/mono-find-requires    ;; \
        browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
+       gacutil.exe)             d=tools/gacutil                ;; \
+       gmcs.exe)                d=gmcs                         ;; \
        esac; \
        f=$(mcs_topdir)/$$d/$@; \
        if test -f $$f; then :; else f=$(monobinsdir)/$@; fi ; \
        echo "cp -f $$f $(srcdir)"; \
        cp -f $$f $(srcdir)
 
-dist-hook:
-       for i in $(monobins_DATA) $(assemblies_DATA); do        \
-               if test ! -s $(srcdir)/$$i; then echo $$i is empty && exit 1; fi        \
-       done
-
 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 {} \;