duplicate kernel flags. Fix scripts/dep.* to not add to CFLAGS if
the RTAI/RTLinux include directories don't exist. (Might not be an
error -- otherwise it's difficult to compile for a real-time patched
kernel without the RTAI/RTLinux source.)
export FLAT_MODULES
-CFLAGS := -I $(TOPDIR)/include -D__KERNEL__ -I $(LINUXDIR)/include $(CFLAGS)
+CFLAGS := -I $(TOPDIR)/include $(CFLAGS)
CFLAGS += -nostdinc -I $(shell $(CC) -print-search-dirs|grep ^install:|sed 's/^install: //')include
rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS
+ rm -f `find comedi -name Makefile -print`
-rm -rf modules
rm -f .config .config.old
rm -f include/config.h include/version.h
read RTAIDIR
fi
: ${RTAIDIR:=${default}}
- echo RTAIDIR=$RTAIDIR >>.buildvars
- echo CFLAGS += -I $RTAIDIR/include >>.buildvars
+ if [ -d ${RTAIDIR}/include ];then
+ echo RTAIDIR=$RTAIDIR >>.buildvars
+ echo CFLAGS += -I $RTAIDIR/include >>.buildvars
+ fi
export RTAIDIR
fi
read RTLDIR
fi
: ${RTLDIR:=$default}
- echo RTLDIR=$RTLDIR >>.buildvars
- echo CFLAGS += -I $RTLDIR/include -I $RTLDIR/include/compat -I $RTLDIR/include/posix -D__RT__ >>.buildvars
+ if [ -d ${RTLDIR}/include ];then
+ echo RTLDIR=$RTLDIR >>.buildvars
+ echo CFLAGS += -I $RTLDIR/include -I $RTLDIR/include/compat -I $RTLDIR/include/posix -D__RT__ >>.buildvars
+ fi
export RTLDIR
fi