summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2018-04-11 09:33:05 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2018-04-11 09:33:05 +0200
commiteebaa7f86212d7ebab3c87aae1f9d68cade1b49e (patch)
tree38b556f915ea612375202be6ec434f9f75c98b6a /Makefile
Initial commit.HEADmaster
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..16f7b2f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+wtest-y := ww_mutex_test.o ww_mutex.o
+
+obj-m += wtest.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
+
+install:
+ cp wtest.ko /lib/modules/$(shell uname -r)/extra
+ depmod -a