svn commit: r257532 - head/tools/tools/ath/athstats
Adrian Chadd
adrian at FreeBSD.org
Fri Nov 1 22:38:59 UTC 2013
Author: adrian
Date: Fri Nov 1 22:38:58 2013
New Revision: 257532
URL: http://svnweb.freebsd.org/changeset/base/257532
Log:
Fix this build for clang.
Modified:
head/tools/tools/ath/athstats/Makefile
Modified: head/tools/tools/ath/athstats/Makefile
==============================================================================
--- head/tools/tools/ath/athstats/Makefile Fri Nov 1 22:05:29 2013 (r257531)
+++ head/tools/tools/ath/athstats/Makefile Fri Nov 1 22:38:58 2013 (r257532)
@@ -1,12 +1,16 @@
# $FreeBSD$
+NO_MAN=1
+
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../../../sys/dev/ath/ath_hal
PROG= athstats
# Because of a clang preprocessor parser limitation causing this
# to not compile, use gcc for now.
-CC= gcc
+#CC= gcc
SRCS= main.c statfoo.c athstats.c opt_ah.h ah_osdep.h
@@ -17,6 +21,10 @@ CLEANFILES+= opt_ah.h
CFLAGS+=-DATH_SUPPORT_ANI
CFLAGS+=-DATH_SUPPORT_TDMA
+.if (${COMPILER_TYPE} == "clang")
+CFLAGS+=-fbracket-depth=512
+.endif
+
opt_ah.h:
echo "#define AH_DEBUG 1" > opt_ah.h
echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
More information about the svn-src-all
mailing list