From 9b3d82f79a2a48ef97961ef917c50019667a1c25 Mon Sep 17 00:00:00 2001 From: Luis Ortega Perez de Villar Date: Fri, 16 Aug 2013 19:15:59 +0200 Subject: scullp: 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’. --- scullp/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scullp') diff --git a/scullp/Makefile b/scullp/Makefile index f302570..069c515 100644 --- a/scullp/Makefile +++ b/scullp/Makefile @@ -9,6 +9,7 @@ else DEBFLAGS = -O2 endif +LDDINC=$(PWD) EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINC) TARGET = scullp @@ -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