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

Last change on this file since 23 was 23, checked in by rosiere, 17 years ago

Documentation pour chaque composant.
Documentation : ajout d'un poster et d'un article.
RegisterFile_Multi_Banked_Glue - non encore stable.

File size: 1.3 KB
Line 
1#-----[ Directory ]----------------------------------------
2DIR_DOC                         = doc
3DIR_LIB                         = lib
4DIR_TEST                        = SelfTest
5
6#-----[ Variable ]-----------------------------------------
7OBJECTS                         = $(OBJECTS_COMMON)
8
9#-----[ Rules ]--------------------------------------------
10.PRECIOUS                       : $(DIR_LIB)/%.a
11.NOPARALLEL                     : clean help
12
13all_component                   : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS)
14                                @$(MAKE) $(LIBRARY)
15
16$(DIR_LIB)/%.a                  : $(OBJECTS) $(HEADERS)
17                                @$(ECHO) "Archive            : $*"
18                                @$(AR)  -r $@ $(OBJECTS)
19                                @$(RANLIB) $@
20
21$(DIR_LIB)                      :
22                                @$(ECHO) "Create directory   : $@"
23                                @$(MKDIR) $@
24
25document                        :
26                                @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile
27
28component_clean                 :
29                                @$(RM) $(DIR_LIB)
30                               
31component_help                  :
32                                @$(ECHO) " -----[ Component ]----------------------------------"
33                                @$(ECHO) ""
34                                @$(ECHO) " * all_component        : compile all c++ file and generate library"
35                                @$(ECHO) " * document             : Generate documantation"
36                                @$(ECHO) " * clean                : Erase all generate files"
37                                @$(ECHO) " * help                 : print this text"
38                                @$(ECHO) ""
39                               
40
41help                            :
42                                @$(MAKE) common_help
43                                @$(MAKE) component_help
44clean                           :
45                                @$(MAKE) common_clean
46                                @$(MAKE) component_clean
47                                @if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi
Note: See TracBrowser for help on using the repository browser.