Adjust build system for Linux 2.6.26
[madwifi/.git] / ath / Makefile
index d4eb7f96c3a3ef1da056a72ec3217d883f1b41ca..e0dbd20b91eaaf79813393182c74e17b1ab75bd0 100644 (file)
 # Makefile for the Atheros WLAN driver.
 #
 
-ifeq ($(obj),)
-obj=   .
-endif
-
+obj := $(firstword $(obj) $(SUBDIRS) .)
 TOP = $(obj)/..
 
 ifeq ($(strip $(BUS)),AHB)
@@ -54,10 +51,13 @@ BUSNAME=pci
 COPTS+= -DATH_PCI
 endif
 
+# These flags select which radar signatures DFS will match
+COPTS  += -DDFS_DOMAIN_ETSI -DDFS_DOMAIN_FCC
+
 include $(TOP)/Makefile.inc
 
 obj-m          += ath_$(BUSNAME).o
-ath_$(BUSNAME)-objs    := if_ath.o if_ath_$(BUSNAME).o
+ath_$(BUSNAME)-objs    := if_ath.o if_ath_radar.o if_ath_$(BUSNAME).o
 
 INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL) -I$(WLAN)