From: Alex Bligh Date: Wed, 18 May 2011 07:36:06 +0000 (+0100) Subject: Add Makefile to enable external build X-Git-Url: http://git.alex.org.uk Add Makefile to enable external build --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..10f82f8 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +ifneq ($(KERNELRELEASE),) +# kbuild part of makefile +obj-m := nbd.o + +else + +# normal makefile +KDIR ?= /lib/modules/`uname -r`/build + +default: + $(MAKE) -C $(KDIR) M=$$PWD + +endif