SUBDIRS = . test

# Now a shared library AND a GModule
pkglib_LTLIBRARIES = libgncmod-backend-dbi.la


# "${top_srcdir}/src/debug" below is for the splint header
AM_CPPFLAGS = \
  -I.. -I../.. \
  -DLOCALE_DIR=\""$(datadir)/locale"\" \
  -I${top_srcdir}/src/backend \
  -I${top_srcdir}/src/backend/sql \
  -I${top_srcdir}/src/debug \
  -I${top_srcdir}/src/engine \
  -I${top_srcdir}/src/core-utils \
  -I${top_srcdir}/lib/libc \
  -I${top_srcdir}/src/libqof/qof \
  ${GLIB_CFLAGS} \
  ${WARN_CFLAGS}

libgncmod_backend_dbi_la_SOURCES = \
  gnc-backend-dbi.c

noinst_HEADERS = \
  gnc-backend-dbi.h \
  gnc-backend-dbi-priv.h

libgncmod_backend_dbi_la_LDFLAGS = -shared -avoid-version
libgncmod_backend_dbi_la_LIBADD = \
   ${GLIB_LIBS} \
   ${top_builddir}/src/backend/sql/libgnc-backend-sql.la \
   ${top_builddir}/src/engine/libgncmod-engine.la \
   ${top_builddir}/src/core-utils/libgnc-core-utils.la \
   ${top_builddir}/src/libqof/qof/libgnc-qof.la \
   ${LIBDBI_LIBS}

AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.dbi\"
