diff options
author | adrian <adrian@FreeBSD.org> | 2011-01-22 23:37:42 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-01-22 23:37:42 +0000 |
commit | c37d4f349aeec27893bd062e40e9f08a290722b4 (patch) | |
tree | 427a827cb4e0097d50116ae10f844d68ae8bf58f /tools | |
parent | 376c59ffe9363028f11ed3ebba30e62bf03f9f7d (diff) | |
download | FreeBSD-src-c37d4f349aeec27893bd062e40e9f08a290722b4.zip FreeBSD-src-c37d4f349aeec27893bd062e40e9f08a290722b4.tar.gz |
Patch the athstats code/Makefile to cross-compile correctly.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/ath/athstats/Makefile | 24 | ||||
-rw-r--r-- | tools/tools/ath/athstats/athstats.c | 2 |
2 files changed, 13 insertions, 13 deletions
diff --git a/tools/tools/ath/athstats/Makefile b/tools/tools/ath/athstats/Makefile index 1a963e6..b1b9766 100644 --- a/tools/tools/ath/athstats/Makefile +++ b/tools/tools/ath/athstats/Makefile @@ -1,28 +1,26 @@ # $FreeBSD$ -PROG= athstats +.PATH: ${.CURDIR}/../../../../sys/dev/ath/ath_hal -SRCS= main.c statfoo.c athstats.c +PROG= athstats -.include <bsd.prog.mk> +SRCS= main.c statfoo.c athstats.c opt_ah.h ah_osdep.h -SRCDIR= ${.CURDIR}/../../../.. +CLEANFILES+= opt_ah.h -CLEANFILES+= opt_ah.h ah_osdep.h +.include <../Makefile.inc> CFLAGS+=-DATH_SUPPORT_ANI CFLAGS+=-DATH_SUPPORT_TDMA -CFLAGS+=-I${.CURDIR} -CFLAGS+=-I${SRCDIR}/sys/net80211 - -.include <../Makefile.inc> - -athstats.o: opt_ah.h ah_osdep.h - opt_ah.h: - touch 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> diff --git a/tools/tools/ath/athstats/athstats.c b/tools/tools/ath/athstats/athstats.c index 8bd5ea7..2c9f131 100644 --- a/tools/tools/ath/athstats/athstats.c +++ b/tools/tools/ath/athstats/athstats.c @@ -29,6 +29,8 @@ * $FreeBSD$ */ +#include "opt_ah.h" + /* * ath statistics class. */ |