- Timestamp:
- Sep 6, 2007, 6:30:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r48 r53 2 2 # $Id$ 3 3 # 4 # [ 4 # [ Description ] 5 5 # 6 6 # Makefile … … 14 14 DIR_LOG = log 15 15 16 #-----[ 16 #-----[ Variables ]---------------------------------------- 17 17 CFG_FILE_EXTENSION = cfg 18 18 CFG_FILE_DEBUG = debug.$(CFG_FILE_EXTENSION) … … 25 25 EXEC = soft 26 26 27 #-----[ 27 #-----[ Rules ]-------------------------------------------- 28 28 .PRECIOUS : $(DIR_BIN)/%.x $(DIR_LOG)/%.exec.log 29 29 .NOPARALLEL : clean clean_all help … … 112 112 done; 113 113 114 $(DIR_LOG)/%.exec.log : $(DIR_CFG_GEN)/%.cfg $(DIR_BIN)/$(EXEC).x 114 $(DIR_LOG)/%.exec.log : $(DIR_CFG_GEN)/%.cfg $(DIR_BIN)/$(EXEC).x 115 @\ 116 $(ECHO) "Execute : $*";\ 117 $(EXPORT) SYSTEMC=$(SYSTEMC_$(SIMULATOR)) ; ./$(DIR_BIN)/$(EXEC).x $(EXEC_PARAMS) $* `$(CAT) $<` &> $@ 118 declare -i count=`$(GREP) -ch "Test OK" $@`; \ 119 if $(TEST) $$count -ne 0; \ 120 then echo " $* ... OK"; \ 121 else echo " $* ... KO"; exit 1; \ 122 fi; 123 124 $(DIR_LOG)/%.exec.log : $(DIR_CFG_USER)/%.cfg $(DIR_BIN)/$(EXEC).x 115 125 @\ 116 126 $(ECHO) "Execute : $*";\ … … 155 165 selftest_help : 156 166 @\ 157 $(ECHO) " -----[ 167 $(ECHO) " -----[ Selftest ]-----------------------------------";\ 158 168 $(ECHO) "";\ 159 169 $(ECHO) " * all_selftest : compile all c++ file and execute";\
Note: See TracChangeset
for help on using the changeset viewer.