summaryrefslogtreecommitdiff
path: root/tests/test-bison-nr/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-bison-nr/Makefile.am')
-rw-r--r--tests/test-bison-nr/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test-bison-nr/Makefile.am b/tests/test-bison-nr/Makefile.am
index b251572..91edc35 100644
--- a/tests/test-bison-nr/Makefile.am
+++ b/tests/test-bison-nr/Makefile.am
@@ -36,9 +36,14 @@ testname = test-bison-nr
scanner.c: $(srcdir)/scanner.l
$(FLEX) $<
+scanner.h: scanner.c
+scanner.o: parser.h
parser.c: $(srcdir)/parser.y
$(BISON) $(YFLAGS) $<
+parser.h: parser.c
+
+main.o: scanner.h parser.h
$(testname)$(EXEEXT): $(OBJS)
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES)
@@ -48,6 +53,3 @@ test: $(testname)$(EXEEXT)
.c.o:
$(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
-
-parser.h: parser.c
-scanner.c main.o: parser.h