Added llvmgcc version to allow tests to be xfailed by frontend version.
[llvm-complete.git] / utils / Burg / Doc / Makefile
blob60e603f44143826701c389513cb3fd3a1dcf784c
1 ##===- utils/Burg/Doc/Makefile ------------------------------*- Makefile -*-===##
2 #
3 # The LLVM Compiler Infrastructure
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 # $Id$
11 #CFLAGS =
12 #CFLAGS = -O
13 #CFLAGS = -O -DNOLEX
14 CFLAGS = -g -DDEBUG
15 #CFLAGS = -g -DNOLEX -DDEBUG
17 SRCS = \
18 be.c \
19 burs.c \
20 closure.c \
21 delta.c \
22 fe.c \
23 item.c \
24 lex.c \
25 list.c \
26 main.c \
27 map.c \
28 nonterminal.c \
29 operator.c \
30 pattern.c \
31 plank.c \
32 queue.c \
33 rule.c \
34 string.c \
35 symtab.c \
36 table.c \
37 trim.c \
38 zalloc.c
40 BU_OBJS = \
41 burs.o \
42 closure.o \
43 delta.o \
44 item.o \
45 list.o \
46 map.o \
47 nonterminal.o \
48 operator.o \
49 pattern.o \
50 queue.o \
51 rule.o \
52 table.o \
53 trim.o \
54 zalloc.o
56 FE_OBJS = \
57 be.o \
58 fe.o \
59 lex.o \
60 main.o \
61 plank.o \
62 string.o \
63 symtab.o \
64 y.tab.o
66 all: test
68 burg: $(BU_OBJS) $(FE_OBJS)
69 $(CC) -o burg $(CFLAGS) $(BU_OBJS) $(FE_OBJS)
71 y.tab.c y.tab.h: gram.y
72 yacc -d gram.y
74 clean:
75 rm -f *.o y.tab.h y.tab.c core burg *.aux *.log *.dvi sample sample.c tmp
77 $(FE_OBJS): b.h
78 $(BU_OBJS): b.h
79 $(FE_OBJS): fe.h
81 lex.o: y.tab.h
83 doc.dvi: doc.tex
84 latex doc; latex doc
86 test: burg sample.gr
87 ./burg -I <sample.gr >sample.c && cc $(CFLAGS) -o sample sample.c && ./sample
88 ./burg -I sample.gr >tmp && cmp tmp sample.c
89 ./burg -I <sample.gr -o tmp && cmp tmp sample.c
90 ./burg -I sample.gr -o tmp && cmp tmp sample.c
91 ./burg -I -O0 <sample.gr >tmp && cmp tmp sample.c
92 ./burg -I -= <sample.gr >tmp && cmp tmp sample.c