-# Where to look for kernel
-# if not defined, sources of current running kernel are found
-#KERNEL_LOCATION=/usr/src/linux
-#KERNEL_LOCATION=/usr/src/linux-2.2.19
-#KERNEL_LOCATION=/usr/src/linux-2.2.22
-#KERNEL_LOCATION=/usr/src/linux-2.5.69
-#KERNEL_LOCATION=/home/cvs/ocera/ocera-build/kernel/linux
-
-# Enable debugging messages
-DEBUG = y
-
-# You can comment out the hardware you don't need. This will result in a smaller
-# driver. By default, all hardware is supported in the driver. See the README
-# file for a description of the supported hardware.
-# pccan Not to be confused with PCCCAN!!!
-# pcccan Not to be confused with PCCAN!!!
-
-SUPPORTED_CARDS = pip pccan smartcan nsi cc_can104 \
- pc_i03 pcm3680 aim104 m437 pcccan ssv \
- bfadcan pikronisa template
-
-#SUPPORTED_CARDS = pcm3680 bfadcan pikronisa template
-
-#SUPPORTED_CARDS = pikronisa
-
-########## Don't change anything under this line ################
-
-# currently running kernel
-CURRENT=$(shell uname -r)
-KERNEL_NEW=$(shell if [ -d /lib/modules/$(CURRENT)/build ] ; \
- then echo yes ; else echo no ; fi )
-
-#KERNEL_LOCATION=/usr/src/kernel/$(CURRENT)
-#KERNEL_LOCATION=/lib/modules/$(CURRENT)/build
-
-ifndef KERNEL_LOCATION
-ifeq ($(KERNEL_NEW),yes)
-KERNEL_LOCATION=/lib/modules/$(CURRENT)/build
-MODULE_CHAR_LOC=/lib/modules/$(CURRENT)/kernel/drivers/char
-else
-KERNEL_LOCATION=/usr/src/linux
-MODULE_CHAR_LOC=/lib/modules/$(CURRENT)/misc
-endif
-endif
-
-KERNEL_VERSION := $(shell awk -F\" '/REL/ {print $$2}' \
- $(KERNEL_LOCATION)/include/linux/version.h | awk -F\- '{print $$1}')
-
-PROC_FS := $(shell awk -F\ '/PROC_FS/ {print $$3}' \
- $(KERNEL_LOCATION)/include/linux/autoconf.h)
-
-DEVFS_FS := $(shell awk -F\ '/DEVFS_FS/ {print $$3}' \
- $(KERNEL_LOCATION)/include/linux/autoconf.h)
-
-KERNEL_MODULE_V26 := $(shell echo $(KERNEL_VERSION) \
- | sed -n 's/^.*2\.[5-9]\..*$$/yes/p')
-
-ifdef DEBUG
- EXTRA_CFLAGS += -DCAN_DEBUG
- EXTRA_CFLAGS += -ggdb
-endif
-
-ifndef MODVERSIONS
-# EXTRA_CFLAGS += -DNOVER
-#else
-# EXTRA_CFLAGS += -DMODVERSIONS