summaryrefslogtreecommitdiff
path: root/Makefile.kernel26
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.kernel26')
-rw-r--r--Makefile.kernel2625
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.kernel26 b/Makefile.kernel26
new file mode 100644
index 0000000..f119368
--- /dev/null
+++ b/Makefile.kernel26
@@ -0,0 +1,25 @@
+obj-m := $(MODULESO)
+obj-m += wct4xxp/ wctc4xxp/
+
+# Also build xpp in the subdirectory xpp/ . But only for >=2.6.10 and only
+# for i386. On other archs the module will probably build but panic.
+
+ifneq (,$(shell [ 0$(SUBLEVEL) -ge 8 ] && [ "$(ARCH)" = 'i386' ] && echo 1))
+obj-m += xpp/
+endif
+
+EXTRA_CFLAGS := -I$(src)
+
+zaptel-objs := zaptel-base.o
+
+ifeq ($(HPEC_PRESENT),yes)
+ifeq ($(ARCH),i386)
+zaptel-objs += hpec/hpec_x86_32.o
+endif
+
+ifeq ($(ARCH),x86_64)
+zaptel-objs += hpec/hpec_x86_64.o
+endif
+
+EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
+endif