Eliminate MachineFunction& argument from eliminateFrameIndex in x86 Target. Get...
[oota-llvm.git] / lib / Target / SparcV9 / Makefile
1 ##===- lib/Target/SparcV9/Makefile -------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
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.
7
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../../..
10 LIBRARYNAME = sparcv9
11 DIRS = RegAlloc LiveVar
12
13 ExtraSource = SparcV9.burm.cpp 
14
15 include $(LEVEL)/Makefile.common
16
17 ifdef ENABLE_OPTIMIZED
18   DEBUG_FLAG = 
19 else
20   DEBUG_FLAG = -D_DEBUG
21 endif
22
23 SparcV9.burg.in1 : $(SourceDir)/SparcV9.burg.in
24         $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/Ydefine/#define/' > $@
25
26 SparcV9.burm : SparcV9.burg.in1
27         $(CXX) -E -I$(LLVM_SRC_ROOT)/include $(DEBUG_FLAG) -x c++ $< | $(SED) '/^#/d' | $(SED) 's/^Xinclude/#include/' | $(SED) 's/^Xdefine/#define/' > $@
28
29 SparcV9.burm.cpp: SparcV9.burm
30         @echo "Burging `basename $<`"
31         $(RunBurg) $< -o $@
32
33 $(BUILD_OBJ_DIR)/Debug/SparcV9.burm.lo: SparcV9.burm.cpp
34         $(CompileG) $< -o $@
35
36 $(BUILD_OBJ_DIR)/Release/SparcV9.burm.lo: SparcV9.burm.cpp
37         $(CompileO) $< -o $@
38
39 $(BUILD_OBJ_DIR)/Profile/SparcV9.burm.lo: SparcV9.burm.cpp
40         $(CompileP) $< -o $@
41
42 $(BUILD_OBJ_DIR)/Depend/SparcV9.burm.d: $(BUILD_OBJ_DIR)/Depend/.dir
43         touch $@
44
45 TABLEGEN_FILES := $(notdir $(wildcard $(SourceDir)/*.td))
46
47 # Make sure that tblgen is run, first thing.
48 $(SourceDepend): SparcV9CodeEmitter.inc
49
50 SparcV9CodeEmitter.cpp:: SparcV9CodeEmitter.inc
51
52 SparcV9CodeEmitter.inc:: $(SourceDir)/SparcV9.td $(TABLEGEN_FILES) $(TBLGEN)
53         @echo "Tblgen'ing `basename $<`"
54         $(TBLGEN) -I $(SourceDir) $< -gen-emitter -o $@
55
56 clean::
57         $(RM) -f SparcV9CodeEmitter.inc SparcV9.burg.in1 SparcV9.burm SparcV9.burm.cpp
58