From 12157f2efafd59a1a45f26ed51c2930a86a80c01 Mon Sep 17 00:00:00 2001 From: Luis Ortega Perez de Villar Date: Fri, 16 Aug 2013 19:46:14 +0200 Subject: scullv: Makefile: Declare LDDINC variable earlier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the definition of LDDINC earlier into the file. This prevents the following compile time error: implicit declaration of function ‘KBUILD_STR’. --- scullv/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scullv/Makefile b/scullv/Makefile index dd71bb0..5cc2a59 100644 --- a/scullv/Makefile +++ b/scullv/Makefile @@ -9,6 +9,7 @@ else DEBFLAGS = -O2 endif +LDDINC=$(PWD) EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINC) TARGET = scullv @@ -25,7 +26,7 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) modules: - $(MAKE) -C $(KERNELDIR) M=$(PWD) LDDINC=$(PWD) modules + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif -- cgit v1.2.1-18-gbd029