commit | ba8d0c1b6fae16af685dd94b3749025e6c3e4502 | [log] [tgz] |
---|---|---|
author | Joel Stanley <joel@jms.id.au> | Mon Nov 23 20:35:46 2015 +1030 |
committer | Joel Stanley <joel@jms.id.au> | Mon Nov 23 20:35:46 2015 +1030 |
tree | 23ba4c470531b9d93bba2da6f4882bc16216df34 | |
parent | 1029a06994528e6c8117ee22359069e6aff69f2a [diff] |
Makefile: Allow specifying kenrel header path Helps with doing builds on systems where the kernel headers are not installed. Signed-off-by: Joel Stanley <joel@jms.id.au>
diff --git a/Makefile b/Makefile index 9d1f5b9..733511c 100644 --- a/Makefile +++ b/Makefile
@@ -1,6 +1,10 @@ CFLAGS = $(shell pkg-config --cflags libsystemd) -Wall -O2 LDLIBS = $(shell pkg-config --libs libsystemd) +ifdef KERNEL_HEADERS + CFLAGS += -I$(KERNEL_HEADERS) +endif + EXE = btbridged all: $(EXE)