Linux >= 3.9 compatibility issue fixed: hlist_for_each_entry has 3 args now
[vde.git] / ipn / kvde_switch / Makefile
blob0f7dce2846ee235756301385935c0f0ce82d0858
1 # If KERNELRELEASE is defined, we've been invoked from the
2 # kernel build system and can use its language.
3 #KERNELDIR = "/usr/src/experimental/linux-source-2.6.22-utrace-viewos"
4 #KERNELDIR = "/mnt/sorgenti/KernelStuff/kernels/linux-2.6.22.1/"
5 #KERNELDIR = "/extra/renzo/linux-2.6.24-rc5-ipn-curr"
7 ifneq ($(KERNELRELEASE),)
8 kvde_switch-objs := kvde_switch_main.o
9 obj-m += kvde_switch.o
10 obj-m += ipn_hash.o
11 # Otherwise we were called directly from the command
12 # line; invoke the kernel build system.
13 else
14 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
15 PWD := $(shell pwd)
17 default:
18 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
20 modules_install:
21 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
22 endif
24 clean:
25 rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions