update
authorDavid Schleef <ds@schleef.org>
Wed, 9 Feb 2000 04:56:43 +0000 (04:56 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 9 Feb 2000 04:56:43 +0000 (04:56 +0000)
Makefile
TODO

index 31dd82a8b26c9e6eef21fdba91d5ee70d8164015..932f53294eb0cc64925ec9cb99936d2a47045725 100644 (file)
--- 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 439b84e8fcd42ccb7533deaf0f4d83cb4eb896d1..b347fb760bfe0d18f5b0bbaa4bb9a36b873ab81a 100644 (file)
--- 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
+