Initial version of automake Makefile.am file.
[oota-llvm.git] / lib / Target / SparcV9 / Makefile.am
1 #===-- lib/Target/SparcV9/Makefile.am ----------------------*- Makefile -*--===#
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
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.
7
8 #===------------------------------------------------------------------------===#
9
10 include $(top_srcdir)/Makefile.rules.am
11
12 SUBDIRS = InstrSched LiveVar RegAlloc
13
14 libexec_PROGRAMS = LLVMSparcV9.o
15
16 BUILT_SOURCES = \
17   SparcV9CodeEmitter.inc \
18   SparcV9.burm.cpp 
19
20 LLVMSparcV9_o_SOURCES = \
21   EmitBytecodeToAssembly.cpp \
22   InternalGlobalMapper.cpp \
23   MachineCodeForInstruction.cpp \
24   MachineFunctionInfo.cpp \
25   MappingInfo.cpp \
26   SparcV9AsmPrinter.cpp \
27   SparcV9BurgISel.cpp \
28   SparcV9CodeEmitter.cpp \
29   SparcV9FrameInfo.cpp \
30   SparcV9PeepholeOpts.cpp \
31   SparcV9PreSelection.cpp \
32   SparcV9PrologEpilogInserter.cpp \
33   SparcV9RegClassInfo.cpp \
34   SparcV9RegInfo.cpp \
35   SparcV9RegisterInfo.cpp \
36   SparcV9SchedInfo.cpp \
37   SparcV9StackSlots.cpp \
38   SparcV9TargetMachine.cpp \
39   SparcV9TmpInstr.cpp \
40   $(BUILT_SOURCES)
41
42 LIBS=
43
44 SparcV9.burg.in1 : SparcV9.burg.in
45         $(CXX) -E $(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
46
47 SparcV9.burm : SparcV9.burg.in1
48         $(CXX) -E -I$(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
49
50 SparcV9.burm.cpp: SparcV9.burm
51         @echo "Burging `basename $<`"
52         $(RunBurg) $< -o $@
53
54 SparcV9CodeEmitter.inc: SparcV9.td $(TABLEGEN_FILES) $(TBLGEN)
55         @echo "Tblgen'ing `basename $<`"
56         $(TBLGEN) -I $(srcdir) $< -gen-emitter -o $@
57
58 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
59
60 clean::
61         $(VERB) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp
62