# If KERNELRELEASE is defined, we've been invoked from the # kernel build system and can use its language. ifneq ($(KERNELRELEASE),) obj-m := treiber.o mem.o sysfs.o # Otherwise we were called directly from the command # line; invoke the kernel build system. else #KERNELDIR ?= /lib/modules/$(shell uname -r)/build KERNELDIR ?= /home/extern/patrick/.public_html/test/linux-2.6.14 PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules endif