summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2013-10-26 10:10:46 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2014-02-10 14:56:05 +0100
commiteacb0b9c7b41630a94296e76a77580200050a57f (patch)
tree65d7f24f3a2618db103ab75e34929c790fbafa0b
parent9fd573269dcb54a05d6a85b53cdd3165dfa02fed (diff)
downloadneard-eacb0b9c7b41630a94296e76a77580200050a57f.tar.gz
neard-eacb0b9c7b41630a94296e76a77580200050a57f.tar.bz2
neard-eacb0b9c7b41630a94296e76a77580200050a57f.zip
build: Put preprocessor flags into CPPFLAGS
Flags obtained via pkgconfig are in fact -I (and sometimes -D) preprocessor flags rather than compile flags. There is also no need to use @@ for already-substituted variables.
-rw-r--r--Makefile.am10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index d0317b8..d4bde8e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,12 +49,12 @@ src_neard_DEPENDENCIES= src/neard.service
nodist_src_neard_SOURCES = src/builtin.h
-AM_CFLAGS = ${GLIB_CFLAGS} ${DBUS_CFLAGS} ${NETLINK_CFLAGS} $(builtin_cflags) \
- -DNEAR_PLUGIN_BUILTIN \
- -DPLUGINDIR=\""$(plugindir)"\" \
- -DCONFIGDIR=\""$(configdir)\""
+AM_CPPFLAGS = ${GLIB_CFLAGS} ${DBUS_CFLAGS} ${NETLINK_CFLAGS} \
+ -DNEAR_PLUGIN_BUILTIN -DPLUGINDIR=\""$(plugindir)"\" \
+ -DCONFIGDIR=\""$(configdir)\"" \
+ -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
-AM_CPPFLAGS = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
+AM_CFLAGS = ${builtin_cflags}
CLEANFILES = src/builtin.h $(local_headers)