- Timestamp:
- Oct 13, 2010, 8:15:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r137 r145 8 8 9 9 #-----[ Directory ]---------------------------------------- 10 DIR_BIN = $(DIR_TMP)/bin 11 DIR_CFG_GEN = $(DIR_TMP)/configuration_generated 10 DIR_BIN = $(DIR_TMP)/bin/$(ENTITY) 11 DIR_CFG_GEN = $(DIR_TMP)/configuration_generated/$(ENTITY) 12 12 DIR_CFG_USER = configuration 13 13 DIR_LOG = log 14 14 15 15 #-----[ Variables ]---------------------------------------- 16 CFG_FILE_EXTENSION = cfg 17 CFG_FILE_DEBUG = debug.$(CFG_FILE_EXTENSION) 16 CFG_FILE_PATH = $(DIR_CFG_USER) 17 CFG_FILE_EXTENSION = gen 18 CFG_FILE_DEBUG = $(CFG_FILE_PATH)/debug.$(CFG_FILE_EXTENSION) 18 19 19 20 OBJECTS = $(OBJECTS_COMMON) 20 21 21 22 LIBS = -lm $(SYSTEMC_LIBNAME_$(SIMULATOR_SYSTEMC)) 22 # $(OR1K_LIBNAME) -lbfd23 23 24 24 MODELTECH_LIBRARY = $(addprefix -lib ,$(addsuffix .a, $(subst -l,$(DIR_LIB)/lib,$(LIBRARY)))) … … 29 29 EXEC_PARAMS = $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR_SYSTEMC)) 30 30 EXEC_LOG = $(patsubst $(DIR_CFG_GEN)/%.cfg,$(DIR_LOG)/%.exec.log,$(wildcard $(DIR_CFG_GEN)/*.cfg)) \ 31 $(patsubst $(DIR_CFG_USER)/%.cfg,$(DIR_LOG)/%.exec.log,$(wildcard $(DIR_CFG_ USER)/*.cfg))31 $(patsubst $(DIR_CFG_USER)/%.cfg,$(DIR_LOG)/%.exec.log,$(wildcard $(DIR_CFG_GEN)/*.cfg)) 32 32 BIN = Selftest.x 33 33 EXEC = $(DIR_BIN)/$(BIN) … … 37 37 #.NOTPARALLEL : clean clean_all help 38 38 39 vpath %.cfg $(DIR_CFG_USER):$(DIR_CFG_GEN)40 39 vpath %.x $(DIR_BIN) 41 40 … … 47 46 execute_only : 48 47 @\ 49 $(MAKE) $(EXEC_LOG);\48 $(MAKE) $(EXEC_LOG);\ 50 49 declare -i all_ok=1; \ 51 50 for i in $(EXEC_LOG); do \ … … 86 85 files=$(CFG_FILE_DEBUG); \ 87 86 else \ 88 files=$$($(LS) *.$(CFG_FILE_EXTENSION) ); \87 files=$$($(LS) $(CFG_FILE_PATH)/*.$(CFG_FILE_EXTENSION) ); \ 89 88 fi; \ 90 89 \ … … 172 171 done; 173 172 174 $(DIR_LOG)/%.exec.log : %.cfg $(EXEC)173 $(DIR_LOG)/%.exec.log : $(DIR_CFG_GEN)/%.cfg $(EXEC) 175 174 @\ 176 175 $(ECHO) "Execute : $*";\ … … 218 217 esac; 219 218 220 $(DIR_BIN) $(DIR_LOG) $(DIR_CFG_GEN):219 $(DIR_BIN) $(DIR_LOG) : 221 220 @\ 222 221 $(ECHO) "Create directory : $@";\ 223 $(MKDIR) $@; 222 $(MKDIR) $@;\ 223 224 $(DIR_CFG_GEN) : 225 @\ 226 $(ECHO) "Create directory : $@";\ 227 $(MKDIR) $@;\ 228 $(LS) $(DIR_CFG_USER)/*.cfg &> /dev/null; \ 229 if $(TEST) $$? -eq 0; then \ 230 $(CP) $(DIR_CFG_USER)/*.cfg $@; \ 231 fi; 224 232 225 233 selftest_clean : local_clean config_clean
Note: See TracChangeset
for help on using the changeset viewer.