aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/ath/athratestats/Makefile
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2012-07-20 01:38:03 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2012-07-20 01:38:03 +0000
commit78c166febfa039f0c053841f0cffcdf226eb5eba (patch)
treefe5377dcbdf5766a263ab79c342446ef38835905 /tools/tools/ath/athratestats/Makefile
parentb8f2a85349ede74d80523b0af92572888c6bb672 (diff)
downloadsrc-78c166febfa039f0c053841f0cffcdf226eb5eba.tar.gz
src-78c166febfa039f0c053841f0cffcdf226eb5eba.zip
Implement a first cut of the 'sample' rate statistics userland utility.
This outputs almost exactly the same information as the kernel sysctl does, however the rix -> rate mapping isn't yet available as a TLV.
Notes
Notes: svn path=/head/; revision=238635
Diffstat (limited to 'tools/tools/ath/athratestats/Makefile')
-rw-r--r--tools/tools/ath/athratestats/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/tools/ath/athratestats/Makefile b/tools/tools/ath/athratestats/Makefile
new file mode 100644
index 000000000000..de6da97d8d44
--- /dev/null
+++ b/tools/tools/ath/athratestats/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../../../sys/dev/ath/ath_hal
+.PATH: ${.CURDIR}/../../../../sys/dev/ath/
+
+PROG= athratestats
+
+SRCS= main.c
+
+CLEANFILES+= opt_ah.h
+
+.include <../Makefile.inc>
+
+CFLAGS+=-DATH_SUPPORT_ANI -g -ggdb
+CFLAGS+=-DATH_SUPPORT_TDMA
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
+
+ah_osdep.h:
+ echo 'typedef void *HAL_SOFTC;' >ah_osdep.h
+ echo 'typedef int HAL_BUS_TAG;' >>ah_osdep.h
+ echo 'typedef void *HAL_BUS_HANDLE;' >>ah_osdep.h
+
+.include <bsd.prog.mk>