2004-05-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / runtime / Makefile.am
index c1ca035b82ad9cd443231aadc7fc9a804caf61df..0f16329c61b12a5367d42ae22b5e970443468634 100644 (file)
-#
 # This is just used to copy and install the DLL files that are currently
 # being compiled on windows.
 #
 
+SUBDIRS = . net_1_1 net_2_0
+
+mcs_topdir=$(top_srcdir)/../mcs
+
+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
+
+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
 
-install-data-hook:
-       -cp $(srcdir)/*.dll $(assembliesdir)
+$(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)
 
-dist-hook:
-       -cp $(srcdir)/*.dll $(distdir)
+$(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 \
+       monoresgen.exe)          d=monoresgen                   ;; \
+       ilasm.exe)               d=ilasm                        ;; \
+       cilc.exe)                d=tools/cilc                   ;; \
+       xsd.exe)                 d=tools/mono-xsd               ;; \
+       wsdl.exe)                d=tools/wsdl                   ;; \
+       genxs.exe)               d=tools/genxs                  ;; \
+       al.exe)                  d=tools/al                     ;; \
+       disco.exe)               d=tools/disco                  ;; \
+       soapsuds.exe)            d=tools/soapsuds               ;; \
+       sqlsharp.exe)            d=tools/SqlSharp               ;; \
+       chktrust.exe)            d=tools/security               ;; \
+       signcode.exe)            d=tools/security               ;; \
+       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-find-provides     ;; \
+       mono-find-requires.exe)  d=tools/mono-find-requires     ;; \
+       browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
+       gacutil.exe)             d=tools/gacutil                ;; \
+       gmcs.exe)                d=gmcs                         ;; \
+       esac; \
+       f=$(mcs_topdir)/$$d/$@; \
+mcs    if test -f $$f; then :; else f=$(monobinsdir)/$@; fi ; \
+       echo "cp -f $$f $(srcdir)"; \
+       cp -f $$f $(srcdir)
 
 copy_dlls:
        cp /nt/mono/mcs/class/*/*.dll .
 
 push_dlls:
-       scp *.dll snapshot@mono-cvs.ximian.com:dlls
\ No newline at end of file
+       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 {} \;