- 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.Component
r88 r113 2 2 DIR_DOC = doc 3 3 DIR_TEST = SelfTest 4 DIR_LIB = lib5 4 6 5 #-----[ Variable ]----------------------------------------- … … 11 10 #.NOTPARALLEL : clean help 12 11 13 all_component : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS) 14 @$(MAKE) $(LIBRARY) 12 all_component : test_env $(DIR_OBJ) $(DIR_LIB) 13 @\ 14 $(MAKE) $(LIBRARY); 15 15 16 $(DIR_LIB)/%.a : $(OBJECTS) $(HEADERS) 16 # if simulator is modelsim, libComponent.a is a directory, else is normal library generated by g++ 17 18 $(DIR_LIB)/%.a : $(SOURCES) $(HEADERS) 17 19 @\ 18 $(ECHO) "Archive : $*";\ 19 $(AR) -r $@ $(OBJECTS);\ 20 $(RANLIB) $@; 20 case "${SIMULATOR}" in \ 21 "modelsim") \ 22 $(MODELTECH_VLIB) $@; \ 23 $(MODELTECH_SCCOM) $(CFLAGS) $(SOURCES) -work $@; \ 24 ;; \ 25 *) \ 26 $(MAKE) $(OBJECTS); \ 27 $(ECHO) "Archive : $*"; \ 28 $(AR) -r $@ $(OBJECTS); \ 29 $(RANLIB) $@; \ 30 ;; \ 31 esac; 21 32 22 33 $(DIR_LIB) : … … 29 40 30 41 component_clean : 31 @$(RM) $(DIR_LIB) 32 42 @$(RM) $(LIBRARY) 33 43 # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi; 34 44 35 45 component_clean_all : component_clean 36 46 @$(RM) $(DIR_LIB) 37 47 # if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean_all; fi; 38 48 … … 46 56 $(ECHO) " * help : print this text";\ 47 57 $(ECHO) ""; 48 49 58 50 59 help : … … 58 67 $(MAKE) component_clean; 59 68 60 clean_all 69 clean_all : 61 70 @\ 62 71 $(MAKE) common_clean_all ;\
Note: See TracChangeset
for help on using the changeset viewer.