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