X-Git-Url: http://git.onelab.eu/?p=transforward.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=78b34dd94c2cd066a84396b13511c30ff67dd1aa;hp=2965572a4057ae78051c0b47268f25f39b5ec289;hb=7832dfcb40682e969a9fcade776a1c03a7c9000c;hpb=54faa59da020aac2d455e02a3b353a47ebeec142 diff --git a/Makefile b/Makefile index 2965572..78b34dd 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ obj-m += transforward.o +KVER=$(shell uname -r) +ARCH=$(shell uname -m) +DIST=fc18 # Is there an easy way of fetching this automatically, short of mapping /etc/redhat-release + +ifeq ($(wildcard /lib/modules/$(KVER)/build),) + KVER=3.10.6-100.$(DIST).$(KVER) +endif + all: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules + make -C /lib/modules/$(KVER)/build M=$(PWD) modules clean: - make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean + make -C /lib/modules/$(KVER)/build M=$(PWD) clean