2001-09-14 05:55:11 +02:00
|
|
|
LEVEL = ../../..
|
2001-09-14 05:47:57 +02:00
|
|
|
LIBRARYNAME = sparc
|
2002-09-23 15:12:28 +02:00
|
|
|
|
2002-07-25 08:08:32 +02:00
|
|
|
ExtraSource = Debug/Sparc.burm.cpp
|
2001-09-14 05:47:57 +02:00
|
|
|
|
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2002-09-23 15:12:28 +02:00
|
|
|
ifdef ENABLE_OPTIMIZED
|
|
|
|
DEBUG_FLAG =
|
|
|
|
else
|
|
|
|
DEBUG_FLAG = -D_DEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
Debug/Sparc.burm.cpp: Debug/Sparc.burm Debug/.dir
|
2002-07-25 08:08:32 +02:00
|
|
|
$(RunBurg) $< -o $@
|
|
|
|
|
2003-06-30 23:59:07 +02:00
|
|
|
$(BUILD_OBJ_DIR)/Debug/Sparc.burm.lo: Debug/Sparc.burm.cpp
|
2002-07-25 08:08:32 +02:00
|
|
|
$(CompileG) $< -o $@
|
|
|
|
|
2003-06-30 23:59:07 +02:00
|
|
|
$(BUILD_OBJ_DIR)/Release/Sparc.burm.lo: Debug/Sparc.burm.cpp
|
2002-09-23 15:12:28 +02:00
|
|
|
$(CompileO) $< -o $@
|
|
|
|
|
2003-06-30 23:59:07 +02:00
|
|
|
$(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Debug/Sparc.burm.cpp
|
2002-09-23 15:12:28 +02:00
|
|
|
$(CompileP) $< -o $@
|
|
|
|
|
2003-06-30 23:59:07 +02:00
|
|
|
#$(BUILD_OBJ_DIR)/Debug/Sparc.burm.o: Debug/Sparc.burm.cpp
|
|
|
|
# $(CompileG) $< -o $@
|
|
|
|
|
|
|
|
#$(BUILD_OBJ_DIR)/Release/Sparc.burm.o: Debug/Sparc.burm.cpp
|
|
|
|
# $(CompileO) $< -o $@
|
|
|
|
|
|
|
|
#$(BUILD_OBJ_DIR)/Profile/Sparc.burm.o: Debug/Sparc.burm.cpp
|
|
|
|
# $(CompileP) $< -o $@
|
|
|
|
|
2002-09-23 15:12:28 +02:00
|
|
|
Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
|
2003-06-30 23:59:07 +02:00
|
|
|
$(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@
|
2001-10-14 19:25:31 +02:00
|
|
|
|
2002-09-23 15:12:28 +02:00
|
|
|
Debug/Sparc.burm : Debug/Sparc.burg.in1
|
2003-06-30 23:59:07 +02:00
|
|
|
$(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@
|
2001-10-14 19:25:31 +02:00
|
|
|
|
2003-06-11 15:49:11 +02:00
|
|
|
$(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
|
2002-05-21 17:58:24 +02:00
|
|
|
touch $@
|
|
|
|
|
2003-05-29 05:32:49 +02:00
|
|
|
SparcV9CodeEmitter.cpp: SparcV9CodeEmitter.inc
|
|
|
|
|
2003-07-30 07:49:17 +02:00
|
|
|
|
|
|
|
TARGET_NAME := SparcV9
|
|
|
|
|
|
|
|
TABLEGEN_FILES := $(wildcard *.td)
|
|
|
|
|
|
|
|
$(TARGET_NAME)CodeEmitter.inc.tmp: $(TABLEGEN_FILES) $(TBLGEN)
|
|
|
|
@${ECHO} "TableGen-erating " $(TARGET_NAME)
|
2003-07-30 23:00:37 +02:00
|
|
|
$(TBLGEN) $(TARGET_NAME).td -gen-emitter -o $@
|
2003-07-30 07:49:17 +02:00
|
|
|
|
|
|
|
$(TARGET_NAME)CodeEmitter.inc: $(TARGET_NAME)CodeEmitter.inc.tmp
|
|
|
|
$(VERB) # Only copy over the real .inc file if it has changed!
|
|
|
|
$(VERB) diff $@ $< > /dev/null || cp $< $@
|
2003-05-29 05:32:49 +02:00
|
|
|
|
|
|
|
clean::
|
2003-07-30 07:49:17 +02:00
|
|
|
${RM} -f $(TARGET_NAME)CodeEmitter.inc $(TARGET_NAME)CodeEmitter.inc.tmp
|