Allow parallel make ("make -j2") by giving make the opportunity to

determine dependencies.

As in subdirectory foo/bar, $(top_builddir)/foo/bar is defined to be the
current directory, this does not cause any regressions.

From Hans Ulrich Niedermann (hun@n-dimensional.de)
This commit is contained in:
timoore
2007-07-22 22:37:26 +00:00
parent 418856769b
commit 5d7d77d4b6
9 changed files with 20 additions and 14 deletions
+7 -1
View File
@@ -26,10 +26,16 @@ noinst_PROGRAMS = tabbed_value_test swap_test
tabbed_value_test_SOURCES = tabbed_values_test.cxx
tabbed_value_test_LDADD = \
$(top_builddir)/simgear/misc/libsgmisc.a \
libsgmisc.a \
$(top_builddir)/simgear/xml/libsgxml.a \
$(top_builddir)/simgear/debug/libsgdebug.a
$(top_builddir)/simgear/xml/libsgxml.a:
cd $(top_builddir)/simgear/xml && $(MAKE) $(AM_MAKEFLAGS) libsgxml.a
$(top_builddir)/simgear/debug/libsgdebug.a:
cd $(top_builddir)/simgear/debug && $(MAKE) $(AM_MAKEFLAGS) libsgdebug.a
swap_test_SOURCES = swap_test.cpp
INCLUDES = -I$(top_srcdir)