fix from jaroslaw kowalski
[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         setreg.exe                              \
25         cert2spc.exe                            \
26         certmgr.exe                             \
27         MakeCert.exe                            \
28         gacutil.exe                             \
29         sn.exe
30
31 fx11_DATA = \
32         mcs.exe                                 \
33         mbas.exe
34
35 fx20_DATA = \
36         gmcs.exe
37
38 EXTRA_DIST= $(monobins_DATA) $(fx11_DATA) $(fx20_DATA)
39
40 MAINTAINERCLEANFILES = $(EXTRA_DIST)
41
42 #
43 # Keep in sync with mono/mono/metadata/Makefile.am
44 #
45 if PLATFORM_WIN32
46 monobinsdir = $(libdir)
47 fx11dir = $(libdir)
48 fx20dir = $(libdir)
49 else
50 monobinsdir = $(bindir)
51 fx11dir = $(libdir)/mono/1.1/
52 fx20dir = $(libdir)/mono/2.0/
53 endif
54
55 $(fx11_DATA):
56         if test -f $(mcs_topdir)/mcs/mcs.exe; then f=$(mcs_topdir)/mcs/mcs.exe; else f=$(fx11dir)/mcs.exe; fi; \
57         echo "cp -f $$f $(srcdir)"; \
58         cp -f $$f $(srcdir)
59         if test -f $(mcs_topdir)/mbas/mbas.exe; then f=$(mcs_topdir)/mbas/mbas.exe; else f=$(fx11dir)/mbas.exe; fi; \
60         echo "cp -f $$f $(srcdir)"; \
61         cp -f $$f $(srcdir)
62
63 $(fx20_DATA):
64         if test -f $(mcs_topdir)/gmcs/gmcs.exe; then f=$(mcs_topdir)/gmcs/gmcs.exe; else f=$(fx20dir)/gmcs.exe; fi; \
65         echo "cp -f $$f $(srcdir)"; \
66         cp -f $$f $(srcdir)
67
68 $(monobins_DATA):
69         @case "$@" in \
70         monoresgen.exe)          d=monoresgen                   ;; \
71         ilasm.exe)               d=ilasm                        ;; \
72         cilc.exe)                d=tools/cilc                   ;; \
73         xsd.exe)                 d=tools/mono-xsd               ;; \
74         wsdl.exe)                d=tools/wsdl                   ;; \
75         genxs.exe)               d=tools/genxs                  ;; \
76         al.exe)                  d=tools/al                     ;; \
77         disco.exe)               d=tools/disco                  ;; \
78         soapsuds.exe)            d=tools/soapsuds               ;; \
79         sqlsharp.exe)            d=tools/SqlSharp               ;; \
80         chktrust.exe)            d=tools/security               ;; \
81         signcode.exe)            d=tools/security               ;; \
82         MakeCert.exe)            d=tools/security               ;; \
83         cert2spc.exe)            d=tools/security               ;; \
84         certmgr.exe)             d=tools/security               ;; \
85         secutil.exe)             d=tools/security               ;; \
86         setreg.exe)              d=tools/security               ;; \
87         sn.exe)                  d=tools/security               ;; \
88         monop.exe)               d=tools/monop                  ;; \
89         browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
90         gacutil.exe)             d=tools/gacutil                ;; \
91         gmcs.exe)                d=gmcs                         ;; \
92         esac; \
93         f=$(mcs_topdir)/$$d/$@; \
94         if test -f $$f; then :; else f=$(monobinsdir)/$@; fi ; \
95         echo "cp -f $$f $(srcdir)"; \
96         cp -f $$f $(srcdir)
97
98 copy_dlls:
99         cp /nt/mono/mcs/class/*/*.dll .
100
101 push_dlls:
102         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls