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

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

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File size: 2.3 KB
Line 
1#
2# $Id$
3#
4# [ Description ]
5#
6# Makefile
7#
8
9include                         $(MORPHEO_TOPLEVEL)/Makefile.tools
10
11#-----[ Directory ]----------------------------------------
12DIR_INC                         = include
13DIR_SRC                         = src
14DIR_OBJ                         = obj
15DIR_SCRIPT                      = $(MORPHEO_SCRIPT)
16
17#-----[ Compilation ]--------------------------------------
18INCDIR                          = $(SYSTEMC_INCDIR_$(SIMULATOR))        \
19                                  -I$(DIR_MORPHEO)
20
21LIBDIR                          = $(DIR_LIBRARY)                        \
22                                  $(SYSTEMC_LIBDIR_$(SIMULATOR))       
23#                                 $(SOCLIB_LIBDIR)                      \
24#                                 $(OR1K_LIBDIR)                               
25
26LIBS                            = $(LIBRARY) -lm $(SYSTEMC_LIBNAME_$(SIMULATOR)) -ldl
27
28#                                 $(SOCLIB_LIBNAME) $(OR1K_LIBNAME) -lbfd 
29
30FLAGS_COMMON                    = $(SYSTEMC_CFLAGS_$(SIMULATOR))        \
31                                  $(CXX_FLAGS)
32
33#                                 -Wno-deprecated                       \
34#                                 -Wno-non-template-friend              \
35#                                 -Wno-pmf-conversions                  \
36#                                 -Wfatal-errors                        \
37#                                 -pedantic                             \
38#                                 -Werror                               \
39
40CFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(INCDIR)
41LFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(LIBDIR)
42
43#-----[ Variable ]-----------------------------------------
44
45ENTITY                          = `$(BASENAME) $$PWD`
46
47OBJECTS_COMMON                  = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp))
48
49HEADERS                         = $(wildcard $(DIR_INC)/*.h)
50
51#-----[ Rules ]--------------------------------------------
52.PRECIOUS                       : $(DIR_OBJ)/%.o
53
54test_env                        :
55                                @$(ECHO) "-------------------[ $(ENTITY) ]"
56ifeq ($(origin MORPHEO_TOPLEVEL), undefined)
57                                $(error "variable MORPHEO_TOPLEVEL is undefined");
58endif
59ifeq ($(origin MORPHEO_SCRIPT), undefined)
60                                $(error "variable MORPHEO_SCRIPT   is undefined");
61endif
62ifeq ($(origin DIR_MORPHEO), undefined)
63                                $(error "variable DIR_MORPHEO      is undefined");
64endif
65
66$(DIR_OBJ)/%.o                  : $(DIR_SRC)/%.cpp $(HEADERS)
67                                @\
68                                $(ECHO) "Compilation        : $*";\
69                                $(CXX) $(CFLAGS) -c -o $@ $<;
70
71$(DIR_OBJ)                      :
72                                @\
73                                $(ECHO) "Create directory   : $@";\
74                                $(MKDIR) $@
75
76common_clean                    :
77                                @\
78                                $(ECHO) "Delete     temporary files in directory "$(PWD);\
79                                $(RM)   $(DIR_OBJ)      \
80                                        $(DIR_BIN)      \
81                                        *~              \
82                                        $(DIR_SRC)/*~   \
83                                        $(DIR_INC)/*~;
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.