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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[77]1#-----[ Directory ]----------------------------------------
[23]2DIR_DOC                         = doc
[2]3DIR_TEST                        = SelfTest
[88]4DIR_LIB                         = lib
[2]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)
[88]32
33#                               if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi;
34
35component_clean_all             : component_clean
36
37#                               if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean_all; fi;
[2]38                               
39component_help                  :
[48]40                                @\
[77]41                                $(ECHO) " -----[ Component ]----------------------------------";\
[48]42                                $(ECHO) "";\
43                                $(ECHO) " * all_component        : compile all c++ file and generate library";\
44                                $(ECHO) " * document             : Generate documantation";\
45                                $(ECHO) " * clean                : Erase all generate files";\
46                                $(ECHO) " * help                 : print this text";\
47                                $(ECHO) "";
[2]48                               
49
50help                            :
[48]51                                @\
52                                $(MAKE) common_help;\
53                                $(MAKE) component_help;
54
[2]55clean                           :
[48]56                                @\
57                                $(MAKE) common_clean ;\
[88]58                                $(MAKE) component_clean;
59
60clean_all                               :
61                                @\
62                                $(MAKE) common_clean_all ;\
63                                $(MAKE) component_clean_all;
Note: See TracBrowser for help on using the repository browser.