# Comment/uncomment the following line to enable/disable debugging

WFLAGS = -DAGGREGATION_SUPPORT -DWMM_SUPPORT -Wall -Wstrict-prototypes -Wno-trigraphs
#WFLAGS += -DRALINK_ATE
#WFLAGS += -DSINGLE_ADHOC_LINKUP 
#CFLAGS += -DDBG
CFLAGS+= $(WFLAGS)


obj-m := rt61.o

rt61-objs := rtmp_main.o mlme.o connect.o sync.o assoc.o auth.o auth_rsp.o rtmp_data.o rtmp_init.o sanity.o rtmp_wep.o rtmp_info.o eeprom.o rtmp_tkip.o wpa.o md5.o


all: 
	make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules
clean:
	rm -f *.o *~ .*.cmd *.ko *.mod.c
	
#make command :   make -C path/to/src SUBDIRS=$PWD modules
#example :        make -C /usr/src/linux-2.6.3-4mdk SUBDIRS=$PWD modules

