2004-07-09 Ben Maurer <bmaurer@ximain.com>
[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 if ! PLATFORM_WIN32
38 gmcs_exe = gmcs.exe
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         mbas.exe)                d=mbas                         ;; \
63         monoresgen.exe)          d=monoresgen                   ;; \
64         ilasm.exe)               d=ilasm                        ;; \
65         cilc.exe)                d=tools/cilc                   ;; \
66         xsd.exe)                 d=tools/mono-xsd               ;; \
67         wsdl.exe)                d=tools/wsdl                   ;; \
68         genxs.exe)               d=tools/genxs                  ;; \
69         al.exe)                  d=tools/al                     ;; \
70         disco.exe)               d=tools/disco                  ;; \
71         soapsuds.exe)            d=tools/soapsuds               ;; \
72         sqlsharp.exe)            d=tools/SqlSharp               ;; \
73         chktrust.exe)            d=tools/security               ;; \
74         signcode.exe)            d=tools/security               ;; \
75         MakeCert.exe)            d=tools/security               ;; \
76         cert2spc.exe)            d=tools/security               ;; \
77         certmgr.exe)             d=tools/security               ;; \
78         secutil.exe)             d=tools/security               ;; \
79         setreg.exe)              d=tools/security               ;; \
80         sn.exe)                  d=tools/security               ;; \
81         monop.exe)               d=tools/monop                  ;; \
82         mono-find-provides.exe)  d=tools/mono-rpm-helpers/mono-find-provides    ;; \
83         mono-find-requires.exe)  d=tools/mono-rpm-helpers/mono-find-requires    ;; \
84         browsercaps-updater.exe) d=tools/browsercaps-updater    ;; \
85         gacutil.exe)             d=tools/gacutil                ;; \
86         gmcs.exe)                d=gmcs                         ;; \
87         esac; \
88         echo "test -f $(top_srcdir)/../mcs/$$d/$@" ; \
89         test -f $(top_srcdir)/../mcs/$$d/$@ || exit 1 ; \
90         echo "rm -f $(srcdir)/$@" ; \
91         rm -f $(srcdir)/$@ ; \
92         echo "cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@" ; \
93         cd $(srcdir) && $(LN_S) ../../mcs/$$d/$@ $@
94
95 copy_dlls:
96         cp /nt/mono/mcs/class/*/*.dll .
97
98 push_dlls:
99         scp -o "Protocol 1" *.dll *.exe snapshot@mono-cvs.ximian.com:dlls
100
101 cleanassemblies:
102         find -name \*.dll -exec rm -vf {} \;
103         find -name \*.exe -exec rm -vf {} \;