######################################################################
#
#	$Id: Makefile,v 1.6 2009/10/16 13:36:18 lzhen Exp $
#
#    Makefile used to build USB Mass Storage driver.
#
######################################################################

# Root directory for netos.
BASEDIR=../../..

# Include the parent makefile.
all: localall
-include $(BASEDIR)/Makefile.inc

# This is called to clean things up.
localclean: clean_my_objs

component_clobber: clean_my_libs


# Location of object files.
OBJS = ./objs/$(PROCESSOR)/$(ENDIANDIR)/$(TOOLSET)

#
# The list of source directories.
#
SRCDIR=$(BASEDIR)/src/usb_host_drivers/WiFi_USB

#
# The name and path of the library to be built.
#
ifeq ($(DEBUG), on)
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libusbwifidbg.a
else
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libusbwifi.a
endif


#
# Search path for source header files, specific to this library
#
INCDIRS += -I./ -I./../../../h -I./../../../h/threadx -I./../../bsp/platforms/$(PLATFORM)
INCDIRS += -I./../../../h/tcpip -I./../../../h/arm9 -I./../../../h/usb_host
INCDIRS += -I./../../bsp/devices/common/wifimac/include

#
# List of C object files for this library.
#
C_OBJ=$(OBJS)/WiFi_USB.o

#
# List of C++ object files.
#
CC_OBJ=

MY_DEFINES= -DUSB_WIFI_ENABLED=1

ifneq ($(TOOLSET), arm)
MY_CFLAGS= -fno-strict-aliasing
endif

#
# List of assembly object files.
#
S_OBJ=	

-include $(BASEDIR)/Makefile.bld

