1 #===-- lib/Target/SparcV9/Makefile.am ----------------------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file was developed by Reid Spencer and is distributed under the
6 # University of Illinois Open Source License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 include $(top_srcdir)/Makefile_config
12 SUBDIRS = InstrSched LiveVar ModuloScheduling RegAlloc
14 lib_LIBRARIES = libLLVMSparcV9.a
17 SparcV9CodeEmitter.inc \
20 libLLVMSparcV9_a_SOURCES = \
21 EmitBytecodeToAssembly.cpp \
22 InternalGlobalMapper.cpp \
23 MachineCodeForInstruction.cpp \
24 MachineFunctionInfo.cpp \
26 SparcV9AsmPrinter.cpp \
28 SparcV9CodeEmitter.cpp \
29 SparcV9FrameInfo.cpp \
30 SparcV9PeepholeOpts.cpp \
31 SparcV9PreSelection.cpp \
32 SparcV9PrologEpilogInserter.cpp \
33 SparcV9RegClassInfo.cpp \
35 SparcV9RegisterInfo.cpp \
36 SparcV9SchedInfo.cpp \
37 SparcV9StackSlots.cpp \
38 SparcV9TargetMachine.cpp \
42 PRELINK=libLLVMSparcV9.a
44 SparcV9.burg.in1 : SparcV9.burg.in
45 $(CXX) -E $(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
47 SparcV9.burm : SparcV9.burg.in1
48 $(CXX) -E -I$(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
50 SparcV9.burm.cpp: SparcV9.burm
51 @echo "Burging `basename $<`"
54 SparcV9CodeEmitter.inc: SparcV9.td $(TABLEGEN_FILES) $(TBLGEN)
55 @echo "Tblgen'ing `basename $<`"
56 $(TBLGEN) -I $(srcdir) $< -gen-emitter -o $@
58 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
61 $(VERB) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp