@@ -15,17 +15,26 @@ tests_init_SOURCES = tests_init.f90
1515tests_init_LDFLAGS = -L$(top_builddir ) /src/group_level
1616tests_init_LDADD = $(top_builddir ) /src/group_level/libetsf_io.la
1717
18- tests_write_SOURCES = tests_module.f90 tests_write.f90
18+ tests_write_SOURCES = tests_write.f90
1919tests_write_LDFLAGS = -L$(top_builddir ) /src/group_level
20- tests_write_LDADD = $(top_builddir ) /src/group_level/libetsf_io.la
20+ tests_write_LDADD = tests_module.$(OBJEXT ) $(top_builddir ) /src/group_level/libetsf_io.la
21+ EXTRA_tests_write_SOURCES = tests_module.f90
22+ EXTRA_tests_write_DEPENDENCIES = tests_module.$(OBJEXT )
23+ $(tests_write_OBJECTS ) : tests_module.$(OBJEXT )
2124
22- tests_read_SOURCES = tests_module.f90 tests_read.f90
25+ tests_read_SOURCES = tests_read.f90
2326tests_read_LDFLAGS = -L$(top_builddir ) /src/group_level
24- tests_read_LDADD = $(top_builddir ) /src/group_level/libetsf_io.la
27+ tests_read_LDADD = tests_module.$(OBJEXT ) $(top_builddir ) /src/group_level/libetsf_io.la
28+ EXTRA_tests_read_SOURCES = tests_module.f90
29+ EXTRA_tests_read_DEPENDENCIES = tests_module.$(OBJEXT )
30+ $(tests_read_OBJECTS ) : tests_module.$(OBJEXT )
2531
26- tests_copy_SOURCES = tests_module.f90 tests_copy.f90
32+ tests_copy_SOURCES = tests_copy.f90
2733tests_copy_LDFLAGS = -L$(top_builddir ) /src/group_level
28- tests_copy_LDADD = $(top_builddir ) /src/group_level/libetsf_io.la
34+ tests_copy_LDADD = tests_module.$(OBJEXT ) $(top_builddir ) /src/group_level/libetsf_io.la
35+ EXTRA_tests_copy_SOURCES = tests_module.f90
36+ EXTRA_tests_copy_DEPENDENCIES = tests_module.$(OBJEXT )
37+ $(tests_copy_OBJECTS ) : tests_module.$(OBJEXT )
2938
3039TESTS = run
3140
0 commit comments