reorganized things
[my-code/kernel.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b7d4f29
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+ifneq ($(KERNELRELEASE),)
+       obj-y += hello/
+       obj-y += mproc/
+else
+       KERNELDIR ?= /usr/src/linux
+       PWD := $(shell pwd)
+default:
+       $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+endif