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

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

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