Do not source Makefile.inc when building the tools, or else we would needlessly have to satisfy KERNELPATH and other unrelated checks just to build these userspace utilities. This would not be advantageos behaviour when building binary packages for distribution.
Index: tools/Makefile
===================================================================
--- tools/Makefile (revision 1201)
+++ tools/Makefile (working copy)
@@ -28,8 +28,32 @@
BINDIR= /usr/local/bin
-include ${DEPTH}/Makefile.inc
+ifeq ($(obj),)
+obj= .
+endif
+#
+# Path to the HAL source code.
+#
+ifeq ($(HAL),)
+HAL= ${obj}/${DEPTH}/hal
+endif
+#
+# Path to the HAL build area.
+#
+ATH_HAL=${DEPTH}/ath_hal
+#
+# Path to the 802.11 include files.
+#
+WLAN= ${DEPTH}/net80211
+#
+# Path to the Atheros device driver.
+#
+ATH= ${DEPTH}/ath
+#
+
+INCS= -include ${obj}/${DEPTH}/include/compat.h -I${obj}/${DEPTH}/include
+
ALL= athstats 80211stats athkey athchans athctrl \
athdebug 80211debug wlanconfig
Maybe that patch can be improved, but you get the idea.