summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-08-12 16:08:37 -0700
committerLuis R. Rodriguez <lrodriguez@atheros.com>2008-08-12 16:08:37 -0700
commit7b156c03da94e3e4ce62b35a79095c3eaa169150 (patch)
tree7a13a2be8c5bd7caa26942bc2aa2020f2620843f /Makefile
parentce8711f3ec2bc90890b2e3fcd7f03dfecccba0ac (diff)
downloadcrda-7b156c03da94e3e4ce62b35a79095c3eaa169150.tar.gz
crda-7b156c03da94e3e4ce62b35a79095c3eaa169150.tar.bz2
crda-7b156c03da94e3e4ce62b35a79095c3eaa169150.zip
Use your KLIB_BUILD path for nl80211 headers.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 41e3dfb..15d18e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
+ifeq ($(origin $(KLIB)), undefined)
+KLIB:= /lib/modules/$(shell uname -r)
+endif
+KLIB_BUILD ?= $(KLIB)/build
+
CFLAGS += -Wall -g3
#CFLAGS += -DUSE_OPENSSL
#LDFLAGS += -lssl
ifneq ($(COMPAT_TREE),)
CFLAGS += -I$(COMPAT_TREE)/include/
endif
-CFLAGS += -DUSE_GCRYPT
+CFLAGS += -I$(KLIB_BUILD)/include -DUSE_GCRYPT
LDFLAGS += -lgcrypt
CRDA_LIB="/usr/lib//crda/"