summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athdecode/Makefile8
-rw-r--r--tools/tools/ath/athkey/Makefile11
-rw-r--r--tools/tools/ath/athpoke/Makefile8
-rw-r--r--tools/tools/ath/athprom/Makefile9
-rw-r--r--tools/tools/ath/athregs/Makefile8
5 files changed, 44 insertions, 0 deletions
diff --git a/tools/tools/ath/athdecode/Makefile b/tools/tools/ath/athdecode/Makefile
index 5dd3289..00c4524 100644
--- a/tools/tools/ath/athdecode/Makefile
+++ b/tools/tools/ath/athdecode/Makefile
@@ -10,6 +10,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>
diff --git a/tools/tools/ath/athkey/Makefile b/tools/tools/ath/athkey/Makefile
index 7398a41..7aee048 100644
--- a/tools/tools/ath/athkey/Makefile
+++ b/tools/tools/ath/athkey/Makefile
@@ -2,6 +2,17 @@
PROG= athkey
+SRCS= athkey.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
+
+
.include <../Makefile.inc>
.include <bsd.prog.mk>
diff --git a/tools/tools/ath/athpoke/Makefile b/tools/tools/ath/athpoke/Makefile
index 82b9c62..a33c739 100644
--- a/tools/tools/ath/athpoke/Makefile
+++ b/tools/tools/ath/athpoke/Makefile
@@ -10,6 +10,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>
diff --git a/tools/tools/ath/athprom/Makefile b/tools/tools/ath/athprom/Makefile
index 1278f22..f7b5967 100644
--- a/tools/tools/ath/athprom/Makefile
+++ b/tools/tools/ath/athprom/Makefile
@@ -7,6 +7,15 @@ PROG= athprom
TEMPLATEDIR= /usr/local/libdata/athprom
TEXTMODE?= 444
+SRCS= athprom.c
+SRCS+= opt_ah.h
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
+
CFLAGS+=-DDIR_TEMPLATE='"${TEMPLATEDIR}"'
beforeinstall:
diff --git a/tools/tools/ath/athregs/Makefile b/tools/tools/ath/athregs/Makefile
index eef4fb2..6b61b32 100644
--- a/tools/tools/ath/athregs/Makefile
+++ b/tools/tools/ath/athregs/Makefile
@@ -9,6 +9,14 @@ SRCS+= dumpregs_5210.c
SRCS+= dumpregs_5211.c
SRCS+= dumpregs_5212.c
SRCS+= dumpregs_5416.c
+SRCS+= opt_ah.h
+
+CLEANFILES+= opt_ah.h
+
+opt_ah.h:
+ echo "#define AH_DEBUG 1" > opt_ah.h
+ echo "#define AH_DEBUG_COUNTRY 1" >> opt_ah.h
+ echo "#define AH_SUPPORT_AR5416 1" >> opt_ah.h
.include <../Makefile.inc>
OpenPOWER on IntegriCloud