Updated Makefiles to reflect new location in llvm/support/tools.
[oota-llvm.git] / support / tools / Burg / Makefile
1 LEVEL = ../../..
2 TOOLNAME = burg
3 ExtraSource = gram.tab.c
4
5 include $(LEVEL)/Makefile.common
6
7 gram.tab.c gram.tab.h:: gram.yc
8         $(VERB) $(BISON) -o gram.tab.c -d $<
9
10 $(SourceDir)/lex.c: gram.tab.h
11
12 clean::
13         rm -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
14
15 #$(BUILD_OBJ_DIR)/Release/lex.o $(BUILD_OBJ_DIR)/Profile/lex.o $(BUILD_OBJ_DIR)/Debug/lex.o: gram.tab.h
16
17 doc.dvi: doc.tex
18         latex doc; latex doc
19
20
21 test:: $(TOOLEXENAME_G) sample.gr
22         $(TOOLEXENAME_G) -I     <sample.gr   >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
23         $(TOOLEXENAME_G) -I      sample.gr   >tmp && cmp tmp sample.c
24         $(TOOLEXENAME_G) -I     <sample.gr -o tmp && cmp tmp sample.c
25         $(TOOLEXENAME_G) -I      sample.gr -o tmp && cmp tmp sample.c
26         $(TOOLEXENAME_G) -I -O0 <sample.gr   >tmp && cmp tmp sample.c
27         $(TOOLEXENAME_G) -I -=  <sample.gr   >tmp && cmp tmp sample.c
28         $(RM) -f tmp sample.c