projects
/
cascardo
/
kernel
/
samples
/
workqueue
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use a directory per project.
[cascardo/kernel/samples/workqueue/.git]
/
Makefile
diff --git a/Makefile
b/Makefile
new file mode 100644
(file)
index 0000000..
f2266eb
--- /dev/null
+++ b/
Makefile
@@ -0,0
+1,12
@@
+ifneq ($(KERNELRELEASE),)
+ obj-m := wq.o
+else
+ KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+ PWD := $(shell pwd)
+
+default:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+
+clean:
+ $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+endif