SUBDIRS = . 

lib_LTLIBRARIES = libqof-backend-qsf.la

AM_CFLAGS = \
  -I.. -I../.. \
  -I${top_srcdir}/src/backend \
  -I${top_srcdir}/src/engine \
  -DLOCALE_DIR=\""$(datadir)/locale"\" \
  -I${top_srcdir}/src/gnc-module \
  ${LIBXML2_CFLAGS} \
  ${GLIB_CFLAGS}

libqof_backend_qsf_la_SOURCES = \
	qsf-backend.c \
	qsf-xml-map.c \
        qsf-xml.c

LIBADD = \
   ${GLIB_LIBS} \
   ${LIBXML2_LIBS}

qsfschemadir = $(QSF_SCHEMA_DIR)
qsfschema_DATA = \
        qsf-object.xsd.xml \
        qsf-map.xsd.xml \
        pilot-qsf-GnuCashInvoice.xml

EXTRA_DIST = \
	$(qsfschema_DATA) \
	qsf-dir.h.in      \
	qof-backend-qsf.h \
	qsf-xml.h

qsf-dir.h: qsf-dir.h.in
	rm -f $@.tmp
	sed < $< > $@.tmp \
	        -e 's:@-QSF_SCHEMA_DIR-@:${QSF_SCHEMA_DIR}:g'
	mv $@.tmp $@

BUILT_SOURCES = qsf-dir.h

CONFIG_CLEAN_FILES = qsf-dir.h
