source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Component @ 77

Last change on this file since 77 was 77, checked in by rosiere, 16 years ago
  • Add two component :
    • network between read unit and execute unit
    • network between execute unit and write unit
  • remove parameters "nb_operation" and "nb_type"
  • in write_queue add the special case : load_speculative
File size: 1.4 KB
RevLine 
[77]1#-----[ Directory ]----------------------------------------
[23]2DIR_DOC                         = doc
[2]3DIR_LIB                         = lib
4DIR_TEST                        = SelfTest
5
[77]6#-----[ Variable ]-----------------------------------------
[2]7OBJECTS                         = $(OBJECTS_COMMON)
8
[77]9#-----[ Rules ]--------------------------------------------
[2]10.PRECIOUS                       : $(DIR_LIB)/%.a
[71]11#.NOTPARALLEL                   : clean help
[2]12
13all_component                   : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS)
14                                @$(MAKE) $(LIBRARY)
15
16$(DIR_LIB)/%.a                  : $(OBJECTS) $(HEADERS)
[48]17                                @\
18                                $(ECHO) "Archive            : $*";\
19                                $(AR)  -r $@ $(OBJECTS);\
20                                $(RANLIB) $@;
[2]21
22$(DIR_LIB)                      :
[48]23                                @\
24                                $(ECHO) "Create directory   : $@";\
25                                $(MKDIR) $@;
[2]26
[23]27document                        :
28                                @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile
29
[2]30component_clean                 :
31                                @$(RM) $(DIR_LIB)
32                               
33component_help                  :
[48]34                                @\
[77]35                                $(ECHO) " -----[ Component ]----------------------------------";\
[48]36                                $(ECHO) "";\
37                                $(ECHO) " * all_component        : compile all c++ file and generate library";\
38                                $(ECHO) " * document             : Generate documantation";\
39                                $(ECHO) " * clean                : Erase all generate files";\
40                                $(ECHO) " * help                 : print this text";\
41                                $(ECHO) "";
[2]42                               
43
44help                            :
[48]45                                @\
46                                $(MAKE) common_help;\
47                                $(MAKE) component_help;
48
[2]49clean                           :
[48]50                                @\
51                                $(MAKE) common_clean ;\
52                                $(MAKE) component_clean;\
53                                if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi;
Note: See TracBrowser for help on using the repository browser.