- Timestamp:
- Apr 5, 2007, 4:17:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common
r3 r15 7 7 # 8 8 9 include $(MORPHEO_TOPLEVEL)/Makefile.tools 10 9 11 #-----[ Directory ]---------------------------------------- 10 12 DIR_INC = include 11 13 DIR_SRC = src 12 14 DIR_OBJ = obj 13 DIR_SCRIPT = $(DIR_MORPHEO)/Script 14 15 #-----[ Commands ]----------------------------------------- 16 ECHO = echo 17 EXPORT = export 18 MKDIR = mkdir -p 19 TEST = test 20 READ = read 21 DATE = date +%Y%m%d-%H%M%S 22 CD = cd 23 CP = cp 24 CAT = cat 25 LS = ls 26 RM = rm -fr 27 PWD = `pwd` 28 MAKE = make -s 29 AR = ar -v 30 RANLIB = ranlib 31 BASENAME = basename 32 GREP = grep 33 GREP_NOT = egrep -v 34 TR = tr 35 UPPERtoLOWER = $(TR) [:lower:] [:upper:] 15 DIR_SCRIPT = $(MORPHEO_SCRIPT) 36 16 37 17 #-----[ Compilation ]-------------------------------------- 38 39 SYSTEMC_systemc = $(TOOLS)/systemc 40 SYSTEMC_systemcass = $(TOOLS)/systemcass 41 SYSTEMC_systemcass_deps = $(SYSTEMC_systemcass) 42 43 SYSTEMC = $(SYSTEMC_$(SIMULATOR)) 44 45 INCDIR = -I$(SYSTEMC)/include \ 18 INCDIR = $(SYSTEMC_INCDIR_$(SIMULATOR)) \ 46 19 -I$(DIR_MORPHEO) 47 20 48 DIRLIB_systemc = lib-$(TARGET_ARCH) 49 DIRLIB_systemcass = lib 50 DIRLIB_systemcass_deps = $(DIRLIB_systemcass) 21 LIBDIR = $(DIR_LIBRARY) \ 22 $(SYSTEMC_LIBDIR_$(SIMULATOR)) \ 23 $(SOCLIB_LIBDIR) \ 24 $(OR1K_LIBDIR) 51 25 52 LIBDIR = $(DIR_LIBRARY) \ 53 -L$(SYSTEMC)/$(DIRLIB_$(SIMULATOR)) \ 54 -L$(TOOLS)/soclib/lib \ 55 -L$(TOOLS)/or1k/lib 26 LIBS = $(LIBRARY) -lm $(SYSTEMC_LIBNAME_$(SIMULATOR)) $(SOCLIB_LIBNAME) $(OR1K_LIBNAME) -lbfd -ldl 56 27 57 LIBS = $(LIBRARY) -lm -lsystemc -lsoclib -lbfd -liberty -ldl 58 # target architecture 59 TARGET_ARCH = linux 60 61 XX_systemc = 62 XX_systemcass = -rdynamic \ 63 -ansi \ 64 -Wno-long-long 65 66 XX_systemcass_deps = $(XX_systemcass) 67 68 EXEC_PARAMS_systemc = 69 EXEC_PARAMS_systemcass = --nobanner 70 EXEC_PARAMS_systemcass_deps = --nobanner --p 71 72 73 XX_COMMON = -O3 \ 28 FLAGS_COMMON = $(SYSTEMC_CFLAGS_$(SIMULATOR)) \ 29 -O3 \ 74 30 -g3 \ 75 31 -Wall \ 76 32 -Wunused 33 77 34 # -Wno-deprecated \ 78 35 # -Wno-non-template-friend \ … … 82 39 # -Werror \ 83 40 84 XX_OPT = $(XX_COMMON) $(XX_$(SIMULATOR)) 85 86 CXX = export LANG=C; g++ 87 CXX_OPT = $(XX_OPT) $(FLAGS) $(INCDIR) 88 LXX_OPT = $(XX_OPT) $(FLAGS) $(LIBDIR) 89 90 EXEC_PARAMS = $(EXEC_PARAMS_$(SIMULATOR)) 41 CFLAGS = $(FLAGS) $(FLAGS_COMMON) $(INCDIR) 42 LFLAGS = $(FLAGS) $(FLAGS_COMMON) $(LIBDIR) 91 43 92 44 #-----[ Variable ]----------------------------------------- … … 103 55 test_env : 104 56 @$(ECHO) "-------------------[ $(ENTITY) ]" 105 ifeq ($(origin TOOLS), undefined) 106 $(error "variable TOOLS is undefined"); 57 ifeq ($(origin MORPHEO_TOPLEVEL), undefined) 58 $(error "variable MORPHEO_TOPLEVEL is undefined"); 59 endif 60 ifeq ($(origin MORPHEO_SCRIPT), undefined) 61 $(error "variable MORPHEO_SCRIPT is undefined"); 107 62 endif 108 63 ifeq ($(origin DIR_MORPHEO), undefined) 109 $(error "variable DIR_MORPHEO is undefined");64 $(error "variable DIR_MORPHEO is undefined"); 110 65 endif 111 66 112 67 $(DIR_OBJ)/%.o : $(DIR_SRC)/%.cpp $(HEADERS) 113 68 @$(ECHO) "Compilation : $*" 114 @$(CXX) $(CXX_OPT) -c -o $@ $<69 $(CXX) $(CFLAGS) -c -o $@ $< 115 70 116 71 $(DIR_OBJ) :
Note: See TracChangeset
for help on using the changeset viewer.