######################################################################
#
#	$Id: Makefile,v 1.1 2007/08/08 13:50:15 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/usb_magstripe/src

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

