summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-11 21:02:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-11 21:02:07 +0200
commit83930b4eff0277ca69a0800ccdd4f7552cdf1460 (patch)
treed876f56b65b24f70c854578b6c0f7fb9a65a21da /Makefile
downloadmodfastd-83930b4eff0277ca69a0800ccdd4f7552cdf1460.tar
modfastd-83930b4eff0277ca69a0800ccdd4f7552cdf1460.zip
Some basic initialization
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..82e3e7a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+ifneq ($(KERNELRELEASE),)
+obj-m := fastd.o
+
+else
+KDIR := /lib/modules/$(shell uname -r)/build
+PWD := $(shell pwd)
+
+all:
+ $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+
+endif
+
+
+.PHONY: clean
+
+clean:
+ rm -rf *.o .depend .*.cmd *.ko *.mod.c *.markers *.symvers *.order