summaryrefslogtreecommitdiff
path: root/schulung_tools/drivers/modules/hellodriver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'schulung_tools/drivers/modules/hellodriver/Makefile')
-rw-r--r--schulung_tools/drivers/modules/hellodriver/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/schulung_tools/drivers/modules/hellodriver/Makefile b/schulung_tools/drivers/modules/hellodriver/Makefile
new file mode 100644
index 0000000..a0878d9
--- /dev/null
+++ b/schulung_tools/drivers/modules/hellodriver/Makefile
@@ -0,0 +1,19 @@
+MNAME = hello
+BDIR = /home/devel/work/build-linux
+
+ifeq ($(KERNELRELEASE),)
+# called from shell
+
+.PHONY: default clean
+
+default:
+ make -C $(BDIR) M=$(shell pwd) modules
+
+clean:
+ rm -rf $(MNAME).mod.* $(MNAME).*o .$(MNAME)* .tmp* Module.symvers modules.order
+
+else
+# called from kernel Makefile
+
+ obj-m := $(MNAME).o
+endif