#################################################################################
 # Ralink Technology, Inc.	                                         	#
 # 4F, No. 2 Technology 5th Rd.                                          	#
 # Science-based Industrial Park                                         	#
 # Hsin-chu, Taiwan, R.O.C.                                              	#
 #                                                                       	#
 # (c) Copyright 2005, Ralink Technology, Inc.                           	#
 #                                                                       	#
 # All rights reserved. Ralink's source code is an unpublished work and the	#
 # use of a copyright notice does not imply otherwise. This source code		#
 # contains confidential trade secret material of Ralink Tech. Any attempt	#
 # or participation in deciphering, decoding, reverse engineering or in any	#
 # way altering the source code is stricitly prohibited, unless the prior	#
 # written consent of Ralink Technology, Inc. is obtained.			#
#################################################################################


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

obj-m := rt61ap.o

rt61ap-objs :=	rtmp_main.o	\
				mlme.o		\
				connect.o	\
				sync.o 		\
				assoc.o		\
				rtmp_task.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		\
				soft_ap.o       \
                                dls.o   
all: 
	make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules
clean:
	rm -f *.o *~ .*.cmd *.ko *.mod.c
	
