From 707246827db20ff9b3c3f93940b47646c6e0a1e0 Mon Sep 17 00:00:00 2001 From: Luis Ortega Perez de Villar Date: Tue, 20 Aug 2013 18:14:12 +0200 Subject: lddbus: Makefile: Declare LDDINC variable earlier Move the definition of LDDINC earlier into the file. This prevents the following compile time error: lddbus.h: No such file or directory. --- lddbus/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lddbus/Makefile b/lddbus/Makefile index 98d4cc9..8a7147b 100644 --- a/lddbus/Makefile +++ b/lddbus/Makefile @@ -7,8 +7,9 @@ ifeq ($(DEBUG),y) else DEBFLAGS = -O2 endif -EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR) +LDDINCDIR=$(PWD)/../include +EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR) ifneq ($(KERNELRELEASE),) # call from kernel build system @@ -21,7 +22,7 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) default: - $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) LDDINCDIR=$(PWD)/../include modules + $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules endif -- cgit v1.2.1-18-gbd029