aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.(none)>2005-06-16 14:36:37 +1000
committerDavid Gibson <dgibson@sneetch.(none)>2005-06-16 14:36:37 +1000
commit4102d840d993e7cce7d5c5aea8ef696dc81236fc (patch)
treeab70f0a9e968780ed282f1bbd8d7ea1be3db5b6b /Makefile
parentfc14dad7692d84d5f0f547fd0456b3f98526b6cc (diff)
downloaddtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.zip
dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.gz
dtc-4102d840d993e7cce7d5c5aea8ef696dc81236fc.tar.bz2
Initial label support. Also switch to glr-parser mode and get rid of
hacks that were necessary without it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1dca00b..f9a1050 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
TARGETS = dtc
CFLAGS = -Wall -g
+BISON = bison
+
OBJS = dtc.o livetree.o flattree.o data.o treesource.o fstree.o \
- y.tab.o lex.yy.o
+ dtc-parser.tab.o lex.yy.o
all: $(TARGETS)
@@ -11,13 +13,13 @@ dtc: $(OBJS)
$(OBJS): dtc.h
-y.tab.c y.tab.h: dtc-parser.y
- $(YACC) -d $<
+dtc-parser.tab.c dtc-parser.tab.h dtc-parser.output: dtc-parser.y
+ $(BISON) -d -v $<
lex.yy.c: dtc-lexer.l
$(LEX) $<
-lex.yy.o: lex.yy.c y.tab.h
+lex.yy.o: lex.yy.c dtc-parser.tab.h
dtc-parser.c: dtc-lexer.c