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