Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 2015 06:18:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283002 - in head/tools/tools: ath/athaggrstats ath/athstats mwl/mwlstats net80211/wlanstats npe/npestats
Message-ID:  <201505160618.t4G6IdXX056180@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat May 16 06:18:39 2015
New Revision: 283002
URL: https://svnweb.freebsd.org/changeset/base/283002

Log:
  Make these all work with the new way of doing privatelib.
  
  Without these CFLAGS settings a cross-compile won't find the headers
  anywhere.
  
  Tested:
  
  * mips (32, big endian) cross-build w/ LOCAL_DIRS including these
    tools.

Modified:
  head/tools/tools/ath/athaggrstats/Makefile
  head/tools/tools/ath/athstats/Makefile
  head/tools/tools/mwl/mwlstats/Makefile
  head/tools/tools/net80211/wlanstats/Makefile
  head/tools/tools/npe/npestats/Makefile

Modified: head/tools/tools/ath/athaggrstats/Makefile
==============================================================================
--- head/tools/tools/ath/athaggrstats/Makefile	Sat May 16 06:15:49 2015	(r283001)
+++ head/tools/tools/ath/athaggrstats/Makefile	Sat May 16 06:18:39 2015	(r283002)
@@ -12,6 +12,7 @@ CLEANFILES+=	opt_ah.h
 
 CFLAGS+=-DATH_SUPPORT_ANI
 CFLAGS+=-DATH_SUPPORT_TDMA
+CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
 LIBADD+=	bsdstat
 
 opt_ah.h:

Modified: head/tools/tools/ath/athstats/Makefile
==============================================================================
--- head/tools/tools/ath/athstats/Makefile	Sat May 16 06:15:49 2015	(r283001)
+++ head/tools/tools/ath/athstats/Makefile	Sat May 16 06:18:39 2015	(r283002)
@@ -8,10 +8,6 @@ MAN=
 
 PROG=	athstats
 
-# Because of a clang preprocessor parser limitation causing this
-# to not compile, use gcc for now.
-#CC=	gcc
-
 SRCS=	main.c athstats.c opt_ah.h ah_osdep.h
 
 CLEANFILES+=	opt_ah.h
@@ -21,6 +17,8 @@ CLEANFILES+=	opt_ah.h
 CFLAGS+=-DATH_SUPPORT_ANI
 CFLAGS+=-DATH_SUPPORT_TDMA
 
+CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
+
 CFLAGS.clang+= -fbracket-depth=512
 
 LIBADD=	bsdstat

Modified: head/tools/tools/mwl/mwlstats/Makefile
==============================================================================
--- head/tools/tools/mwl/mwlstats/Makefile	Sat May 16 06:15:49 2015	(r283001)
+++ head/tools/tools/mwl/mwlstats/Makefile	Sat May 16 06:18:39 2015	(r283002)
@@ -6,6 +6,7 @@ MAN=
 
 SRCS=	main.c mwlstats.c
 LIBADD=	bsdstat
+CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
 
 .include <bsd.prog.mk>
 

Modified: head/tools/tools/net80211/wlanstats/Makefile
==============================================================================
--- head/tools/tools/net80211/wlanstats/Makefile	Sat May 16 06:15:49 2015	(r283001)
+++ head/tools/tools/net80211/wlanstats/Makefile	Sat May 16 06:18:39 2015	(r283002)
@@ -6,6 +6,7 @@ PROG=	wlanstats
 BINDIR=	/usr/local/bin
 MAN=
 LIBADD=	bsdstat
+CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
 
 SRCS=	wlanstats.c main.c
 

Modified: head/tools/tools/npe/npestats/Makefile
==============================================================================
--- head/tools/tools/npe/npestats/Makefile	Sat May 16 06:15:49 2015	(r283001)
+++ head/tools/tools/npe/npestats/Makefile	Sat May 16 06:18:39 2015	(r283002)
@@ -5,5 +5,6 @@ SRCS=	main.c npestats.c
 BINDIR=	/usr/local/bin
 MAN=
 LIBADD=	bsdstat
+CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505160618.t4G6IdXX056180>