#----------------------------------------------------------
#-----[ Unix Commands ]------------------------------------
#----------------------------------------------------------

ECHO					= echo
EXPORT					= export
EXIT					= exit
MKDIR					= mkdir -p
TEST					= test
READ					= read
DATE					= date +%Y%m%d-%H%M%S
CD					= cd
CP					= cp
CAT					= cat
LS					= ls
LINK_SYMBOLIC				= ln -s
RM					= rm -fr
PWD					= `pwd`
MAKE					= make -s
AR					= ar -v
RANLIB					= ranlib
BASENAME				= basename
GREP					= grep
GREP_NOT				= egrep -v
TR					= tr
UPPERtoLOWER				= $(TR) [:lower:] [:upper:]
CXX					= export LANG=C; g++
SED					= sed
TOUCH					= touch
VALGRIND				= valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --leak-resolution=high
# Commands to generate all documents
FIG2EPS					= fig2dev -L eps
EPS2PNG					= convert -quality 0
LATEX     				= latex
BIBTEX    				= bibtex
MAKEINDEX 				= makeindex
DVIPS					= dvips -Ppdf
PS2PDF					= ps2pdf
GNUPLOT					= gnuplot
# Commands to view the document
VIEWDVI					= xdvi
VIEWPS 					= gv  
VIEWPDF					= xpdf
VIEWPDF_FS				= xpdf -fullscreen
#VIEWPDF_FS				= acroread

#----------------------------------------------------------
#-----[ tools ]--------------------------------------------
#----------------------------------------------------------

include $(MORPHEO_TOPLEVEL)/Makefile.tools_path

#-----[ soclib ]-------------------------------------------
SOCLIB_INCDIR				= -I$(SOCLIB)/include
SOCLIB_LIBDIR				= -L$(SOCLIB)/lib
SOCLIB_LIBNAME				= -lsoclib
SOCLIB_BIN				= $(SOCLIB)/tools/bin-linux/

#-----[ systemc ]------------------------------------------
SYSTEMC_INCDIR_systemc			= -I$(SYSTEMC_systemc)/include
SYSTEMC_LIBDIR_systemc			= -L$(SYSTEMC_systemc)/lib-linux
SYSTEMC_LIBNAME_systemc			= -lsystemc
SYSTEMC_CFLAGS_systemc			=
SYSTEMC_EXEC_PARAMS_systemc		=

#-----[ systemcass ]---------------------------------------
SYSTEMC_INCDIR_systemcass		= -I$(SYSTEMC_systemcass)/include
SYSTEMC_INCDIR_systemcass_deps		= $(SYSTEMC_INCDIR_systemcass)
					
SYSTEMC_LIBDIR_systemcass		= -L$(SYSTEMC_systemcass)/lib
SYSTEMC_LIBDIR_systemcass_deps		= $(SYSTEMC_LIBDIR_systemcass)

SYSTEMC_LIBNAME_systemcass		= -lsystemc_g++
SYSTEMC_LIBNAME_systemcass_deps		= $(SYSTEMC_LIBNAME_systemcass)

SYSTEMC_CFLAGS_systemcass		= -rdynamic -ansi -Wno-long-long
SYSTEMC_CFLAGS_systemcass_deps		= $(SYSTEMC_CFLAGS_systemcass)

SYSTEMC_EXEC_PARAMS_systemcass		= --nobanner
SYSTEMC_EXEC_PARAMS_systemcass_deps	= $(SYSTEMC_EXEC_PARAMS_systemcass) --p
	
#-----[ xilinx ]-------------------------------------------
XILINX_ENV				= source $(XILINX)/settings.sh

#-----[ Modeltech ]----------------------------------------
MODELTECH_ENV				= export LM_LICENSE_FILE=$(MODELTECH_LICENCE)
MODELTECH_BIN				= $(MODELTECH)/bin
MODELTECH_VLIB				= $(MODELTECH_ENV); $(MODELTECH_BIN)/vlib
MODELTECH_VCOM				= $(MODELTECH_ENV); $(MODELTECH_BIN)/vcom
MODELTECH_VSIM				= $(MODELTECH_ENV); $(MODELTECH_BIN)/vsim -c -do "run -all; quit"

#-----[ or1k ]---------------------------------------------
OR1K_INCDIR				= -I$(OR1K)/include
OR1K_LIBDIR				= -L$(OR1K)/lib
OR1K_LIBNAME				= -liberty
OR1K_BIN				= $(OR1K)/bin

#-----[ newlib ]-------------------------------------------

#-----[ qt ]-----------------------------------------------
QT_BIN					= $(QT)/bin
QT_INCDIR				= $(QT)/include
QT_LIBDIR				= $(QT)/lib
QT_LIBNAME				=
