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