include_HEADERS = magvar.hxx
-libsgmagvar_a_SOURCES = magvar.cxx
+libsgmagvar_a_SOURCES = \
+ coremag.hxx coremag.cxx \
+ magvar.cxx
noinst_PROGRAMS = testmagvar
testmagvar_SOURCES = testmagvar.cxx
-testmagvar_LDADD = $(top_builddir)/simgear/magvar/libsgmagvar.a
+testmagvar_LDADD = \
+ $(top_builddir)/simgear/magvar/libsgmagvar.a \
+ $(base_LIBS)
-INCLUDES += -I$(top_builddir)
+INCLUDES = -I$(top_srcdir)