1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/lib/Target/SparcV9/Makefile
2004-10-30 09:19:36 +00:00

38 lines
1.3 KiB
Makefile

##===- lib/Target/SparcV9/Makefile -------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file was developed by the LLVM research group and is distributed under
# the University of Illinois Open Source License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
LEVEL = ../../..
LIBRARYNAME = LLVMSparcV9
PARALLEL_DIRS = InstrSched LiveVar ModuloScheduling RegAlloc
BUILT_SOURCES = \
SparcV9CodeEmitter.inc \
SparcV9.burm.cpp
include $(LEVEL)/Makefile.common
SparcV9.burg.in1 : $(BUILD_SRC_DIR)/SparcV9.burg.in
$(Echo) Pre-processing SparcV9.burg.in
$(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
SparcV9.burm : SparcV9.burg.in1
$(Echo) Pre-processing SparcV9.burg.in
$(Verb) $(CXX) -E $(CPP.Flags) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
SparcV9.burm.cpp: SparcV9.burm
$(Echo) "Burging `basename $<`"
$(Verb) $(BURG) -I $< -o $@
SparcV9CodeEmitter.inc: $(BUILD_SRC_DIR)/SparcV9.td $(TDFiles) $(TBLGEN)
$(Echo) "Running tblgen on SparcV9.td"
$(Verb) $(TableGen) -gen-emitter -o $@ $<
clean::
$(Verb) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp