- Timestamp:
- May 16, 2009, 4:42:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r115 r117 19 19 OBJECTS = $(OBJECTS_COMMON) 20 20 21 LIBS = -lm $(SYSTEMC_LIBNAME_$(SIMULATOR ))21 LIBS = -lm $(SYSTEMC_LIBNAME_$(SIMULATOR_SYSTEMC)) 22 22 # $(OR1K_LIBNAME) -lbfd 23 23 … … 27 27 EXEC_PREFIX = 28 28 #$(VALGRIND) 29 EXEC_PARAMS = $(SYSTEMC_EXEC_PARAMS_$(SIMULATOR ))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 31 $(patsubst $(DIR_CFG_USER)/%.cfg,$(DIR_LOG)/%.exec.log,$(wildcard $(DIR_CFG_USER)/*.cfg)) … … 35 35 .PRECIOUS : $(DIR_BIN)/%.x $(DIR_LOG)/%.exec.log 36 36 #.NOTPARALLEL : clean clean_all help 37 38 vpath %.cfg $(DIR_CFG_USER):$(DIR_CFG_GEN) 39 vpath %.x $(DIR_BIN) 37 40 38 41 all_selftest : test_env $(DIR_OBJ) $(DIR_BIN) $(DIR_LOG) … … 168 171 done; 169 172 170 $(DIR_LOG)/%.exec.log : $(DIR_CFG_GEN)/%.cfg $(DIR_BIN)/$(EXEC).x173 $(DIR_LOG)/%.exec.log : %.cfg $(EXEC).x 171 174 @\ 172 175 $(ECHO) "Execute : $*";\ 173 export SYSTEMC=$(SYSTEMC_$(SIMULATOR )); $(EXEC_PREFIX) $(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \176 export SYSTEMC=$(SYSTEMC_$(SIMULATOR_SYSTEMC)); $(EXEC_PREFIX) $(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \ 174 177 declare timing=`$(GREP) -h "Timing" $@`; \ 175 178 $(GREP) -q "Timing" $@; \ … … 189 192 fi; 190 193 191 $(DIR_LOG)/%.exec.log : $(DIR_CFG_USER)/%.cfg $(DIR_BIN)/$(EXEC).x192 @\193 $(ECHO) "Execute : $*";\194 export SYSTEMC=$(SYSTEMC_$(SIMULATOR)); $(EXEC_PREFIX) $(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@; \195 declare timing=`$(GREP) -h "Timing" $@`; \196 $(GREP) -q "Timing" $@; \197 declare -i test_timing=$$?; \198 $(GREP) -q "Test OK" $@; \199 declare -i test_ok=$$?; \200 $(GREP) -q "Test KO" $@; \201 declare -i test_ko=$$?; \202 if $(TEST) $$test_ko -ne 0 -a $$test_ok -eq 0 -a $$test_timing -eq 0; \203 then $(ECHO) -e " $* ... OK\t$$timing";\204 else $(ECHO) " $* ... KO"; \205 fi;206 207 194 $(DIR_BIN)/%.x : $(SOURCES) $(HEADERS) $(DIR_OBJ) $(DIR_BIN) 208 195 @\ 209 196 $(ECHO) "Linkage : $*";\ 210 case "${SIMULATOR }" in \197 case "${SIMULATOR_SYSTEMC}" in \ 211 198 "modelsim") \ 212 199 $(MAKE) vhdl_package; \ … … 226 213 *) \ 227 214 $(MAKE) $(OBJECTS); \ 228 $(SYSTEMC_CXX_$(SIMULATOR )) $(LFLAGS) -o $@ $(OBJECTS) $(LIBRARY) $(LIBS);\215 $(SYSTEMC_CXX_$(SIMULATOR_SYSTEMC)) $(LFLAGS) -o $@ $(OBJECTS) $(LIBRARY) $(LIBS);\ 229 216 ;; \ 230 217 esac;
Note: See TracChangeset
for help on using the changeset viewer.