aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/ath/athratestats/Makefile
blob: 7a51392a9a7e5389ae36517dd3f98ec7c558dde3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $FreeBSD$

.PATH:	${.CURDIR}/../../../../sys/dev/ath/ath_hal
.PATH:	${.CURDIR}/../../../../sys/dev/ath/

PROG=	athratestats

SRCS=	main.c opt_ah.h ah_osdep.h

LIBADD+=	ncurses

CLEANFILES+=	opt_ah.h ah_osdep.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

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
	echo 'typedef uint32_t *HAL_DMA_ADDR;' >>ah_osdep.h

.include <bsd.prog.mk>