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

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

1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme

  • Property svn:keywords set to Id
File size: 2.4 KB
RevLine 
[2]1#
2# $Id: Makefile.Common 117 2009-05-16 14:42:39Z rosiere $
3#
[83]4# [ Description ]
[2]5#
6# Makefile
7#
8
[88]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
[15]23
[53]24#-----[ Directory ]----------------------------------------
[88]25DIR_TMP                         = $(MORPHEO_TMP)
[2]26DIR_INC                         = include
27DIR_SRC                         = src
[113]28DIR_OBJ                         = $(DIR_TMP)/obj
29DIR_LIB                         = $(DIR_TMP)/lib
[15]30DIR_SCRIPT                      = $(MORPHEO_SCRIPT)
[2]31
[53]32#-----[ Compilation ]--------------------------------------
[117]33INCDIR                          = $(SYSTEMC_INCDIR_$(SIMULATOR_SYSTEMC))        \
[85]34                                  -I.                                   \
[2]35                                  -I$(DIR_MORPHEO)
36
[113]37LIBDIR                          = -L$(DIR_LIB) \
[117]38                                  $(SYSTEMC_LIBDIR_$(SIMULATOR_SYSTEMC))       
[62]39#                                 $(OR1K_LIBDIR)                               
[2]40
[117]41FLAGS_COMMON                    = $(SYSTEMC_CFLAGS_$(SIMULATOR_SYSTEMC))        \
[78]42                                  $(CXX_FLAGS)
[15]43
[55]44CFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(INCDIR)
45LFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(LIBDIR)
[2]46
[53]47#-----[ Variable ]-----------------------------------------
[113]48#OBJECTS_COMMON                 = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp))
49SOURCES                         = $(wildcard $(DIR_SRC)/*.cpp)
50OBJECTS_COMMON                  = $(addprefix $(DIR_OBJ)/$(ENTITY)_, $(addsuffix .o, $(basename $(notdir $(SOURCES)))))
[2]51
52HEADERS                         = $(wildcard $(DIR_INC)/*.h)
53
[53]54#-----[ Rules ]--------------------------------------------
[113]55.PRECIOUS                       : $(DIR_OBJ)/$(ENTITY)_%.o
[2]56
57test_env                        :
[83]58                                @$(ECHO) "-------------------| $(ENTITY)"
[2]59
[113]60$(DIR_OBJ)/$(ENTITY)_%.o        : $(DIR_SRC)/%.cpp $(HEADERS)
[48]61                                @\
62                                $(ECHO) "Compilation        : $*";\
[117]63                                $(SYSTEMC_CXX_$(SIMULATOR_SYSTEMC)) $(CFLAGS) -c -o $@ $<;
[2]64
65$(DIR_OBJ)                      :
[48]66                                @\
67                                $(ECHO) "Create directory   : $@";\
68                                $(MKDIR) $@
[2]69
70common_clean                    :
[48]71                                @\
[83]72                                $(ECHO) "Delete     temporary files in directory $(PWD)";\
[113]73                                $(RM)   $(OBJECTS_COMMON)     \
74                                        *~                    \
75                                        $(DIR_SRC)/*~         \
[48]76                                        $(DIR_INC)/*~;
[2]77
[88]78common_clean_all                : common_clean
[113]79                                @\
80                                $(RM)   $(DIR_OBJ)
[88]81
[2]82common_help                     :
[48]83                                @\
[53]84                                $(ECHO) " -----[ Common ]-------------------------------------";\
[48]85                                $(ECHO) "";\
86                                $(ECHO) " * test_env             : test if environnment's variable is set";\
87                                $(ECHO) "";
Note: See TracBrowser for help on using the repository browser.