# 
# $Id: Makefile 137 2010-02-16 12:35:48Z rosiere $
# 
# [ Description ]
# 
# Makefile
# 

include				Makefile.defs

# common definition
DIR_SOFT			= ..

DIR_SRC				= ./src
DIR_C				= $(DIR_SRC)/c
DIR_ASM				= $(DIR_SRC)/asm
DIR_SYS				= $(DIR_SRC)/sys
DIR_INC		       		= $(DIR_SRC)/include
DIR_LDSCRIPT			= $($(OS)_DIR_LDSCRIPT)

INCDIR 				= $($(OS)_INCDIR) -I$(DIR_INC)
LIBDIR				= $($(OS)_LIBDIR)
LIBNAME				= $($(OS)_LIBNAME)

FLAGS				= -DDHRYSTONE_NB_RUNS=$(DHRYSTONE_NB_RUNS)

#-----[ Files ]-------------------------------------------------------------------
OBJECTS				= 	$($(OS)_OBJECTS) \
					$(patsubst $(DIR_ASM)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_ASM)/*.s))	\
					$(patsubst $(DIR_SYS)/%.s,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SYS)/*.s))	\
					$(patsubst $(DIR_C)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_C)/*.c))

include				$(DIR_SOFT)/Makefile.Software

