compile fixes
authorDavid Schleef <ds@schleef.org>
Mon, 13 Nov 2000 10:39:01 +0000 (10:39 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 13 Nov 2000 10:39:01 +0000 (10:39 +0000)
Makefile.modbuild

index 11abb8902f9e60a37b714ba2edf4a8b18d47203c..205f25dfb2be8df31cf366320beb6edfbb1576a6 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
 TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
 
 HPATH          = $(TOPDIR)/include
-FINDHPATH      = $(HPATH)/$(project)
+FINDHPATH      = $(HPATH)
 
 HOSTCC         =gcc
 HOSTCFLAGS     =-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
@@ -54,6 +54,9 @@ CFLAGS += -D__MODBUILD__
 ifdef RTLDIR
 CFLAGS += -I $(RTLDIR)/include -D__RT__
 endif
+ifdef RTAIDIR
+CFLAGS += -I $(TOPDIR)/include/rtai
+endif
 
 CONFIG_SHELL := sh
 
@@ -144,9 +147,11 @@ distclean: clean
                -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
                -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS
        -rm -rf modules
-       rm -f .config .uts_version include/modbuild/config.h .config.old include/modbuild/version.h
+       rm -f .config .uts_version .config.old
        rm -f scripts/mkdep
        rm -f .sourcedirs
+       rm -f include/modbuild/*.h
+       rm -f include/rtai include/rtlinux
 
 include $(TOPDIR)/Rules.make