######################################################################
#
#	$Id: Makefile,v 1.2 2007/05/18 11:20:06 pkrawitz 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/hub

#
# The name and path of the library to be built.
#
ifeq ($(DEBUG), on)
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libusbhubdbg.a
else
LOCAL_LIB = $(BASEDIR)/$(LIBDIR)/libusbhub.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

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

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

MY_DEFINES=

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

#
# List of assembly object files.
#
S_OBJ=	

-include $(BASEDIR)/Makefile.bld

