From 5d18a9b61eee0403f759b6f307964518ebc36436 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 9 Feb 2000 04:56:43 +0000 Subject: [PATCH] update --- Makefile | 43 ++++++++++++++++++++++++++++++++++++------- TODO | 9 ++++++++- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 31dd82a8..932f5329 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,17 @@ VERS3 = 38 INSTALLDIR=/usr -LINUXDIR = /usr/src/linux +#LINUXDIR = /usr/src/linux +#LINUXDIR = /d/ds/cvs/rtl/linux22 +LINUXDIR = /d/ds/cvs/linux22 + +# define the following if you want to compile using RTL +# headers that aren't in the default location +RTLDIR = /d/ds/cvs/rtlinux + +# define the following if you want to compile using RTAI +# headers that aren't in the default location +RTAIDIR = /d/ds/cvs/rtai TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) @@ -16,21 +26,36 @@ TOPDIR := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) CFLAGS = -Wall -O2 -Wstrict-prototypes CFLAGS += -D__KERNEL__ -I $(LINUXDIR)/include -I $(TOPDIR)/include -I . -ifeq ($(CONFIG_SMP),y) -CFLAGS += -D__SMP__ -endif - CONFIG_SHELL := sh +include $(LINUXDIR)/.config + ifeq (.config,$(wildcard .config)) include .config include .uts_version -include $(LINUXDIR)/.config all2: modules comedi_config else all2: config endif +ifeq ($(CONFIG_SMP),y) +CFLAGS += -D__SMP__ +endif + +ifeq ($(CONFIG_COMEDI_RTL),y) +ifdef RTLDIR +CFLAGS += -I $(RTLDIR)/include +endif +CFLAGS += -D__RTL__ +endif + +ifeq ($(CONFIG_COMEDI_RTAI),y) +ifdef RTAIDIR +CFLAGS += -I $(RTAIDIR)/include +endif +endif + + SUBDIRS := comedi DOCFILES= README INSTALL drivers `find doc -type f` @@ -74,6 +99,10 @@ dev: dummy MODFLAGS += -DMODULE +ifeq ($(CONFIG_MODVERSIONS),y) +MODFLAGS += -DMODVERSIONS -include $(LINUXDIR)/include/linux/modversions.h +endif + modules: $(patsubst %, _mod_%, $(SUBDIRS)) @@ -91,8 +120,8 @@ distclean: clean 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 modules/* rm -f .config .uts_version include/config.h - rm -f modules/* include $(TOPDIR)/Rules.make diff --git a/TODO b/TODO index 439b84e8..b347fb76 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,8 @@ das6402 needs cleanup +merge das08, das16, das1600 and do cleanup + check each driver init for stuff grep XXX @@ -12,4 +14,9 @@ allocate private fix PCI code, use pci_find_device() -fix up DAS16 driver +make a skeleton driver + +standardize error codes + +fix CONFIG_MODVERISONS=y + -- 2.26.2