Consistent example makefiles.
authorFlorian Pose <fp@igh-essen.com>
Mon, 26 Jun 2006 14:53:17 +0000
changeset 284 7eed6020d5cf
parent 283 a480a0703c58
child 285 d6145fc87a74
Consistent example makefiles.
examples/mini/Makefile
examples/mini/kernel.conf.tmpl
examples/msr/kernel.conf.tmpl
examples/rtai/Makefile
examples/rtai/kernel.conf.tmpl
--- a/examples/mini/Makefile	Mon Jun 26 14:36:11 2006 +0000
+++ b/examples/mini/Makefile	Mon Jun 26 14:53:17 2006 +0000
@@ -56,7 +56,7 @@
 ifneq ($(wildcard kernel.conf),)
 include kernel.conf
 else
-KERNEL_DIR := /lib/modules/`uname -r`/build
+KERNEL_DIR := /lib/modules/$(shell uname -r)/build
 endif
 
 CURRENT_DIR := $(shell pwd)
--- a/examples/mini/kernel.conf.tmpl	Mon Jun 26 14:36:11 2006 +0000
+++ b/examples/mini/kernel.conf.tmpl	Mon Jun 26 14:53:17 2006 +0000
@@ -9,4 +9,4 @@
 #
 #------------------------------------------------------------------------------
 
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNELDIR := /lib/modules/$(shell uname -r)/build
--- a/examples/msr/kernel.conf.tmpl	Mon Jun 26 14:36:11 2006 +0000
+++ b/examples/msr/kernel.conf.tmpl	Mon Jun 26 14:53:17 2006 +0000
@@ -10,6 +10,6 @@
 #------------------------------------------------------------------------------
 
 # Kernel sources for module compilation
-KERNEL := `uname -r`
+KERNEL := $(shell uname -r)
 
 #------------------------------------------------------------------------------
--- a/examples/rtai/Makefile	Mon Jun 26 14:36:11 2006 +0000
+++ b/examples/rtai/Makefile	Mon Jun 26 14:53:17 2006 +0000
@@ -58,7 +58,7 @@
 ifneq ($(wildcard kernel.conf),)
 include kernel.conf
 else
-KERNEL_DIR := /lib/modules/`uname -r`/build
+KERNEL_DIR := /lib/modules/$(shell uname -r)/build
 endif
 
 CURRENT_DIR := $(shell pwd)
--- a/examples/rtai/kernel.conf.tmpl	Mon Jun 26 14:36:11 2006 +0000
+++ b/examples/rtai/kernel.conf.tmpl	Mon Jun 26 14:53:17 2006 +0000
@@ -9,4 +9,4 @@
 #
 #------------------------------------------------------------------------------
 
-KERNELDIR = /lib/modules/`uname -r`/build
+KERNELDIR := /lib/modules/$(shell uname -r)/build