1 ##===- lib/Target/Sparc/Makefile ---------------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
12 ExtraSource = Sparc.burm.cpp
14 include $(LEVEL)/Makefile.common
16 ifdef ENABLE_OPTIMIZED
22 Sparc.burg.in1 : $(SourceDir)/Sparc.burg.in
23 $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
25 Sparc.burm : Sparc.burg.in1
26 $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
28 Sparc.burm.cpp: Sparc.burm
29 @echo "Burging `basename $<`"
32 $(BUILD_OBJ_DIR)/Debug/Sparc.burm.lo: Sparc.burm.cpp
35 $(BUILD_OBJ_DIR)/Release/Sparc.burm.lo: Sparc.burm.cpp
38 $(BUILD_OBJ_DIR)/Profile/Sparc.burm.lo: Sparc.burm.cpp
41 $(BUILD_OBJ_DIR)/Depend/Sparc.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
44 TARGET_NAME := SparcV9
46 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
48 $(TARGET_NAME)CodeEmitter.cpp:: $(TARGET_NAME)CodeEmitter.inc
50 $(TARGET_NAME)CodeEmitter.inc:: $(SourceDir)/$(TARGET_NAME).td $(TABLEGEN_FILES) $(TBLGEN)
51 @echo "Tblgen'ing `basename $<`"
52 $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
55 $(RM) -f $(TARGET_NAME)CodeEmitter.inc Sparc.burg.in1 Sparc.burm Sparc.burm.cpp