1 ##===- lib/Target/SparcV9/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 ##===----------------------------------------------------------------------===##
10 LIBRARYNAME = LLVMSparcV9
11 PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
14 SparcV9CodeEmitter.inc \
17 include $(LEVEL)/Makefile.common
19 SparcV9.burg.in1 : $(BUILD_SRC_DIR)/SparcV9.burg.in
20 $(Echo) Pre-processing SparcV9.burg.in
21 $(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
23 SparcV9.burm : SparcV9.burg.in1
24 $(Echo) Pre-processing SparcV9.burg.in
25 $(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
27 SparcV9.burm.cpp: SparcV9.burm
28 $(Echo) "Burging `basename $<`"
29 $(Verb) $(BURG) -I $< -o $@
31 SparcV9CodeEmitter.inc: $(BUILD_SRC_DIR)/SparcV9.td $(TDFiles) $(TBLGEN)
32 $(Echo) "Running tblgen on SparcV9.td"
33 $(Verb) $(TableGen) -gen-emitter -o $@ $<
36 $(Verb) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp