- Timestamp:
- Apr 14, 2009, 8:39:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Selftest
r94 r113 9 9 #-----[ Directory ]---------------------------------------- 10 10 DIR_BIN = $(DIR_TMP)/bin 11 DIR_LIB = ../lib12 11 DIR_CFG_GEN = $(DIR_TMP)/configuration_generated 13 12 DIR_CFG_USER = configuration … … 19 18 20 19 OBJECTS = $(OBJECTS_COMMON) 20 21 LIBS = -lm $(SYSTEMC_LIBNAME_$(SIMULATOR)) 22 # $(OR1K_LIBNAME) -lbfd 23 24 MODELTECH_LIBRARY = $(addprefix -lib ,$(addsuffix .a, $(subst -l,$(DIR_LIB)/lib,$(LIBRARY)))) 25 #MODELTECH_LIBRARY = $(LIBRARY) 21 26 22 27 EXEC_PREFIX = … … 152 157 x=$$i; \ 153 158 for j in $${ENUM_PARAM[*]}; do \ 154 declare -a RANGE_LOCAL=($${RANGE[$$j]}); 159 declare -a RANGE_LOCAL=($${RANGE[$$j]}); \ 155 160 DATA[$$j]="$${RANGE_LOCAL[$$((($$x % $${SIZE[$$j]})))]} "; \ 156 161 x=$$(($$x/$${SIZE[$$j]})); \ … … 195 200 fi; 196 201 197 $(DIR_BIN)/%.x : $( OBJECTS) $(HEADERS) $(DIR_LIB)202 $(DIR_BIN)/%.x : $(SOURCES) $(HEADERS) $(DIR_OBJ) $(DIR_BIN) 198 203 @\ 199 204 $(ECHO) "Linkage : $*";\ 200 $(CXX) $(LFLAGS) -o $@ $(OBJECTS) $(LIBS); 201 202 $(DIR_LIB) : 203 @\ 204 $(ECHO) "Create directory : $@";\ 205 $(MKDIR) $@; 206 207 $(DIR_BIN) : 208 @\ 209 $(ECHO) "Create directory : $@";\ 210 $(MKDIR) $@; 211 212 $(DIR_LOG) : 213 @\ 214 $(ECHO) "Create directory : $@";\ 215 $(MKDIR) $@; 216 217 $(DIR_CFG_GEN) : 205 case "${SIMULATOR}" in \ 206 "modelsim") \ 207 $(MAKE) vhdl_package; \ 208 $(MAKE) vhdl_entity; \ 209 $(MODELTECH_SCCOM) -work $(DIR_WORK) $(CFLAGS) $(SOURCES); \ 210 $(MODELTECH_SCCOM) -work $(DIR_WORK) $(MODELTECH_LIBRARY) $(LFLAGS) $(LIBS) -link;\ 211 $(ECHO) "#!$(SHELL)" > $@; \ 212 $(ECHO) "cd $${PWD};" >> $@; \ 213 $(ECHO) 'declare args;' >> $@; \ 214 $(ECHO) 'for i in $${*}; do' >> $@; \ 215 $(ECHO) ' args=$${args}" -sc_arg $${i}";' >> $@; \ 216 $(ECHO) 'done;' >> $@; \ 217 $(ECHO) "$(MODELTECH_VSIM) -novopt "'$${args}'" $(MODELTECH_LIBRARY) $(DIR_WORK).top;" >> $@; \ 218 $(ECHO) "cd -;" >> $@; \ 219 $(CHMOD) +x $@; \ 220 ;; \ 221 *) \ 222 $(MAKE) $(OBJECTS); \ 223 $(SYSTEMC_CXX_$(SIMULATOR)) $(LFLAGS) -o $@ $(OBJECTS) $(LIBRARY) $(LIBS);\ 224 ;; \ 225 esac; 226 227 $(DIR_BIN) $(DIR_LOG) $(DIR_CFG_GEN) : 218 228 @\ 219 229 $(ECHO) "Create directory : $@";\ … … 223 233 @$(RM) $(DIR_LOG) \ 224 234 $(DIR_CFG_USER)/*~ \ 235 $(DIR_BIN)/$(EXEC).x \ 225 236 *.vhdl \ 226 237 *.pos \ … … 234 245 235 246 selftest_clean_all : library_clean 236 247 @\ 248 $(RM) $(DIR_BIN) 237 249 238 250 selftest_help :
Note: See TracChangeset
for help on using the changeset viewer.