14 lines
680 B
Diff
14 lines
680 B
Diff
|
diff --git a/Makefile.am b/Makefile.am
|
||
|
index 5cbc15f..57bdbdb 100644
|
||
|
--- a/Makefile.am
|
||
|
+++ b/Makefile.am
|
||
|
@@ -2,7 +2,7 @@
|
||
|
sbin_PROGRAMS = fcoeadm fcoemon fcping fipvlan fcnsq fcrls
|
||
|
|
||
|
## all targets should look for headers in the include directory
|
||
|
-AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include
|
||
|
+AM_CPPFLAGS = -I${srcdir}/include -I${builddir}/include -I/lib/modules/`rpm -q --list kernel | grep "^/lib/modules/.*/build$$" | cut -f4 -d"/" | sort -r | head -1`/build/include
|
||
|
## pass the sysconfdir into the C proprocessor
|
||
|
AM_CPPFLAGS += -DSYSCONFDIR="\"${sysconfdir}\"" -D_FORTIFY_SOURCE=2
|
||
|
AM_CFLAGS = -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes
|