summaryrefslogtreecommitdiffstats
path: root/mono/Makefile.am
blob: 02223f1afde76c23a966880573c105ba9f4de6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
SUBDIRS=. doc example

TARGET=$(ASSEMBLY)
NOINST_EXES=test-dbus-sharp.exe
ASSEMBLY_NAME=dbus-sharp
GACUTIL=gacutil

DBUS_SHARP_FILES= 				\
	$(srcdir)/Arguments.cs			\
	$(srcdir)/Bus.cs			\
	$(srcdir)/BusDriver.cs			\
	$(srcdir)/Connection.cs			\
	$(srcdir)/DBusException.cs		\
	$(srcdir)/Error.cs			\
	$(srcdir)/ErrorMessage.cs		\
	$(srcdir)/Handler.cs			\
	$(srcdir)/InterfaceAttribute.cs		\
	$(srcdir)/InterfaceProxy.cs		\
	$(srcdir)/Introspector.cs		\
	$(srcdir)/Message.cs			\
	$(srcdir)/MethodAttribute.cs		\
	$(srcdir)/MethodCall.cs			\
	$(srcdir)/MethodReturn.cs		\
	$(srcdir)/ProxyBuilder.cs		\
	$(srcdir)/Server.cs			\
	$(srcdir)/Service.cs			\
	$(srcdir)/Signal.cs			\
	$(srcdir)/SignalAttribute.cs		\
	$(srcdir)/DBusType/IDBusType.cs		\
	$(srcdir)/DBusType/Array.cs		\
	$(srcdir)/DBusType/Boolean.cs		\
	$(srcdir)/DBusType/Byte.cs		\
	$(srcdir)/DBusType/Double.cs		\
	$(srcdir)/DBusType/Int32.cs		\
	$(srcdir)/DBusType/Int64.cs		\
	$(srcdir)/DBusType/ObjectPath.cs	\
	$(srcdir)/DBusType/String.cs		\
	$(srcdir)/DBusType/UInt32.cs		\
	$(srcdir)/DBusType/UInt64.cs

TEST_DBUS_SHARP_FILES=Test.cs

ASSEMBLY=$(ASSEMBLY_NAME).dll

DISTCLEANFILES=AssemblyInfo.cs $(ASSEMBLY).config $(ASSEMBLY) $(ASSEMBLY).mdb

all-am: $(TARGET)

dbus-sharp.dll: $(DBUS_SHARP_FILES)
	$(CSC) --debug --unsafe --target library -o dbus-sharp.dll $(DBUS_SHARP_FILES) AssemblyInfo.cs

test-dbus-sharp.exe: $(TEST_DBUS_SHARP_FILES)
	$(CSC) --debug --unsafe --target exe -L . -r dbus-sharp.dll -pkg:gtk-sharp -o test-dbus-sharp.exe $(TEST_DBUS_SHARP_FILES)

clean:
	rm -f $(TARGET) $(TARGET).mdb $(NOINST_EXES) $(NOINST_EXES:%=%.mdb)

install-data-local:
	@if test -n '$(TARGET)'; then                       \
	  echo "$(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /gacdir $(DESTDIR)$(libdir)";    \
	  $(GACUTIL) /i $(ASSEMBLY) /f /package dbus-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) || exit 1; \
	fi

uninstall-local:
	@if test -n '$(TARGET)'; then                       \
	  echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /gacdir $(DESTDIR)$(libdir)";  \
	  $(GACUTIL) /u $(ASSEMBLY_NAME) /package dbus-sharp /gacdir $(libdir) /root $(DESTDIR)$(libdir) || exit 1;   \
	fi

EXTRA_DIST=			\
	$(DBUS_SHARP_FILES)	\
	AssemblyInfo.cs.in	\
	$(ASSEMBLY).config.in   \
	dbus-sharp.snk