summaryrefslogtreecommitdiff
path: root/mono/Makefile.am
blob: efd61b4ba15829ccf90c14fa6c1ebaf55968502c (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
DESTDIR=

DLLS=dbus-sharp.dll
NOINST_EXES=test-dbus-sharp

DBUS_SHARP_FILES= DBus.cs Message.cs Connection.cs Error.cs
TEST_DBUS_SHARP_FILES=Test.cs

all: $(DLLS) $(NOINST_EXES)

dbus-sharp.dll: $(DBUS_SHARP_FILES)
	$(MCS) $(MCSFLAGS) --unsafe --target library -o dbus-sharp.dll $(DBUS_SHARP_FILES)

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

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

install: all
	../mkinstalldirs $(DESTDIR)$(prefix)/lib && \
	cp $(DLLS) $(DESTDIR)$(prefix)/lib || exit 1

EXTRA_DIST=$(DBUS_SHARP_FILES)