From b221297bba5394429051f3d4cb2ff915ec51324d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 22 Feb 2006 23:38:36 +0000 Subject: [PATCH] Fix for RTAI compile with --enable-kbuild configure option, from Edwin Steiner --- comedi/Makefile.am | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/comedi/Makefile.am b/comedi/Makefile.am index 58ffed1c..7cf35207 100644 --- a/comedi/Makefile.am +++ b/comedi/Makefile.am @@ -4,11 +4,12 @@ SUBDIRS = . kcomedilib drivers if CONFIG_KBUILD module_PROGRAMS = all-local: comedi_kbuild.inc - make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_srcdir@/ -I @abs_top_srcdir@/include" V=1 modules + make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_srcdir@/ \ + -I@abs_top_srcdir@/include $(RTAI_CFLAGS) $(RTLINUX_CFLAGS)" V=1 modules install-data-local: comedi_kbuild.inc - make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_srcdir@/ -I @abs_top_srcdir@/include" V=1 modules_install + make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@" V=1 modules_install clean-local: comedi_kbuild.inc - make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@ CC="$(LINUX_CC) -I@abs_top_srcdir@/ -I @abs_top_srcdir@/include" V=1 clean + make -I@abs_builddir@ -C $(LINUX_DIR) M=@abs_builddir@" V=1 clean else module_PROGRAMS = comedi.ko all-local: -- 2.26.2