summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwlestes <wlestes>2012-03-21 00:56:04 +0000
committerwlestes <wlestes>2012-03-21 00:56:04 +0000
commit70972d075ab1000da32b504f9bad6e832a149d57 (patch)
tree68fcfb16a8acdd8814167faa94243c9d2eb53224
parent07021196383c18e47fbfd66f17ad9241697d2f3f (diff)
downloadflex-70972d075ab1000da32b504f9bad6e832a149d57.tar.gz
fix dependencies for make -j in test suite
-rw-r--r--tests/test-bison-nr/Makefile.am8
-rw-r--r--tests/test-bison-yylloc/Makefile.am8
-rw-r--r--tests/test-bison-yylval/Makefile.am8
3 files changed, 15 insertions, 9 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
diff --git a/tests/test-bison-yylloc/Makefile.am b/tests/test-bison-yylloc/Makefile.am
index 3be8907..1da3257 100644
--- a/tests/test-bison-yylloc/Makefile.am
+++ b/tests/test-bison-yylloc/Makefile.am
@@ -36,9 +36,14 @@ testname = test-bison-yylloc
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
diff --git a/tests/test-bison-yylval/Makefile.am b/tests/test-bison-yylval/Makefile.am
index e55e8a7..aa9d93a 100644
--- a/tests/test-bison-yylval/Makefile.am
+++ b/tests/test-bison-yylval/Makefile.am
@@ -36,9 +36,14 @@ testname = test-bison-yylval
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
-main.o: parser.h