summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-11 19:33:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-11 19:33:52 +0000
commit955579357e2a7808fb1a19bd9bf2f936c28037b4 (patch)
treee2222f4291e32cccd72dd4ba949be03c8955aa13
parent2c52650872bdeede320c4192bc0ac06c029f2732 (diff)
Set the define for the plugin directory
-rw-r--r--hcid/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index fe5f8caa..25854615 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -33,7 +33,14 @@ hcid_LDADD = libhciserver.a \
@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
endif
-AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@
+if MAINTAINER_MODE
+plugindir = $(abs_top_srcdir)/plugins
+else
+plugindir = $(libdir)/bluetooth/plugins
+endif
+
+AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ \
+ -DPLUGINDIR=\""$(plugindir)"\"
INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/sdpd