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