
if BUNDLE
  votabledir = $(prefix)/share/munipack
  FLAGS= -DMUNIPACK_DATA_DIR=\"$(BUNDLEDIR)/share/munipack\"
else
  votabledir = $(pkgdatadir)
  FLAGS= -DMUNIPACK_DATA_DIR=\"$(pkgdatadir)\"
endif

XCPPFLAGS = -DwxUSE_GUI=0 -I$(top_srcdir)/include $(WX_CXXFLAGS_VO) $(FLAGS)
XLDADD = -L. -L../lib -lvotable $(WX_LIBS_VO) -lmfitsio -lcfitsio @LIBGCC@ @LIBSTDCPP@ -lm

pkglibexec_PROGRAMS = cone votable
noinst_LIBRARIES = libvotable.a libvocatconf.a

cone_SOURCES = cone.cpp 
cone_CPPFLAGS = $(XCPPFLAGS)
cone_LDADD = $(XLDADD)

votable_SOURCES = votab.cpp 
votable_CPPFLAGS = $(XCPPFLAGS)
votable_LDADD = $(XLDADD)

libvotable_a_SOURCES = votable.cpp
libvotable_a_CPPFLAGS = $(XCPPFLAGS)

libvocatconf_a_SOURCES = vocatconf.cpp
libvocatconf_a_CPPFLAGS = $(XCPPFLAGS)

dist_votable_DATA = VOcat_conf.xml
