summaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/Makefile.am
blob: 780eb870e090264586f560fc0389391da6adb079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#===-- lib/Target/SparcV9/Makefile.am ----------------------*- Makefile -*--===#
#
#                     The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the 
# University of Illinois Open Source License. See LICENSE.TXT for details.
# 
#===------------------------------------------------------------------------===#

include $(top_srcdir)/Makefile_config

SUBDIRS = InstrSched LiveVar ModuloScheduling RegAlloc

lib_LIBRARIES = libLLVMSparcV9.a

BUILT_SOURCES = \
  SparcV9CodeEmitter.inc \
  SparcV9.burm.cpp 

libLLVMSparcV9_a_SOURCES = \
  EmitBytecodeToAssembly.cpp \
  InternalGlobalMapper.cpp \
  MachineCodeForInstruction.cpp \
  MachineFunctionInfo.cpp \
  MappingInfo.cpp \
  SparcV9AsmPrinter.cpp \
  SparcV9BurgISel.cpp \
  SparcV9CodeEmitter.cpp \
  SparcV9FrameInfo.cpp \
  SparcV9PeepholeOpts.cpp \
  SparcV9PreSelection.cpp \
  SparcV9PrologEpilogInserter.cpp \
  SparcV9RegClassInfo.cpp \
  SparcV9RegInfo.cpp \
  SparcV9RegisterInfo.cpp \
  SparcV9SchedInfo.cpp \
  SparcV9StackSlots.cpp \
  SparcV9TargetMachine.cpp \
  SparcV9TmpInstr.cpp \
  $(BUILT_SOURCES)

PRELINK=libLLVMSparcV9.a

SparcV9.burg.in1 : SparcV9.burg.in
	$(CXX) -E $(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@

SparcV9.burm : SparcV9.burg.in1
	$(CXX) -E -I$(AM_CPPFLAGS) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@

SparcV9.burm.cpp: SparcV9.burm
	@echo "Burging `basename $<`"
	$(RunBurg) $< -o $@

SparcV9CodeEmitter.inc: SparcV9.td $(TABLEGEN_FILES) $(TBLGEN)
	@echo "Tblgen'ing `basename $<`"
	$(TBLGEN) -I $(srcdir) $< -gen-emitter -o $@

TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))

clean::
	$(VERB) $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp