- Timestamp:
- May 12, 2010, 7:34:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common
r130 r138 29 29 DIR_INC = include 30 30 DIR_SRC = src 31 DIR_OBJ = $(DIR_TMP)/obj 32 DIR_LIB = $(MORPHEO_PREFIX)/lib 31 DIR_OBJ = $(DIR_TMP)/obj/$(MORPHEO_TYPE) 32 DIR_LIB = $(MORPHEO_PREFIX)/lib/$(MORPHEO_TYPE) 33 33 DIR_SCRIPT = $(MORPHEO_SCRIPT) 34 34 … … 49 49 50 50 #-----[ Variable ]----------------------------------------- 51 PREFIX_OBJ = $(ENTITY)_ 51 52 #OBJECTS_COMMON = $(patsubst $(DIR_SRC)/%.cpp,$(DIR_OBJ)/%.o,$(wildcard $(DIR_SRC)/*.cpp)) 52 53 SOURCES = $(wildcard $(DIR_SRC)/*.cpp) 53 OBJECTS_COMMON = $(addprefix $(DIR_OBJ)/$( ENTITY)_, $(addsuffix .o, $(basename $(notdir $(SOURCES)))))54 OBJECTS_COMMON = $(addprefix $(DIR_OBJ)/$(PREFIX_OBJ), $(addsuffix .o, $(basename $(notdir $(SOURCES))))) 54 55 55 56 HEADERS = $(wildcard $(DIR_INC)/*.h) 56 57 57 58 #-----[ Rules ]-------------------------------------------- 58 .PRECIOUS : $(DIR_OBJ)/$( ENTITY)_%.o59 .PRECIOUS : $(DIR_OBJ)/$(PREFIX_OBJ)%.o 59 60 60 61 test_env : 61 62 @$(ECHO) "-------------------| $(ENTITY)" 62 63 63 $(DIR_OBJ)/$( ENTITY)_%.o: $(DIR_SRC)/%.cpp $(HEADERS)64 $(DIR_OBJ)/$(PREFIX_OBJ)%.o : $(DIR_SRC)/%.cpp $(HEADERS) 64 65 @\ 65 66 $(ECHO) "Compilation : $*";\
Note: See TracChangeset
for help on using the changeset viewer.