4 ExtraSource = Sparc.burm.cpp
6 include $(LEVEL)/Makefile.common
14 Sparc.burg.in1 : Sparc.burg.in
15 $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Ydefine/#define/' > $@
17 Sparc.burm : Sparc.burg.in1
18 $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | ${SED} '/^# /d' | ${SED} 's/Xinclude/#include/g' | ${SED} 's/Xdefine/#define/g' > $@
20 Sparc.burm.cpp: Sparc.burm
24 $(BUILD_OBJ_DIR)/Debug/Sparc.burm.lo: Sparc.burm.cpp
27 $(BUILD_OBJ_DIR)/Release/Sparc.burm.lo: Sparc.burm.cpp
30 $(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Sparc.burm.cpp
33 $(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
36 TARGET_NAME := SparcV9
38 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
40 $(SourceDir)/$(TARGET_NAME)CodeEmitter.cpp:: $(TARGET_NAME)CodeEmitter.inc
42 $(TARGET_NAME)CodeEmitter.inc:: $(TABLEGEN_FILES) $(TBLGEN)
43 @echo "Tblgen'ing $(TARGET_NAME).td"
44 $(TBLGEN) -I $(SourceDir) $(SourceDir)/$(TARGET_NAME).td -gen-emitter -o $@
47 ${RM} -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp