Make the sparc.burg file be a little more flexible and rubust in the fact of
[oota-llvm.git] / lib / Target / SparcV9 / Makefile
1 LEVEL = ../../..
2 LIBRARYNAME = sparc
3
4 ## List source files in link order
5 Source  = \
6           Sparc.cpp \
7           Sparc.burm.cpp \
8           SparcInstrSelection.cpp \
9           SparcRegClassInfo.cpp \
10           SparcRegInfo.cpp EmitAssembly.cpp
11
12 include $(LEVEL)/Makefile.common
13
14 Debug/Sparc.burg.in1 : Sparc.burg.in
15         g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Ydefine/#define/' > $@
16
17 Debug/Sparc.burg : Debug/Sparc.burg.in1
18         g++ -E -I$(LEVEL)/include -D_DEBUG -x c++ $< | sed '/^# /d' | sed 's/Xinclude/#include/g' | sed 's/Xdefine/#define/g' > $@
19