summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
new file mode 100644
index 0000000..fbff4e6
--- /dev/null
+++ b/kernel/Makefile
@@ -0,0 +1,18 @@
+KDIR := /lib/modules/$(shell uname -r)/build
+
+# change a line according to your needs,
+# if you want to build for another kernel
+#KDIR := /lib/modules/2.6.12-usermode-r1-bs5/build
+#KDIR := /lib/modules/2.6.13-15.7-smp/build
+
+PWD := $(shell pwd)
+
+
+obj-m += dnbd.o
+dnbd-objs := queue.o cache.o net.o main.o
+
+all:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+
+clean:
+ -$(RM) *.o dnbd.ko *~