xref: /freebsd/tools/tools/ath/athaggrstats/Makefile (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1
2.PATH:	${.CURDIR}/../../../../sys/dev/ath/ath_hal
3
4PROG=	athaggrstats
5
6SRCS=	main.c athaggrstats.c opt_ah.h ah_osdep.h
7
8CLEANFILES+=	opt_ah.h
9
10.include <../Makefile.inc>
11
12CFLAGS+=-DATH_SUPPORT_ANI
13CFLAGS+=-DATH_SUPPORT_TDMA
14CFLAGS+=-I${.CURDIR}/../../../../lib/libbsdstat/
15LIBADD+=	bsdstat
16
17opt_ah.h:
18	echo "#define AH_DEBUG 1" > opt_ah.h
19	echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
20
21ah_osdep.h:
22	echo 'typedef void *HAL_SOFTC;' >ah_osdep.h
23	echo 'typedef int HAL_BUS_TAG;' >>ah_osdep.h
24	echo 'typedef void *HAL_BUS_HANDLE;' >>ah_osdep.h
25	echo 'typedef uint32_t HAL_DMA_ADDR;' >>ah_osdep.h
26
27.include <bsd.prog.mk>
28