HAL = ${.CURDIR}/../hal/ath_hal
HALOSDEP= ${.CURDIR}/../hal
CFLAGS += -I${HALOSDEP}
+
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+ echo "#define INET6 1" >> ${.TARGET}
+
+opt_wlan.h:
+ echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
+ echo "#define IEEE80211_SUPPORT_TDMA 1" >> ${.TARGET}
+ echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET}
+
+opt_ah.h:
+ echo "#define AH_SUPPORT_AR5416 1" > ${.TARGET}
SRCS = if_ath.c if_ath_pci.c
SRCS += device_if.h bus_if.h pci_if.h opt_ath.h opt_ah.h opt_wlan.h opt_inet.h
-opt_inet.h:
- echo "#define INET6 1" > ${.TARGET}
-
-opt_wlan.h:
- echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
- echo "#define IEEE80211_SUPPORT_TDMA 1" >> ${.TARGET}
- echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET}
-
.include <bsd.kmod.mk>
#SRCS+= amrr.c
#.endif
-CFLAGS+= -I. -I${HAL} -DAH_SUPPORT_AR5416
-
-.if !defined(BUILDING_WITH_KERNEL)
-opt_ah.h:
- echo '#define AH_SUPPORT_AR5416 1' > opt_ah.h
-.endif
+CFLAGS+= -I. -I${HAL}
.include <bsd.kmod.mk>
SRCS = sample.c
SRCS += device_if.h bus_if.h pci_if.h opt_ah.h opt_wlan.h opt_inet.h
-opt_inet.h:
- echo "#define INET6 1" > ${.TARGET}
-
-opt_wlan.h:
- echo "#define IEEE80211_DEBUG 1" > ${.TARGET}
- echo "#define IEEE80211_SUPPORT_TDMA 1" >> ${.TARGET}
- echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET}
-
.include <bsd.kmod.mk>