summaryrefslogtreecommitdiff
path: root/hello/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'hello/Makefile')
-rw-r--r--hello/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/hello/Makefile b/hello/Makefile
new file mode 100644
index 0000000..d63aa3d
--- /dev/null
+++ b/hello/Makefile
@@ -0,0 +1,12 @@
+obj-m += hello-1.o
+obj-m += hello-2.o
+obj-m += hello-3.o
+obj-m += hello-4.o
+obj-m += startstop.o
+startstop-objs := start.o stop.o
+
+all:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+
+clean:
+ make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean