2007-10-04 17:07:51 +04:00
|
|
|
#
|
|
|
|
# Makefile for the Atheros WLAN driver.
|
|
|
|
#
|
|
|
|
|
|
|
|
obj ?= .
|
|
|
|
src ?= .
|
|
|
|
srctree ?= .
|
|
|
|
|
|
|
|
TOP = $(srctree)/$(src)/..
|
|
|
|
|
|
|
|
include $(TOP)/BuildCaps.inc
|
|
|
|
|
2009-04-07 05:26:53 +04:00
|
|
|
HAL= $(TOP)/ath_hal
|
2007-10-04 17:07:51 +04:00
|
|
|
WLAN= $(TOP)/net80211
|
|
|
|
COMPAT= $(TOP)/include
|
|
|
|
|
|
|
|
#
|
|
|
|
# Select bus-specific code. Note that this defaults to PCI.
|
|
|
|
#
|
|
|
|
ifeq ($(strip $(BUS)),AHB)
|
|
|
|
BUSNAME=ahb
|
|
|
|
EXTRA_CFLAGS+= -DATH_AHB
|
|
|
|
else
|
|
|
|
BUSNAME=pci
|
|
|
|
EXTRA_CFLAGS+= -DATH_PCI
|
|
|
|
endif
|
|
|
|
|
2008-02-05 09:27:17 +03:00
|
|
|
# These flags select which radar signatures DFS will match
|
|
|
|
COPTS += -DDFS_DOMAIN_ETSI -DDFS_DOMAIN_FCC
|
|
|
|
|
2007-10-04 17:07:51 +04:00
|
|
|
INCS = -include $(COMPAT)/compat.h -I$(COMPAT)
|
2009-04-07 05:26:53 +04:00
|
|
|
INCS += -I$(TOP) -I$(HAL) -I$(WLAN)
|
2007-10-04 17:07:51 +04:00
|
|
|
|
2009-04-07 05:26:53 +04:00
|
|
|
EXTRA_CFLAGS += $(INCS) $(COPTS)
|
2007-10-04 17:07:51 +04:00
|
|
|
|
|
|
|
obj-$(CONFIG_ATHEROS) += ath_$(BUSNAME).o
|
2008-06-13 16:36:32 +04:00
|
|
|
ath_$(BUSNAME)-objs := if_ath.o if_ath_radar.o if_ath_hal_extensions.o if_ath_$(BUSNAME).o
|