2004-06-01 Gert Driesen <drieseng@users.sourceforge.net>
[mono.git] / runtime / 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 SUBDIRS = . net_1_1 net_2_0
6
7 mcs_topdir=$(top_srcdir)/../mcs
8
9 monobins_DATA = \
10         monoresgen.exe                          \
11         secutil.exe                             \
12         ilasm.exe                               \
13         cilc.exe                                \
14         xsd.exe                                 \
15         wsdl.exe                                \
16         genxs.exe                               \
17         al.exe                                  \
18         disco.exe                               \
19         sqlsharp.exe                            \
20         signcode.exe                            \
21         chktrust.exe                            \
22         soapsuds.exe                            \
23         monop.exe                               \
24         mono-find-provides.exe                  \
25         mono-find-requires.exe                  \
26         setreg.exe                              \
27         cert2spc.exe                            \
28         certmgr.exe                             \
29         MakeCert.exe                            \
30         gacutil.exe                             \
31         sn.exe
32
33 monoone_DATA = \
34         mcs.exe                                 \
35         mbas.exe
36
37 monotwo_DATA = \
38         gmcs.exe
39
40 EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
41
42 MAINTAINERCLEANFILES = $(EXTRA_DIST)
43
44 #
45 # Keep in sync with mono/mono/metadata/Makefile.am
46 #
47 if PLATFORM_WIN32
48 monobinsdir = $(libdir)
49 monoonedir = $(libdir)
50 monotwodir = $(libdir)
51 else
52 monobinsdir = $(bindir)
53 monoonedir = $(libdir)/mono/1.0/
54 monotwodir = $(libdir)/mono/2.0/
55 endif
56
57 $(monoone_DATA):
58         if test -f $(mcs_topdir)/mcs/mcs.exe; then f=$(mcs_topdir)/mcs/mcs.exe; else f=$(fx11dir)/mcs.exe; fi; \
59         echo "cp -f $$f $(srcdir)"; \
60         cp -f $$f $(srcdir)
61         if test -f $(mcs_topdir)/mbas/mbas.exe; then f=$(mcs_topdir)/mbas/mbas.exe; else f=$(fx11dir)/mbas.exe; fi; \
62         echo "cp -f $$f $(srcdir)"; \
63         cp -f $$f $(srcdir)
64
65 $(monotwo_DATA):
66         if test -f $(mcs_topdir)/gmcs/gmcs.exe; then f=$(mcs_topdir)/gmcs/gmcs.exe; else f=$(fx20dir)/gmcs.exe; fi; \
67         echo "cp -f $$f $(srcdir)"; \
68         cp -f $$f $(srcdir)
69
70 $(monobins_DATA):
71         @case "$@" in \
72         monoresgen.exe)          d=monoresgen                   ;; \
73         ilasm.exe)               d=ilasm                        ;; \
74         cilc.exe)                d=tools/cilc                   ;; \
75         xsd.exe)                 d=tools/mono-xsd               ;; \
76         wsdl.exe)                d=tools/wsdl                   ;; \
77         genxs.exe)               d=tools/genxs                  ;; \
78         al.exe)                  d=tools/al                     ;; \
79         disco.exe)               d=tools/disco                  ;; \
80         soapsuds.exe)            d=tools/soapsuds               ;; \
81         sqlsharp.exe)            d=tools/SqlSharp               ;; \
82         chktrust.exe)            d=tools/security               ;; \
83         signcode.exe)            d=tools/security               ;; \
84         MakeCert.exe)            d=tools/security               ;; \
85         cert2spc.exe)            d=tools/security               ;; \
86         certmgr.exe)             d=tools/security               ;; \
87         secutil.exe)             d=tools/security               ;; \
88         setreg.exe)              d=tools/security               ;; \
89         sn.exe)                  d=tools/security               ;; \
90         monop.exe)               d=tools/monop                  ;; \
91         mono-find-provides.exe)  d=tools/mono-rpm-helpers       ;; \
92         mono-find-requires.exe)  d=tools/mono-rpm-helpers       ;; \
93         browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
94         gacutil.exe)             d=tools/gacutil                ;; \
95         gmcs.exe)                d=gmcs                         ;; \
96         esac; \
97         f=$(mcs_topdir)/$$d/$@; \
98         if test -f $$f; then :; else f=$(monobinsdir)/$@; fi ; \
99         echo "cp -f $$f $(srcdir)"; \
100         cp -f $$f $(srcdir)
101
102 copy_dlls:
103         cp /nt/mono/mcs/class/*/*.dll .
104
105 push_dlls:
106         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls
107
108 cleanassemblies:
109         find -name \*.dll -exec rm -vf {} \;
110         find -name \*.exe -exec rm -vf {} \;