source: trunk/IPs/systemC/Environment/Makefile.defs @ 115

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

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[113]1ifeq ($(origin MORPHEO_TOPLEVEL), undefined)
2        $(error "variable MORPHEO_TOPLEVEL is undefined");
3else
4        include $(MORPHEO_TOPLEVEL)/Makefile.tools
5        include $(MORPHEO_TOPLEVEL)/Makefile.flags
6endif
7
8#-----[ Directory ]----------------------------------------
9DIR_TMP                         =       $(MORPHEO_TMP)
10DIR_TST                         =       selftest
11DIR_INC                         =       include
12DIR_SRC                         ?=      $(DIR_ENVIRONMENT)/$(ENTITY)/src
13DIR_OBJ                         =       $(MORPHEO_TMP)/obj
14DIR_BIN                         =       $(MORPHEO_TMP)/bin
15
16#-----[ Compilation ]--------------------------------------
17INCDIR                          = $(SYSTEMC_INCDIR_$(SIMULATOR))        \
18                                  -I$(DIR_INC)                          \
19                                  -I../processor/Morpheo
20
21LIBDIR                          = $(SYSTEMC_LIBDIR_$(SIMULATOR))
22
23LIBNAME                         = -lbfd                                 \
24                                  -liberty                              \
25                                  $(SYSTEMC_LIBNAME_$(SIMULATOR))
26
27FLAGS                           = $(SYSTEMC_CFLAGS_$(SIMULATOR))
28
29MORPHEO_CC_FLAGS                = $(MORPHEO_FLAGS) $(CC_FLAGS)           $(INCDIR)
30MORPHEO_CXX_FLAGS               = $(MORPHEO_FLAGS) $(CXX_FLAGS) $(FLAGS) $(INCDIR)
31MORPHEO_L_FLAGS                 = $(MORPHEO_FLAGS) $(CXX_FLAGS) $(FLAGS) $(LIBDIR)
32
33#-----[ Variable ]-----------------------------------------
34
35OBJECTS                         = $(addprefix $(DIR_OBJ)/$(ENTITY)_, $(addsuffix .o, $(basename $(notdir $(wildcard $(DIR_SRC)/*.cpp))))) \
36                                  $(addprefix $(DIR_OBJ)/$(ENTITY)_, $(addsuffix .o, $(basename $(notdir $(wildcard $(DIR_SRC)/*.c)))))
37OBJECTS_BIN                     = $(addprefix $(DIR_OBJ)/$(ENTITY)_, $(addsuffix .o, $(basename $(notdir $(wildcard $(DIR_TST)/*.cpp)))))
38
39HEADERS                         = $(wildcard $(DIR_INC)/*.h)
40
41EXE                             = $(DIR_BIN)/soft.x
42
43EXEC_PREFIX                     =
44#$(VALGRIND)
Note: See TracBrowser for help on using the repository browser.