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