#
# Makefile for the Atheros WLAN driver.
#
KERNEL_SOURCE ?= /lib/modules/$(shell uanme -r)/build

BASEDIR=$(src)/..

EXTRA_CFLAGS+= -DATH_PCI -I$(BASEDIR)/hal -I$(BASEDIR)/hal/linux \
		-I$(BASEDIR)/ath_hal -I$(BASEDIR)/net80211 -I$(BASEDIR) \
		-I$(BASEDIR)/include -include $(BASEDIR)/include/compat.h $(COPTS)

ifeq ($(CONFIG_USERMODE),)
ifneq ($(CONFIG_NET_RADIO),)
obj-m += ath_pci.o
ath_pci-objs	:= if_ath.o if_ath_pci.o radar.o
endif
endif

modules modules_install clean:
	$(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=$(shell pwd) $@

install: modules_install

