Get back to a more simple Makefile version.
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 5 Dec 2009 22:09:39 +0000 (20:09 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 5 Dec 2009 22:09:39 +0000 (20:09 -0200)
Makefile
make.sh [new file with mode: 0644]

index d26e7c6..d4757ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1 @@
-ifneq ($(KERNELRELEASE),)
-       obj-m := hello.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
+obj-m := hello.o
diff --git a/make.sh b/make.sh
new file mode 100644 (file)
index 0000000..2c1ad8f
--- /dev/null
+++ b/make.sh
@@ -0,0 +1 @@
+make -C /lib/modules/`uname -r`/build M=$PWD modules