hack to set KBUILD_BASENAME
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 29 Feb 2004 18:25:35 +0000 (18:25 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 29 Feb 2004 18:25:35 +0000 (18:25 +0000)
configure.ac

index 9fd9701e9f11942fc34b983389b94c79f8a5b9d0..fe13f0fefcb6129e5483b5ce0531db8188e32fca 100644 (file)
@@ -50,7 +50,9 @@ CC=$LINUX_CC
 
 #ERROR_CFLAGS="-Werror"
 
-[COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/ -DKBUILD_MODNAME=\$(shell echo \$@ | sed 's/\(.*\)\.o/\1/g' | sed 's/\(.*\)_ko.*/\1/g')"]
+[COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/\
+ -DKBUILD_MODNAME=\$(shell echo \$@ | sed 's/\(.*\)\.o/\1/g' | sed 's/\(.*\)_ko.*/\1/g')\
+ -DKBUILD_BASENAME=\$(shell echo \$< | sed 's/\(.*\)\.c/\1/g')"]
 AC_SUBST(COMEDI_CFLAGS)
 
 AC_ARG_ENABLE([pcmcia],[  --disable-pcmcia     Disable support for PCMCIA devices],