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

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

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#-----[ Directory ]----------------------------------------
2DIR_DOC                         = doc
3DIR_TEST                        = SelfTest
4
5#-----[ Variable ]-----------------------------------------
6OBJECTS                         = $(OBJECTS_COMMON)
7
8#-----[ Rules ]--------------------------------------------
9.PRECIOUS                       : $(DIR_LIB)/%.a
10#.NOTPARALLEL                   : clean help
11
12all_component                   : test_env $(DIR_OBJ) $(DIR_LIB)
13                                @\
14                                $(MAKE) $(LIBRARY);
15
16# if simulator is modelsim, libComponent.a is a directory, else is normal library generated by g++
17
18$(DIR_LIB)/%.a                  : $(SOURCES) $(HEADERS)
19                                @\
20                                case "${SIMULATOR}" in                                                          \
21                                    "modelsim")                                                                 \
22                                        $(MODELTECH_VLIB) $@;                                                   \
23                                        $(MODELTECH_SCCOM) $(CFLAGS) $(SOURCES) -work $@;                       \
24                                        ;;                                                                      \
25                                    *)                                                                          \
26                                        $(MAKE) $(OBJECTS);                                                     \
27                                        $(ECHO) "Archive            : $*";                                      \
28                                        $(AR)  -r $@ $(OBJECTS);                                                \
29                                        $(RANLIB) $@;                                                           \
30                                        ;;                                                                      \
31                                esac;
32
33$(DIR_LIB)                      :
34                                @\
35                                $(ECHO) "Create directory   : $@";\
36                                $(MKDIR) $@;
37
38document                        :
39                                @$(MAKE) --directory=$(DIR_DOC) --makefile=Makefile
40
41component_clean                 :
42                                @$(RM) $(LIBRARY)
43#                               if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean; fi;
44
45component_clean_all             : component_clean
46                                @$(RM) $(DIR_LIB)
47#                               if $(TEST) -d $(DIR_DOC); then $(MAKE) --directory=$(DIR_DOC) --makefile=Makefile clean_all; fi;
48                               
49component_help                  :
50                                @\
51                                $(ECHO) " -----[ Component ]----------------------------------";\
52                                $(ECHO) "";\
53                                $(ECHO) " * all_component        : compile all c++ file and generate library";\
54                                $(ECHO) " * document             : Generate documantation";\
55                                $(ECHO) " * clean                : Erase all generate files";\
56                                $(ECHO) " * help                 : print this text";\
57                                $(ECHO) "";
58
59help                            :
60                                @\
61                                $(MAKE) common_help;\
62                                $(MAKE) component_help;
63
64clean                           :
65                                @\
66                                $(MAKE) common_clean ;\
67                                $(MAKE) component_clean;
68
69clean_all                       :
70                                @\
71                                $(MAKE) common_clean_all ;\
72                                $(MAKE) component_clean_all;
Note: See TracBrowser for help on using the repository browser.