######################################################################
#
#	$Id: Makefile,v 1.7 2007/05/18 11:18:02 pkrawitz Exp $
#
#    Makefile used to build serial flash library.
#
######################################################################

# 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/sflash

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


#
# Search path for source header files, specific to this library
#
INCDIRS += -I./../../h -I./../../h/threadx -I./../../h/tcpip -I ./../../src/bsp/platforms/$(PLATFORM)  -I ./../../src/bsp/customize 

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

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

#
# List of assembly object files.
#
S_OBJ=

#
# Any extra compilier flags.
#
ifneq ($(TOOLSET), arm)
MY_CFLAGS =-Os
endif

#
# Any extra defines go here
#
MY_DEFINES =

MY_AFLAGS =

-include $(BASEDIR)/Makefile.bld


