aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-24 17:16:12 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-24 17:16:12 (GMT)
commit7feff0656751fb45cd4128d96a5d48d85b32cb4a (patch)
tree84bd514129de6be4b5a6a1a4aa90b6eeef874c4c /wpa_supplicant/Makefile
parentd9c753b4f5670ce8bcfca137c1c7b63a4cb1be46 (diff)
downloadhostap-7feff0656751fb45cd4128d96a5d48d85b32cb4a.zip
hostap-7feff0656751fb45cd4128d96a5d48d85b32cb4a.tar.gz
hostap-7feff0656751fb45cd4128d96a5d48d85b32cb4a.tar.bz2
Add CONFIG_CODE_COVERAGE=y option for gcov
This can be used to measure code coverage from test scripts. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/Makefile')
-rw-r--r--wpa_supplicant/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index f6a46d2..260c0ae 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -129,6 +129,13 @@ ifdef CONFIG_EAPOL_TEST
CFLAGS += -Werror -DEAPOL_TEST
endif
+ifdef CONFIG_CODE_COVERAGE
+CFLAGS += -O0 -fprofile-arcs -ftest-coverage
+LIBS += -lgcov
+LIBS_c += -lgcov
+LIBS_p += -lgcov
+endif
+
ifdef CONFIG_HT_OVERRIDES
CFLAGS += -DCONFIG_HT_OVERRIDES
endif
@@ -1672,7 +1679,8 @@ fips:
clean:
$(MAKE) -C ../src clean
$(MAKE) -C dbus clean
- rm -f core *~ *.o *.d eap_*.so $(ALL) $(WINALL) eapol_test preauth_test
+ rm -f core *~ *.o *.d *.gcno *.gcda *.gcov
+ rm -f eap_*.so $(ALL) $(WINALL) eapol_test preauth_test
rm -f wpa_priv
rm -f nfc_pw_token