summaryrefslogtreecommitdiff
path: root/src/plugins/bluetooth/Makefile.am
blob: 424d033c835258d723b15537d3bf134b955387e4 (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
plugindir = $(libdir)/nautilus-sendto/plugins

INCLUDES =                                      \
        -DDATADIR=\"$(datadir)\"                \
        -DICONDIR=\"$(icondir)\"                \
	-DLOCALEDIR="\"$(datadir)/locale\""	\
        -I$(top_srcdir)/src                     \
        -I$(top_builddir)                       \
        -I$(builddir)				\
        $(NAUTILUS_SENDTO_CFLAGS)               \
	$(BLUETOOTH_CFLAGS)			\
	$(DBUS_CFLAGS)				\
	$(DISABLE_DEPRECATED)			\
	$(WARN_CFLAGS)

plugin_LTLIBRARIES = libnstbluetooth.la

bluetooth-marshal.h: bluetooth-marshal.list Makefile
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=nst_bluetooth_marshal $< --header > $@

bluetooth-marshal.c: bluetooth-marshal.list Makefile
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=nst_bluetooth_marshal $< --header --body > $@
bluetooth.c: bluetooth-marshal.c bluetooth-marshal.h

BUILT_SOURCES = bluetooth-marshal.h bluetooth-marshal.c
libnstbluetooth_la_SOURCES = bluetooth.c $(BUILT_SOURCES)
libnstbluetooth_la_LDFLAGS = -module -avoid-version
libnstbluetooth_la_LIBADD = $(BLUETOOTH_LIBS) $(NAUTILUS_SENDTO_LIBS)

EXTRA_DIST = bluetooth-marshal.list bluetooth.c
CLEANFILES = $(BUILT_SOURCES)