Changeset 88 for trunk/IPs/systemC/Environment/Makefile.Environment
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Makefile.Environment
r85 r88 1 include $(MORPHEO_TOPLEVEL)/Makefile.tools 2 include $(MORPHEO_TOPLEVEL)/IPs/systemC/processor/Morpheo/Behavioural/Makefile.flags 1 ifeq ($(origin MORPHEO_TOPLEVEL), undefined) 2 $(error "variable MORPHEO_TOPLEVEL is undefined"); 3 else 4 include $(MORPHEO_TOPLEVEL)/Makefile.tools 5 include $(MORPHEO_TOPLEVEL)/Makefile.flags 6 endif 3 7 4 8 #-----[ Directory ]---------------------------------------- 5 DIR_TST = selftest 6 DIR_INC = include 7 DIR_SRC = src 8 DIR_OBJ = obj 9 DIR_BIN = bin 9 ENTITY ?= Environment 10 11 DIR_TMP = $(MORPHEO_TMP)/$(ENTITY) 12 DIR_TST = ./selftest 13 DIR_INC = ./include 14 DIR_SRC = ./src 15 DIR_OBJ = ./obj 16 DIR_BIN = $(DIR_TMP)/bin 10 17 11 18 #-----[ Compilation ]-------------------------------------- … … 16 23 LIBDIR = $(SYSTEMC_LIBDIR_$(SIMULATOR)) 17 24 18 LIBNAME = $(SYSTEMC_LIBNAME_$(SIMULATOR)) \ 19 -lbfd 25 LIBNAME = -lbfd \ 26 -liberty \ 27 $(SYSTEMC_LIBNAME_$(SIMULATOR)) 20 28 21 29 FLAGS = $(SYSTEMC_CFLAGS_$(SIMULATOR)) … … 26 34 27 35 #-----[ Variable ]----------------------------------------- 28 29 ENTITY = `$(BASENAME) $$PWD`30 36 31 37 OBJECTS = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp)) \ … … 42 48 #-----[ Rules ]-------------------------------------------- 43 49 50 vpath %.h $(DIR_INC) 51 vpath %.c $(DIR_SRC) 52 vpath %.cpp $(DIR_SRC):$(DIR_TST) 53 vpath %.o $(DIR_OBJ) 54 44 55 .PRECIOUS : $(DIR_OBJ)/%.o $(DIR_BIN)/%.x 45 56 … … 48 59 $(ECHO) "-------------------| $(ENTITY)" 49 60 50 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.cpp $(HEADERS)61 $(DIR_OBJ)/%.o : %.cpp $(HEADERS) 51 62 @\ 52 63 $(ECHO) "Compilation : $*";\ 53 64 $(CXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<; 54 65 55 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.c $(HEADERS)66 $(DIR_OBJ)/%.o : %.c $(HEADERS) 56 67 @\ 57 68 $(ECHO) "Compilation : $*";\ 58 69 $(CC) $(MORPHEO_CC_FLAGS) -c -o $@ $<; 59 60 $(DIR_OBJ)/%.o : $(DIR_TST)/%.cpp $(HEADERS)61 @\62 $(ECHO) "Compilation : $*";\63 $(CXX) $(MORPHEO_CXX_FLAGS) -c -o $@ $<;64 70 65 71 $(DIR_BIN)/%.x : $(OBJECTS_DEPS) $(OBJECTS) $(OBJECTS_BIN) … … 79 85 80 86 81 exe : all 87 exe : all $(DIR_BIN) 82 88 @\ 83 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) ./$(EXE) $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR)) 89 $(MAKE) $(EXE); \ 90 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; $(EXEC_PREFIX) $(EXE) $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR)) 84 91 85 92 86 all_environment : test_env $(DIR_OBJ) $(DIR_BIN)93 all_environment : test_env $(DIR_OBJ) 87 94 @\ 88 $(MAKE) $( EXE)95 $(MAKE) $(OBJECTS_DEPS) $(OBJECTS) $(OBJECTS_BIN) 89 96 90 97 environment_clean : … … 104 111 $(ECHO) " -----[ Environment ]------------------------------";\ 105 112 $(ECHO) "";\ 106 $(ECHO) " * test_env : test if environnment's variable is set";\ 107 $(ECHO) " * all_environment : generate object";\ 113 $(ECHO) " * exe : execute testbench";\ 114 $(ECHO) " * test_env : test if environnment's variable is set";\ 115 $(ECHO) " * all_environment : generate object";\ 108 116 $(ECHO) "";
Note: See TracChangeset
for help on using the changeset viewer.