From: David Schleef Date: Mon, 13 Nov 2000 10:39:01 +0000 (+0000) Subject: compile fixes X-Git-Tag: r0_7_51~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0834b90576daf8e03a7e712dc785ce10a4f11441;p=comedi.git compile fixes --- diff --git a/Makefile.modbuild b/Makefile.modbuild index 11abb890..205f25df 100644 --- a/Makefile.modbuild +++ b/Makefile.modbuild @@ -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