# 
# $Id: Makefile 124 2009-06-17 12:11:25Z 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			= $(NEWLIB)/lib/

INCDIR 				= $(NEWLIB_INCDIR) -I$(DIR_INC)
LIBDIR				= $(NEWLIB_LIBDIR)
LIBNAME				= $(NEWLIB_LIBNAME)

MIBENCH_DATA_PATH		= $(MORPHEO_TOPLEVEL)/Softwares/MiBench/data

FLAGS				= -DMIBENCH_DATA_PATH=\"$(MIBENCH_DATA_PATH)\" -DNB_THREAD_MAX=$(NB_THREAD_MAX)

#-----[ Files ]-------------------------------------------------------------------
OBJECTS				= 	$(NEWLIB)/lib/*.o \
					$(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
include				$(DIR_SOFT)/Makefile.Workload

