diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-12-28 11:06:43 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-12-28 15:21:08 (GMT) |
commit | f98674aa375586993b68a84b65086aaff329372d (patch) | |
tree | 5ac229c73c674fa6b68506527fc881315a595b4c /hostapd | |
parent | 161c8515ccd7da3740b564b50f00c6df43bb2832 (diff) | |
download | hostap-f98674aa375586993b68a84b65086aaff329372d.zip hostap-f98674aa375586993b68a84b65086aaff329372d.tar.gz hostap-f98674aa375586993b68a84b65086aaff329372d.tar.bz2 |
Clone default LIBS value to LIBS_* for other tools
If LIBS is set with some global build system defaults, clone those for
LIBS_c, LIBS_h, LIBS_n, and LIBS_p to cover wpa_cli, wpa_passphrase,
hostapd_cli, hlr_auc_gw, and nt_password_hash as well.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile index fa5435d..45afedf 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -6,6 +6,21 @@ ifndef CFLAGS CFLAGS = -MMD -O2 -Wall -g endif +ifdef LIBS +# If LIBS is set with some global build system defaults, clone those for +# LIBS_c, LIBS_h, and LIBS_n to cover hostapd_cli, hlr_auc_gw, and +# nt_password_hash as well. +ifndef LIBS_c +LIBS_c := $(LIBS) +endif +ifndef LIBS_h +LIBS_h := $(LIBS) +endif +ifndef LIBS_n +LIBS_n := $(LIBS) +endif +endif + CFLAGS += $(EXTRA_CFLAGS) CFLAGS += -I$(abspath ../src) CFLAGS += -I$(abspath ../src/utils) |