Line 24... |
Line 24... |
# suitable for processing with Doxygen.
|
# suitable for processing with Doxygen.
|
|
|
# Tools and flags
|
# Tools and flags
|
ARFLAGS = rcs
|
ARFLAGS = rcs
|
#CXXFLAGS += $(OPT_FAST) $(OPT_SLOW) $(OPT) $(PROF_FLAGS)
|
#CXXFLAGS += $(OPT_FAST) $(OPT_SLOW) $(OPT) $(PROF_FLAGS)
|
|
|
|
ifdef VLT_CPPFLAGS
|
|
CXXFLAGS += $(VLT_CPPFLAGS)
|
|
endif
|
|
|
CXX ?= g++
|
CXX ?= g++
|
PROF_OPTS ?= -fbranch-probabilities -fvpt -funroll-loops -fpeel-loops -ftracer
|
#PROF_OPTS ?= -fbranch-probabilities -fvpt -funroll-loops -fpeel-loops -ftracer -O3
|
OPT_ALL ?= $(OPT_SLOW) $(OPT_FAST) $(OPT)
|
OPT_ALL ?= $(OPT_SLOW) $(OPT_FAST) $(OPT)
|
|
|
# Sub-directories
|
# Sub-directories
|
SYSC_INC_DIR = ../include
|
SYSC_INC_DIR = ../include
|
INCDIRS = -I$(SYSTEMC)/include -I$(SYSC_INC_DIR)
|
INCDIRS = -I$(SYSTEMC)/include -I$(SYSC_INC_DIR)
|
Line 38... |
Line 43... |
OBJS = Or1200MonitorSC.o \
|
OBJS = Or1200MonitorSC.o \
|
ResetSC.o \
|
ResetSC.o \
|
UartSC.o
|
UartSC.o
|
LIB = libmodules.a
|
LIB = libmodules.a
|
|
|
|
ifdef VLT_DEBUG
|
|
CXXFLAGS += -g
|
|
endif
|
|
|
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
# Rule to make dependency files
|
# Rule to make dependency files
|
%.d: %.cpp
|
%.d: %.cpp
|
@set -e; rm -f $@; \
|
@set -e; rm -f $@; \
|
$(CXX) -MM $(CPPFLAGS) $(INCDIRS) $< > $@.$$$$; \
|
$(CXX) -MM $(CPPFLAGS) $(INCDIRS) $< > $@.$$$$; \
|
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
|
rm -f $@.$$$$
|
rm -f $@.$$$$
|
|
|
# Rule to make object files
|
# Rule to make object files
|
%.o: %.cpp
|
%.o: %.cpp
|
$(CXX) $(CPPFLAGS) $(INCDIRS) $(CXXFLAGS) -c $<
|
$(CXX) $(CPPFLAGS) $(PROF_OPTS) $(INCDIRS) $(CXXFLAGS) -c $<
|
|
|
|
|
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
# Make the library
|
# Make the library
|
$(LIB): $(OBJS)
|
$(LIB): $(OBJS)
|