Add dependency to make TableGen rule fire.
[oota-llvm.git] / lib / Target / SparcV9 / Makefile
1 LEVEL = ../../..
2 LIBRARYNAME = sparc
3
4 ExtraSource = Debug/Sparc.burm.cpp 
5
6 SparcV9CodeEmitter.cpp: SparcV9CodeEmitter.inc
7
8 SparcV9CodeEmitter.inc: SparcV9.td
9         @echo "TableGen-erating $@"
10         cpp -P SparcV9.td | tblgen -gen-emitter > SparcV9CodeEmitter.inc
11
12 include $(LEVEL)/Makefile.common
13
14 ifdef ENABLE_OPTIMIZED
15   DEBUG_FLAG = 
16 else
17   DEBUG_FLAG = -D_DEBUG
18 endif
19
20 Debug/Sparc.burm.cpp: Debug/Sparc.burm Debug/.dir
21         $(RunBurg) $< -o $@
22
23 $(BUILD_ROOT)/Debug/Sparc.burm.o: Debug/Sparc.burm.cpp
24         $(CompileG) $< -o $@
25
26 $(BUILD_ROOT)/Release/Sparc.burm.o: Debug/Sparc.burm.cpp
27         $(CompileO) $< -o $@
28
29 $(BUILD_ROOT)/Profile/Sparc.burm.o: Debug/Sparc.burm.cpp
30         $(CompileP) $< -o $@
31
32 Debug/Sparc.burg.in1 : Sparc.burg.in Debug/.dir
33         $(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
34
35 Debug/Sparc.burm : Debug/Sparc.burg.in1
36         $(CXX) -E -I$(LEVEL)/include $(DEBUG_FLAG) -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
37
38 $(BUILD_ROOT)/Depend/Sparc.burm.d: $(BUILD_ROOT)/Depend/.dir
39         touch $@
40