summaryrefslogtreecommitdiff
path: root/mono/Makefile.am
blob: 4b61816b36eaf5882871ab92969a79398fb37b83 (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
75
76
77
78
DESTDIR=

SUBDIRS=. doc example

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

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

TEST_DBUS_SHARP_FILES=Test.cs

ASSEMBLY=$(ASSEMBLY_NAME).dll

DISTCLEANFILES=AssemblyInfo.cs $(ASSEMBLY).config

all-am: $(TARGET)

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

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

clean:
	rm -f $(TARGET) $(NOINST_EXES)

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

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

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