| 1 |
$FreeWRT$ |
| 2 |
--- madwifi-0.9.2.1.orig/tools/Makefile 2006-07-14 07:15:56.000000000 +0200 |
| 3 |
+++ madwifi-0.9.2.1/tools/Makefile 2007-06-26 18:53:32.000000000 +0200 |
| 4 |
@@ -49,6 +49,12 @@ INCS= -include $(DEPTH)/include/compat. |
| 5 |
|
| 6 |
ALL= athstats 80211stats athkey athchans athctrl \ |
| 7 |
athdebug 80211debug wlanconfig |
| 8 |
+ |
| 9 |
+ifdef DOMULTI |
| 10 |
+OBJS= do_multi.o athstats.o 80211stats.o athkey.o athchans.o athctrl.o \ |
| 11 |
+ athdebug.o 80211debug.o wlanconfig.o |
| 12 |
+ALL= ${OBJS} madwifi_multi |
| 13 |
+endif |
| 14 |
|
| 15 |
all: $(ALL) |
| 16 |
|
| 17 |
@@ -59,6 +65,30 @@ LDFLAGS= |
| 18 |
|
| 19 |
all: $(ALL) |
| 20 |
|
| 21 |
+athstats.o: athstats.c |
| 22 |
+ ${CC} -c -o athstats.o -DDOMULTI=1 ${ALL_CFLAGS} -I../ath athstats.c |
| 23 |
+80211stats.o: 80211stats.c |
| 24 |
+ ${CC} -c -o 80211stats.o -DDOMULTI=1 ${ALL_CFLAGS} 80211stats.c |
| 25 |
+athkey.o: athkey.c |
| 26 |
+ ${CC} -c -o athkey.o -DDOMULTI=1 ${ALL_CFLAGS} athkey.c |
| 27 |
+athchans.o: athchans.c |
| 28 |
+ ${CC} -c -o athchans.o -DDOMULTI=1 ${ALL_CFLAGS} athchans.c |
| 29 |
+athctrl.o: athctrl.c |
| 30 |
+ ${CC} -c -o athctrl.o -DDOMULTI=1 ${ALL_CFLAGS} athctrl.c |
| 31 |
+athdebug.o: athdebug.c |
| 32 |
+ ${CC} -c -o athdebug.o -DDOMULTI=1 ${ALL_CFLAGS} athdebug.c |
| 33 |
+wlanconfig.o: wlanconfig.c |
| 34 |
+ ${CC} -c -o wlanconfig.o -DDOMULTI=1 ${ALL_CFLAGS} wlanconfig.c |
| 35 |
+80211debug.o: 80211debug.c |
| 36 |
+ ${CC} -c -o 80211debug.o -DDOMULTI=1 ${ALL_CFLAGS} 80211debug.c |
| 37 |
+do_multi.o: do_multi.c |
| 38 |
+ ${CC} -c -o do_multi.o -DDOMULTI=1 ${ALL_CFLAGS} do_multi.c |
| 39 |
+madwifi_multi: |
| 40 |
+ ${CC} -o madwifi_multi ${LDFLAGS} ${OBJS} |
| 41 |
+ for i in athstats 80211stats athkey athchans athctrl athdebug wlanconfig 80211debug; do \ |
| 42 |
+ ln -s -f madwifi_multi $$i; \ |
| 43 |
+ done |
| 44 |
+ |
| 45 |
athstats: athstats.c |
| 46 |
$(CC) -o athstats $(ALL_CFLAGS) -I../ath $(LDFLAGS) athstats.c |
| 47 |
80211stats: 80211stats.c |