Changeset 81 for trunk/IPs/systemC/Environment/Makefile.Environment
- Timestamp:
- Apr 15, 2008, 8:40:01 PM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Makefile.Environment
-
Property
svn:keywords
set to
Id
r80 r81 1 1 include $(MORPHEO_TOPLEVEL)/Makefile.tools 2 include $(MORPHEO_IPS)/processor/Morpheo/Behavioural/Makefile.flags 2 3 3 4 #-----[ Directory ]---------------------------------------- … … 10 11 #-----[ Compilation ]-------------------------------------- 11 12 INCDIR = $(SYSTEMC_INCDIR_$(SIMULATOR)) \ 12 -I$(DIR_INC) 13 -I$(DIR_INC) \ 14 -I../processor/Morpheo 13 15 14 LIBDIR = 16 LIBDIR = $(SYSTEMC_LIBDIR_$(SIMULATOR)) 15 17 16 FLAGS = $(SYSTEMC_CFLAGS_$(SIMULATOR))\17 $(CXX_FLAGS)18 LIBNAME = $(SYSTEMC_LIBNAME_$(SIMULATOR)) \ 19 -lbfd 18 20 19 CFLAGS = $(MORPHEO_FLAGS) $(FLAGS) $(INCDIR) 20 LFLAGS = $(MORPHEO_FLAGS) $(FLAGS) $(LIBDIR) 21 FLAGS = $(SYSTEMC_CFLAGS_$(SIMULATOR)) 22 23 MORPHEO_CC_FLAGS = $(MORPHEO_FLAGS) $(CC_FLAGS) $(INCDIR) 24 MORPHEO_CXX_FLAGS = $(MORPHEO_FLAGS) $(CXX_FLAGS) $(FLAGS) $(INCDIR) 25 MORPHEO_L_FLAGS = $(MORPHEO_FLAGS) $(CXX_FLAGS) $(FLAGS) $(LIBDIR) 21 26 22 27 #-----[ Variable ]----------------------------------------- … … 24 29 ENTITY = `$(BASENAME) $$PWD` 25 30 26 OBJECTS = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp)) 31 OBJECTS = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp)) \ 32 $(patsubst $(DIR_SRC)/%.c,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.c)) 27 33 OBJECTS_BIN = $(patsubst $(DIR_TST)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_TST)/*.cpp)) 28 34 … … 31 37 EXE = $(DIR_BIN)/soft.x 32 38 39 EXEC_PREFIX = 40 #$(VALGRIND) 41 33 42 #-----[ Rules ]-------------------------------------------- 34 43 … … 36 45 37 46 test_env : 38 @$(ECHO) "-------------------[ $(ENTITY) ]" 47 @\ 48 $(ECHO) "-------------------| $(ENTITY)" 39 49 40 50 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.cpp $(HEADERS) 41 51 @\ 42 52 $(ECHO) "Compilation : $*";\ 43 $(CXX) $(CFLAGS) -c -o $@ $<; 53 $(DISTCXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<; 54 55 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.c $(HEADERS) 56 @\ 57 $(ECHO) "Compilation : $*";\ 58 $(DISTCC) $(MORPHEO_CC_FLAGS) -c -o $@ $<; 44 59 45 60 $(DIR_OBJ)/%.o : $(DIR_TST)/%.cpp $(HEADERS) 46 61 @\ 47 62 $(ECHO) "Compilation : $*";\ 48 $( CXX) $(CFLAGS) -c -o $@ $<;63 $(DISTCXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<; 49 64 50 65 $(DIR_BIN)/%.x : $(OBJECTS_DEPS) $(OBJECTS) $(OBJECTS_BIN) 51 66 \ 52 67 $(ECHO) "Compilation : $*";\ 53 $(CXX) $( LFLAGS) -o $@ $^;68 $(CXX) $(MORPHEO_L_FLAGS) -o $@ $^ $(LIBNAME); 54 69 55 70 $(DIR_OBJ) : … … 64 79 65 80 66 exe : all _environment81 exe : all 67 82 @\ 68 $(VALGRIND) ./$(EXE)83 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(EXE) $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR)) 69 84 70 all_environment : test_env $(DIR_OBJ) $(DIR_BIN) 85 86 all_environment : test_env $(DIR_OBJ) $(DIR_BIN) 71 87 @\ 72 88 $(MAKE) $(EXE) … … 80 96 $(DIR_TST)/*~ \ 81 97 $(DIR_SRC)/*~ \ 82 $(DIR_INC)/*~; 98 $(DIR_INC)/*~ \ 99 *.dot \ 100 *.txt; 83 101 84 102 environment_help : -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.