
#Enable for wpa_supplicant's spcific driver "driver_ralink.c", default enabled.
HAS_RALINK_WPA_SUPPLICANT_SUPPORT=y

#Enable for wpa_supplicant's generic driver "driver_wext.c", used for NetworkManager
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

WFLAGS :=
ifeq ($(HAS_RALINK_WPA_SUPPLICANT_SUPPORT),y)
WFLAGS += -DRALINK_WPA_SUPPLICANT_SUPPORT
endif

ifeq ($(HAS_NATIVE_WPA_SUPPLICANT_SUPPORT),y)
WFLAGS += -DNATIVE_WPA_SUPPLICANT_SUPPORT
endif
#ifdef WSC_SUPPORT
# Support WSC function
HAS_WSC=y

ifeq ($(HAS_WSC),y)
WFLAGS += -DWSC_SUPPORT
endif

##WFLAGS += -DBLOCK_NET_IF 

##WFLAGS += -DDBG
##WFLAGS += -DRALINK_ATE

WFLAGS += -DWMM_SUPPORT

EXTRA_CFLAGS += $(WFLAGS)

SUB_DIRS     := 
MOD_SUB_DIRS := $(SUB_DIRS)
ALL_SUB_DIRS := $(SUB_DIRS)


OBJS      = rtmp_main.o mlme.o connect.o rtusb_bulk.o rtusb_io.o sync.o assoc.o \
			auth.o auth_rsp.o rtusb_data.o rtmp_init.o  sanity.o rtmp_wep.o \
			rtmp_info.o rtmp_tkip.o wpa.o md5.o 
## netif_block.o
ifeq ($(HAS_NATIVE_WPA_SUPPLICANT_SUPPORT),y)
OBJS += rtmp_wext.o
endif
#ifdef WSC_SUPPORT
ifeq ($(HAS_WSC),y)
OBJS +=	wsc.o	\
	sha2.o	\
	hmac.o	\
	evp_enc.o	\
	dh_key.o
endif
#endif // WSC_SUPPORT //
#---------------------------------------------------------------------
# Kernel makefile rules. They should work with both old style makefiles
# for 2.0.x and 2.2.x, and with the new style makefiles from 2.4.x
#---------------------------------------------------------------------
O_TARGET := rt73.o

# For 2.4.x
obj-$(CONFIG_USB_RT73) += $(OBJS)
include $(TOPDIR)/Rules.make

