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

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

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1#-----[ Directory ]----------------------------------------
2DIR_DOC                         = doc
3DIR_TEST                        = SelfTest
4DIR_LIB                         = lib
5
6#-----[ Variable ]-----------------------------------------
7OBJECTS                         = $(OBJECTS_COMMON)
8
9#-----[ Rules ]--------------------------------------------
10.PRECIOUS                       : $(DIR_LIB)/%.a
11#.NOTPARALLEL                   : clean help
12
13all_component                   : test_env $(DIR_OBJ) $(DIR_LIB) $(OBJECTS) $(HEADERS)
14                                @$(MAKE) $(LIBRARY)
15
16$(DIR_LIB)/%.a                  : $(OBJECTS) $(HEADERS)
17                                @\
18                                $(ECHO) "Archive            : $*";\
19                                $(AR)  -r $@ $(OBJECTS);\
20                                $(RANLIB) $@;
21
22$(DIR_LIB)                      :
23                                @\
24                                $(ECHO) "Create directory   : $@";\
25                                $(MKDIR) $@;
26
27document                        :
28                                @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile
29
30component_clean                 :
31                                @$(RM) $(DIR_LIB)
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;
38                               
39component_help                  :
40                                @\
41                                $(ECHO) " -----[ Component ]----------------------------------";\
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) "";
48                               
49
50help                            :
51                                @\
52                                $(MAKE) common_help;\
53                                $(MAKE) component_help;
54
55clean                           :
56                                @\
57                                $(MAKE) common_clean ;\
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.