Remove debug code emitter from the JIT
[oota-llvm.git] / utils / Burg / Makefile.am
1 ##===- utils/Burg/Makefile.am ------------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by Reid Spencer and is distributed under the 
6 # University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9
10 include $(top_srcdir)/Makefile_config
11
12 bin_PROGRAMS = burg
13
14 BUILT_SOURCES= gram.tab.c
15 burg_SOURCES = be.c burs.c closure.c delta.c fe.c gram.yc item.c lex.c list.c \
16                main.c map.c nonterminal.c operator.c pattern.c plank.c queue.c \
17                rule.c sample.gr string.c symtab.c table.c trim.c zalloc.c \
18                $(BUILT_SOURCES)
19
20 EXTRA_DIST   = LICENSE.TXT
21
22 lex.o: gram.tab.h
23
24 gram.tab.c gram.tab.h: gram.yc
25         $(BISON) -o gram.tab.c -d $<
26
27 clean::
28         $(VERB) $(RM) -rf gram.tab.h gram.tab.c core* *.aux *.log *.dvi sample sample.c tmp
29
30 doc.dvi: doc.tex
31         $(VERB) latex doc; latex doc
32
33 test:: $(TOOLEXENAME_G) sample.gr
34         $(TOOLEXENAME_G) -I     <sample.gr   >sample.c && $(CC) $(CFLAGS) -o sample sample.c && ./sample
35         $(TOOLEXENAME_G) -I      sample.gr   >tmp && cmp tmp sample.c
36         $(TOOLEXENAME_G) -I     <sample.gr -o tmp && cmp tmp sample.c
37         $(TOOLEXENAME_G) -I      sample.gr -o tmp && cmp tmp sample.c
38         $(TOOLEXENAME_G) -I -O0 <sample.gr   >tmp && cmp tmp sample.c
39         $(TOOLEXENAME_G) -I -=  <sample.gr   >tmp && cmp tmp sample.c
40         $(RM) -f tmp sample.c