- Updated
[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 mcs.exe.config                  \
35         mbas.exe
36
37 if ! PLATFORM_WIN32
38 gmcs_exe = gmcs.exe gmcs.exe.config
39 endif
40 monotwo_DATA = $(gmcs_exe)
41
42 EXTRA_DIST= $(monobins_DATA) $(monoone_DATA) $(monotwo_DATA)
43
44 MAINTAINERCLEANFILES = $(EXTRA_DIST)
45
46 #
47 # Keep in sync with mono/mono/metadata/Makefile.am
48 #
49 if PLATFORM_WIN32
50 monobinsdir = $(libdir)
51 monoonedir = $(libdir)
52 monotwodir = $(libdir)
53 else
54 monobinsdir = $(bindir)
55 monoonedir = $(libdir)/mono/1.0/
56 monotwodir = $(libdir)/mono/2.0/
57 endif
58
59 $(monoone_DATA) $(monotwo_DATA) $(monobins_DATA):
60         @case "$@" in \
61         mcs.exe)                 d=mcs                          ;; \
62         mcs.exe.config)          d=mcs                          ;; \
63         mbas.exe)                d=mbas                         ;; \
64         monoresgen.exe)          d=monoresgen                   ;; \
65         ilasm.exe)               d=ilasm                        ;; \
66         cilc.exe)                d=tools/cilc                   ;; \
67         xsd.exe)                 d=tools/mono-xsd               ;; \
68         wsdl.exe)                d=tools/wsdl                   ;; \
69         genxs.exe)               d=tools/genxs                  ;; \
70         al.exe)                  d=tools/al                     ;; \
71         disco.exe)               d=tools/disco                  ;; \
72         soapsuds.exe)            d=tools/soapsuds               ;; \
73         sqlsharp.exe)            d=tools/SqlSharp               ;; \
74         chktrust.exe)            d=tools/security               ;; \
75         signcode.exe)            d=tools/security               ;; \
76         MakeCert.exe)            d=tools/security               ;; \
77         cert2spc.exe)            d=tools/security               ;; \
78         certmgr.exe)             d=tools/security               ;; \
79         secutil.exe)             d=tools/security               ;; \
80         setreg.exe)              d=tools/security               ;; \
81         sn.exe)                  d=tools/security               ;; \
82         monop.exe)               d=tools/monop                  ;; \
83         mono-find-provides.exe)  d=tools/mono-rpm-helpers/mono-find-provides    ;; \
84         mono-find-requires.exe)  d=tools/mono-rpm-helpers/mono-find-requires    ;; \
85         browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
86         gacutil.exe)             d=tools/gacutil                ;; \
87         gmcs.exe)                d=gmcs                         ;; \
88         gmcs.exe.config)         d=gmcs                         ;; \
89         esac; \
90         echo "test -f $(top_srcdir)/../mcs/$$d/$@" ; \
91         test -f $(top_srcdir)/../mcs/$$d/$@ || exit 1 ; \
92         echo "rm -f $(srcdir)/$@" ; \
93         rm -f $(srcdir)/$@ ; \
94         echo "cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@" ; \
95         cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@
96
97 copy_dlls:
98         cp /nt/mono/mcs/class/*/*.dll .
99
100 push_dlls:
101         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls
102
103 cleanassemblies:
104         find -name \*.dll -exec rm -vf {} \;
105         find -name \*.exe -exec rm -vf {} \;