Make kernel version default to the latest one we support in the Makefile
[transforward.git] / Makefile
1 obj-m += transforward.o
2
3 KVER=$(shell uname -r)
4 ARCH=$(shell uname -m)
5 DIST=fc18 # Is there an easy way of fetching this automatically, short of mapping /etc/redhat-release
6
7 ifeq ($(wildcard /lib/modules/$(KVER)/build),) 
8         KVER=3.10.6-100.$(DIST).$(KVER)
9 endif
10
11 all:
12         make -C /lib/modules/$(KVER)/build M=$(PWD) modules
13
14 clean:
15         make -C /lib/modules/$(KVER)/build M=$(PWD) clean