summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
committerdim <dim@FreeBSD.org>2013-12-22 17:51:33 +0000
commitb8e518528f02b85edc31c8aaab7dce50b2c0637a (patch)
treebe47307173b9efd3ad49c05d4784734effcc6646 /tools
parent47ed2e723641d37c7d409d6ce11d4786823dc8e8 (diff)
downloadFreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.zip
FreeBSD-src-b8e518528f02b85edc31c8aaab7dce50b2c0637a.tar.gz
To avoid having to explicitly test COMPILER_TYPE for setting
clang-specific or gcc-specific flags, introduce the following new variables for use in Makefiles: CFLAGS.clang CFLAGS.gcc CXXFLAGS.clang CXXFLAGS.gcc In bsd.sys.mk, these get appended to the regular CFLAGS or CXXFLAGS for the right compiler. MFC after: 1 week
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athstats/Makefile4
-rw-r--r--tools/tools/net80211/wlanstats/Makefile4
2 files changed, 2 insertions, 6 deletions
diff --git a/tools/tools/ath/athstats/Makefile b/tools/tools/ath/athstats/Makefile
index a4348e5..d4cce3a 100644
--- a/tools/tools/ath/athstats/Makefile
+++ b/tools/tools/ath/athstats/Makefile
@@ -21,9 +21,7 @@ CLEANFILES+= opt_ah.h
CFLAGS+=-DATH_SUPPORT_ANI
CFLAGS+=-DATH_SUPPORT_TDMA
-.if (${COMPILER_TYPE} == "clang")
-CFLAGS+=-fbracket-depth=512
-.endif
+CFLAGS.clang+= -fbracket-depth=512
opt_ah.h:
echo "#define AH_DEBUG 1" > opt_ah.h
diff --git a/tools/tools/net80211/wlanstats/Makefile b/tools/tools/net80211/wlanstats/Makefile
index 48df17f..30067ef 100644
--- a/tools/tools/net80211/wlanstats/Makefile
+++ b/tools/tools/net80211/wlanstats/Makefile
@@ -7,8 +7,6 @@ BINDIR= /usr/local/bin
NO_MAN=
SRCS= statfoo.c wlanstats.c main.c
-.if ${COMPILER_TYPE} == "clang"
-CFLAGS+= -fbracket-depth=512
-.endif
+CFLAGS.clang+= -fbracket-depth=512
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud