diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 17:51:33 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 17:51:33 +0000 |
commit | b294993d630a50780b2513770315b85c11019f9e (patch) | |
tree | be47307173b9efd3ad49c05d4784734effcc6646 /tools | |
parent | e9120a256075543376496fbd75949eed1f13a887 (diff) | |
download | src-b294993d630a50780b2513770315b85c11019f9e.tar.gz src-b294993d630a50780b2513770315b85c11019f9e.zip |
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
Notes
Notes:
svn path=/head/; revision=259730
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/ath/athstats/Makefile | 4 | ||||
-rw-r--r-- | tools/tools/net80211/wlanstats/Makefile | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/tools/tools/ath/athstats/Makefile b/tools/tools/ath/athstats/Makefile index a4348e533e65..d4cce3a64142 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 48df17fc1910..30067ef0e19b 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> |