testmagvar_SOURCES = testmagvar.cxx
-testmagvar_LDADD = $(top_builddir)/simgear/magvar/libsgmagvar.a
+testmagvar_LDADD = \
+ $(top_builddir)/simgear/magvar/libsgmagvar.a \
+ $(base_LIBS)
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif