diff --git a/Makefile.am b/Makefile.am
index 0b26ccc..4045f9f 100644
--- a/Makefile.am
+++ b/Makefile.am
pkginclude_HEADERS =
-AM_CFLAGS = $(WARNING_CFLAGS) $(MISC_CFLAGS)
+AM_CFLAGS = $(WARNING_CFLAGS) $(MISC_CFLAGS) $(UDEV_CFLAGS)
AM_LDFLAGS = $(MISC_LDFLAGS)
if DATAFILES
diff --git a/Makefile.plugins b/Makefile.plugins
index 47bf317..98eee9e 100644
--- a/Makefile.plugins
+++ b/Makefile.plugins
plugins_sixaxis_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
-no-undefined
plugins_sixaxis_la_LIBADD = $(UDEV_LIBS)
-plugins_sixaxis_la_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS)
plugins_sixaxis_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
endif
diff --git a/Makefile.tools b/Makefile.tools
index 35412ca..55e769d 100644
--- a/Makefile.tools
+++ b/Makefile.tools
monitor/intel.h monitor/intel.c \
monitor/broadcom.h monitor/broadcom.c \
monitor/tty.h
-monitor_btmon_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS)
monitor_btmon_LDADD = lib/libbluetooth-internal.la \
src/libshared-mainloop.la $(UDEV_LIBS)
endif
tools/gatt-service profiles/iap/iapd
tools_bdaddr_SOURCES = tools/bdaddr.c src/oui.h src/oui.c
-tools_bdaddr_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS)
tools_bdaddr_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
tools_avinfo_LDADD = lib/libbluetooth-internal.la
tools_hciconfig_LDADD = lib/libbluetooth-internal.la
tools_hcitool_SOURCES = tools/hcitool.c src/oui.h src/oui.c
-tools_hcitool_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS)
tools_hcitool_LDADD = lib/libbluetooth-internal.la $(UDEV_LIBS)
tools_hcidump_SOURCES = tools/hcidump.c \
udev_PROGRAMS = tools/hid2hci
-tools_hid2hci_CPPFLAGS = $(AM_CPPFLAGS) $(UDEV_CFLAGS)
tools_hid2hci_LDADD = $(UDEV_LIBS)
dist_man_MANS += tools/hid2hci.1