source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common @ 97

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

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#
2# $Id: Makefile.Common 97 2008-12-19 15:34:00Z rosiere $
3#
4# [ Description ]
5#
6# Makefile
7#
8
9ifeq ($(origin MORPHEO_TOPLEVEL), undefined)
10        $(error "variable MORPHEO_TOPLEVEL is undefined");
11else
12        include                         $(MORPHEO_TOPLEVEL)/Makefile.tools
13endif
14ifeq ($(origin MORPHEO_TMP), undefined)
15        $(error "variable MORPHEO_TMP      is undefined");
16endif
17ifeq ($(origin MORPHEO_SCRIPT), undefined)
18        $(error "variable MORPHEO_SCRIPT   is undefined");
19endif
20ifeq ($(origin DIR_MORPHEO), undefined)
21        $(error "variable DIR_MORPHEO      is undefined");
22endif
23
24#-----[ Directory ]----------------------------------------
25DIR_TMP                         = $(MORPHEO_TMP)
26DIR_INC                         = include
27DIR_SRC                         = src
28DIR_OBJ                         = obj
29DIR_SCRIPT                      = $(MORPHEO_SCRIPT)
30
31#-----[ Compilation ]--------------------------------------
32INCDIR                          = $(SYSTEMC_INCDIR_$(SIMULATOR))        \
33                                  -I.                                   \
34                                  -I$(DIR_MORPHEO)
35
36LIBDIR                          = $(DIR_LIBRARY)                        \
37                                  $(SYSTEMC_LIBDIR_$(SIMULATOR))       
38#                                 $(OR1K_LIBDIR)                               
39
40LIBS                            = $(LIBRARY) -lm $(SYSTEMC_LIBNAME_$(SIMULATOR))
41
42#                                 $(OR1K_LIBNAME) -lbfd 
43
44FLAGS_COMMON                    = $(SYSTEMC_CFLAGS_$(SIMULATOR))        \
45                                  $(CXX_FLAGS)
46
47CFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(INCDIR)
48LFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(LIBDIR)
49
50#-----[ Variable ]-----------------------------------------
51ENTITY                          = $$($(BASENAME) $$PWD)
52
53OBJECTS_COMMON                  = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp))
54
55HEADERS                         = $(wildcard $(DIR_INC)/*.h)
56
57#-----[ Rules ]--------------------------------------------
58.PRECIOUS                       : $(DIR_OBJ)/%.o
59
60test_env                        :
61                                @$(ECHO) "-------------------| $(ENTITY)"
62
63
64$(DIR_OBJ)/%.o                  : $(DIR_SRC)/%.cpp $(HEADERS)
65                                @\
66                                $(ECHO) "Compilation        : $*";\
67                                $(CXX) $(CFLAGS) -c -o $@ $<;
68
69$(DIR_OBJ)                      :
70                                @\
71                                $(ECHO) "Create directory   : $@";\
72                                $(MKDIR) $@
73
74common_clean                    :
75                                @\
76                                $(ECHO) "Delete     temporary files in directory $(PWD)";\
77                                $(RM)   $(DIR_OBJ)      \
78                                        $(DIR_BIN)      \
79                                        *~              \
80                                        $(DIR_SRC)/*~   \
81                                        $(DIR_INC)/*~;
82
83common_clean_all                : common_clean
84
85common_help                     :
86                                @\
87                                $(ECHO) " -----[ Common ]-------------------------------------";\
88                                $(ECHO) "";\
89                                $(ECHO) " * test_env             : test if environnment's variable is set";\
90                                $(ECHO) "";
Note: See TracBrowser for help on using the repository browser.