######################################################################
#
#	$Id: Makefile,v 1.10 2007/03/01 21:57:21 pkrawitz Exp $
#
#    Makefile used to build 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/flash

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


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

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

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

#
# List of assembly object files.
#
S_OBJ= $(OBJS)/LWRWord.o

#
# Any extra compilier flags.
#
ifeq '$(TOOLSET)' 'arm'
MY_CFLAGS =-Ospace
else
MY_CFLAGS =-Os
endif

#
# Any extra defines go here
#
MY_DEFINES =

MY_AFLAGS =

-include $(BASEDIR)/Makefile.bld


