xref: /freebsd/sys/modules/athk_common/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1DEVDIR=	${SRCTOP}/sys/contrib/dev/athk
2
3.PATH: ${DEVDIR}
4
5KMOD=	athk_common
6
7WITH_ATH_DEBUG=		1
8WITH_ATH_TRACEPOINTS=	0
9
10SRCS=	main.c
11SRCS+=	dfs_pattern_detector.c dfs_pri_detector.c
12SRCS+=	hw.c key.c regd.c
13
14.if defined(WITH_ATH_DEBUG) && ${WITH_ATH_DEBUG} > 0
15SRCS+=	debug.c
16CFLAGS+=	-DCONFIG_ATH_DEBUG
17.endif
18
19.if defined(WITH_ATH_TRACEPOINTS) && ${WITH_ATH_TRACEPOINTS} > 0
20SRCS+=	trace.c
21CFLAGS+=	-DCONFIG_ATH_TRACEPOINTS
22.endif
23
24# Other
25SRCS+=	${LINUXKPI_GENSRCS}
26SRCS+=	opt_wlan.h opt_inet6.h opt_inet.h opt_acpi.h
27
28CFLAGS+=	-DKBUILD_MODNAME='"athk_common"'
29
30CFLAGS+=	-I${DEVDIR}
31CFLAGS+=	${LINUXKPI_INCLUDES}
32# Helpful after fresh imports.
33#CFLAGS+=	-ferror-limit=0
34
35.include <bsd.kmod.mk>
36