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

Last change on this file since 117 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
Line 
1#
2# $Id: Makefile.Common 117 2009-05-16 14:42:39Z 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                         = $(DIR_TMP)/obj
29DIR_LIB                         = $(DIR_TMP)/lib
30DIR_SCRIPT                      = $(MORPHEO_SCRIPT)
31
32#-----[ Compilation ]--------------------------------------
33INCDIR                          = $(SYSTEMC_INCDIR_$(SIMULATOR_SYSTEMC))        \
34                                  -I.                                   \
35                                  -I$(DIR_MORPHEO)
36
37LIBDIR                          = -L$(DIR_LIB) \
38                                  $(SYSTEMC_LIBDIR_$(SIMULATOR_SYSTEMC))       
39#                                 $(OR1K_LIBDIR)                               
40
41FLAGS_COMMON                    = $(SYSTEMC_CFLAGS_$(SIMULATOR_SYSTEMC))        \
42                                  $(CXX_FLAGS)
43
44CFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(INCDIR)
45LFLAGS                          = $(MORPHEO_FLAGS) $(FLAGS_COMMON) $(LIBDIR)
46
47#-----[ Variable ]-----------------------------------------
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)))))
51
52HEADERS                         = $(wildcard $(DIR_INC)/*.h)
53
54#-----[ Rules ]--------------------------------------------
55.PRECIOUS                       : $(DIR_OBJ)/$(ENTITY)_%.o
56
57test_env                        :
58                                @$(ECHO) "-------------------| $(ENTITY)"
59
60$(DIR_OBJ)/$(ENTITY)_%.o        : $(DIR_SRC)/%.cpp $(HEADERS)
61                                @\
62                                $(ECHO) "Compilation        : $*";\
63                                $(SYSTEMC_CXX_$(SIMULATOR_SYSTEMC)) $(CFLAGS) -c -o $@ $<;
64
65$(DIR_OBJ)                      :
66                                @\
67                                $(ECHO) "Create directory   : $@";\
68                                $(MKDIR) $@
69
70common_clean                    :
71                                @\
72                                $(ECHO) "Delete     temporary files in directory $(PWD)";\
73                                $(RM)   $(OBJECTS_COMMON)     \
74                                        *~                    \
75                                        $(DIR_SRC)/*~         \
76                                        $(DIR_INC)/*~;
77
78common_clean_all                : common_clean
79                                @\
80                                $(RM)   $(DIR_OBJ)
81
82common_help                     :
83                                @\
84                                $(ECHO) " -----[ Common ]-------------------------------------";\
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.