# For building for the current running version of Linux
+ifndef TARGET
TARGET := $(shell uname -r)
+endif
# Or specific version
#TARGET := 2.6.33.5
+
KERNEL_MODULES := /lib/modules/$(TARGET)
ifneq ("","$(wildcard /usr/src/linux-headers-$(TARGET)/*)")
endif
#SYSTEM_MAP := $(KERNEL_BUILD)/System.map
+ifneq ("","$(wildcard /boot/System.map-$(TARGET))")
SYSTEM_MAP := /boot/System.map-$(TARGET)
+else
+# Arch
+SYSTEM_MAP := /proc/kallsyms
+endif
DRIVER := it87
ifneq ("","$(wildcard .git/*)")