Various mono related changes to facilitate GAC support.
[platform/upstream/dbus.git] / mono / Makefile.am
1 DESTDIR=
2
3 SUBDIRS=. doc example
4
5 TARGET=$(ASSEMBLY)
6 NOINST_EXES=test-dbus-sharp.exe
7 ASSEMBLY_NAME=dbus-sharp
8
9 DBUS_SHARP_FILES=               \
10         Arguments.cs            \
11         Bus.cs                  \
12         Connection.cs           \
13         Custom.cs               \
14         DBusException.cs        \
15         Error.cs                \
16         ErrorMessage.cs         \
17         Handler.cs              \
18         InterfaceAttribute.cs   \
19         InterfaceProxy.cs       \
20         Introspector.cs         \
21         Message.cs              \
22         MethodAttribute.cs      \
23         MethodCall.cs           \
24         MethodReturn.cs         \
25         ProxyBuilder.cs         \
26         Server.cs               \
27         Service.cs              \
28         Signal.cs               \
29         SignalAttribute.cs      \
30         DBusType/IDBusType.cs   \
31         DBusType/Array.cs       \
32         DBusType/Boolean.cs     \
33         DBusType/Byte.cs        \
34         DBusType/Custom.cs      \
35         DBusType/Dict.cs        \
36         DBusType/Double.cs      \
37         DBusType/Int32.cs       \
38         DBusType/Int64.cs       \
39         DBusType/Nil.cs         \
40         DBusType/ObjectPath.cs  \
41         DBusType/String.cs      \
42         DBusType/UInt32.cs      \
43         DBusType/UInt64.cs
44
45 TEST_DBUS_SHARP_FILES=Test.cs
46
47 ASSEMBLY=$(ASSEMBLY_NAME).dll
48
49 DISTCLEANFILES=AssemblyInfo.cs $(ASSEMBLY).config
50
51 all-am: $(TARGET)
52
53 dbus-sharp.dll: $(DBUS_SHARP_FILES)
54         $(CSC) --unsafe --target library -o dbus-sharp.dll $(DBUS_SHARP_FILES) AssemblyInfo.cs
55
56 test-dbus-sharp.exe: $(TEST_DBUS_SHARP_FILES)
57         $(CSC) --unsafe --target exe -L . -r dbus-sharp.dll -r gtk-sharp.dll -o test-dbus-sharp.exe $(TEST_DBUS_SHARP_FILES)
58
59 clean:
60         rm -f $(TARGET) $(NOINST_EXES)
61
62 install-data-local:
63         @if test -n '$(TARGET)'; then                       \
64           echo "$(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /root $(DESTDIR)$(libdir)";    \
65           $(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /root $(DESTDIR)$(libdir) || exit 1; \
66         fi
67
68 uninstall-local:
69         @if test -n '$(TARGET)'; then                       \
70           echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /root $(DESTDIR)$(libdir)";  \
71           $(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /root $(DESTDIR)$(libdir) || exit 1;   \
72         fi
73
74 EXTRA_DIST=                     \
75         $(DBUS_SHARP_FILES)     \
76         AssemblyInfo.cs.in      \
77         $(ASSEMBLY).config.in   \
78         dbus-sharp.snk