[PATCH 1/2] testsuites: Fix build dependences for generated files.

Chris Johns chrisj at rtems.org
Wed May 10 03:38:23 UTC 2017


---
 testsuites/libtests/dl01/Makefile.am  | 2 ++
 testsuites/libtests/dl02/Makefile.am  | 2 ++
 testsuites/libtests/dl04/Makefile.am  | 2 ++
 testsuites/libtests/dl05/Makefile.am  | 2 ++
 testsuites/libtests/tar01/Makefile.am | 4 ++++
 testsuites/libtests/tar02/Makefile.am | 2 ++
 6 files changed, 14 insertions(+)

diff --git a/testsuites/libtests/dl01/Makefile.am b/testsuites/libtests/dl01/Makefile.am
index 07460694e2..653e38505f 100644
--- a/testsuites/libtests/dl01/Makefile.am
+++ b/testsuites/libtests/dl01/Makefile.am
@@ -14,6 +14,8 @@ AM_CPPFLAGS += -I$(top_srcdir)/../support/include
 LINK_OBJS = $(dl01_OBJECTS)
 LINK_LIBS = $(dl01_LDLIBS)
 
+init.c: dl-tar.h
+
 dl-o1.o: dl-o1.c
 
 dl.tar: dl-o1.o
diff --git a/testsuites/libtests/dl02/Makefile.am b/testsuites/libtests/dl02/Makefile.am
index 52ef98dc8a..12df8a0adf 100644
--- a/testsuites/libtests/dl02/Makefile.am
+++ b/testsuites/libtests/dl02/Makefile.am
@@ -14,6 +14,8 @@ AM_CPPFLAGS += -I$(top_srcdir)/../support/include
 LINK_OBJS = $(dl02_OBJECTS)
 LINK_LIBS = $(dl02_LDLIBS)
 
+init.c: dl-tar.h
+
 dl-o1.o: dl-o1.c
 
 dl-o2.o: dl-o2.c
diff --git a/testsuites/libtests/dl04/Makefile.am b/testsuites/libtests/dl04/Makefile.am
index a888434770..141dd5d500 100644
--- a/testsuites/libtests/dl04/Makefile.am
+++ b/testsuites/libtests/dl04/Makefile.am
@@ -15,6 +15,8 @@ AM_CPPFLAGS += -I$(top_srcdir)/../support/include
 LINK_OBJS = $(dl04_OBJECTS)
 LINK_LIBS = $(dl04_LDLIBS)
 
+init.c: dl-tar.h
+
 dl-o4.o: dl-o4.cpp
 
 dl.tar: dl-o4.o
diff --git a/testsuites/libtests/dl05/Makefile.am b/testsuites/libtests/dl05/Makefile.am
index 15608cd3c6..595d2748dd 100644
--- a/testsuites/libtests/dl05/Makefile.am
+++ b/testsuites/libtests/dl05/Makefile.am
@@ -14,6 +14,8 @@ AM_CPPFLAGS += -I$(top_srcdir)/../support/include
 LINK_OBJS = $(dl05_OBJECTS)
 LINK_LIBS = $(dl05_LDLIBS)
 
+init.c: dl-tar.h
+
 dl-o5.o: dl-o5.cpp
 
 dl.tar: dl-o5.o
diff --git a/testsuites/libtests/tar01/Makefile.am b/testsuites/libtests/tar01/Makefile.am
index d64d2c69df..201f1e83e1 100644
--- a/testsuites/libtests/tar01/Makefile.am
+++ b/testsuites/libtests/tar01/Makefile.am
@@ -48,6 +48,10 @@ tar01$(EXEEXT): $(tar01_OBJECTS) $(tar01_DEPENDENCIES)
 	@rm -f tar01$(EXEEXT)
 	$(make-exe)
 
+init.c: initial_filesystem_tar.h \
+	initial_filesystem_tar_gz.h \
+	initial_filesystem_tar_xz.h
+
 initial_filesystem_tar.c: initial_filesystem.tar
 	$(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
 CLEANFILES += initial_filesystem_tar.c
diff --git a/testsuites/libtests/tar02/Makefile.am b/testsuites/libtests/tar02/Makefile.am
index d04089b1b4..e83bfd2dd4 100644
--- a/testsuites/libtests/tar02/Makefile.am
+++ b/testsuites/libtests/tar02/Makefile.am
@@ -25,6 +25,8 @@ tar02$(EXEEXT): $(tar02_OBJECTS) $(tar02_DEPENDENCIES)
 	@rm -f tar02$(EXEEXT)
 	$(make-exe)
 
+init.c: initial_filesystem_tar.h
+
 initial_filesystem_tar.c: initial_filesystem.tar
 	$(BIN2C) -C initial_filesystem.tar initial_filesystem_tar
 CLEANFILES += initial_filesystem_tar.c
-- 
2.12.1



More information about the devel mailing list