Changeset 108 for trunk/Platforms/Test
- Timestamp:
- Feb 12, 2009, 12:55:06 PM (16 years ago)
- Location:
- trunk/Platforms/Test
- Files:
-
- 6 added
- 1 edited
- 65 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platforms/Test/Makefile
r101 r108 36 36 DIR_BIN = $(DIR_TMP)/bin 37 37 DIR_LOG = $(DIR_TMP)/log 38 DIR_DATA = ./data 38 DIR_DATA_TEST = ./data_test 39 DIR_DATA_BENCH = ./data_bench 39 40 DIR_SOFT = $(MORPHEO_TOPLEVEL)/Softwares 40 41 … … 57 58 58 59 OBJECTS = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp)) 59 LOGS = $(patsubst $(DIR_DATA)/%.cfg,$(DIR_LOG)/%.log,$(wildcard $(DIR_DATA)/*.cfg)) 60 DEBUG_CFG = $(DIR_DATA)/debug.cfg 60 LOGS = $(patsubst $(DIR_DATA_TEST)/%.cfg,$(DIR_LOG)/%.log,$(wildcard $(DIR_DATA_TEST)/*.cfg)) 61 BENCHS = $(patsubst $(DIR_DATA_BENCH)/%.cfg,$(DIR_LOG)/%.log,$(wildcard $(DIR_DATA_BENCH)/*.cfg)) 62 DEBUG_CFG = $(DIR_DATA_TEST)/debug.cfg 61 63 DEBUG_LOG = $(DIR_LOG)/debug.log 62 64 … … 93 95 vpath %.cpp $(DIR_SRC) 94 96 vpath %.o $(DIR_OBJ) 95 vpath %.cfg $(DIR_DATA )97 vpath %.cfg $(DIR_DATA_TEST) $(DIR_DATA_BENCH) 96 98 97 99 .PRECIOUS : $(DIR_OBJ)/%.o $(DIR_BIN)/%.x $(DIR_LOG)/%.log … … 106 108 $(CXX) $(PLATFORMS_L_FLAGS) -o $@ $^ $(LIBNAME); 107 109 108 run: $(DIR_LOG) all110 test : $(DIR_LOG) all 109 111 @\ 110 112 declare logs; \ … … 132 134 fi; 133 135 134 execute : run 136 bench : $(DIR_LOG) all 137 @\ 138 declare logs="$(BENCHS)"; \ 139 $(MAKE) $$logs; 140 141 execute : bench 135 142 136 143 $(DIR_LOG)/%.log : %.cfg … … 190 197 @\ 191 198 $(ECHO) "Delete temporary files in directory $(PWD)";\ 192 $(RM) *~ $(DIR_SRC)/*~ $(DIR_INC)/*~ $(DIR_DATA )/*~ *core* tty* *.vhdl *.log *.stat *.pos\199 $(RM) *~ $(DIR_SRC)/*~ $(DIR_INC)/*~ $(DIR_DATA_TEST)/*~ $(DIR_DATA_BENCH)/*~ *core* tty* *.vhdl *.log *.stat *.pos\ 193 200 $(DIR_OBJ) $(DIR_BIN) $(DIR_LOG); 194 201 … … 206 213 $(ECHO) "";\ 207 214 $(ECHO) " * all (default rules) : create software";\ 208 $(ECHO) " * run : execute platforms";\ 215 $(ECHO) " * test : execute platforms with test configuration";\ 216 $(ECHO) " * bench : execute platforms with bench configuration";\ 209 217 $(ECHO) " * lib : make library";\ 210 218 $(ECHO) " * soft : make software";\ 211 $(ECHO) " * execute : cf 'make run'";\219 $(ECHO) " * execute : cf 'make bench'";\ 212 220 $(ECHO) " * clean : erase temporary files";\ 213 221 $(ECHO) " * clean_all : erase generated files";\
Note: See TracChangeset
for help on using the changeset viewer.