#
# Makefile for Onoe's rate control algorithm.
#
# $Id: Makefile.kernel,v 1.2 2004/09/29 18:19:39 samleffler Exp $
#
KERNEL_SOURCE ?= /lib/modules/$(shell uanme -r)/build

BASEDIR=$(src)/../..

EXTRA_CFLAGS+= -DATH_PCI -I$(BASEDIR)/hal -I$(BASEDIR)/hal/linux -I$(BASEDIR)/ath \
		-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_rate_sample.o
ath_rate_sample-objs	:= sample.o
endif
endif


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

install: modules_install

