2001-08-18 00:13:45 +00:00
|
|
|
SUBDIRS = . test-core test
|
2000-06-02 09:00:31 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
pkglib_LTLIBRARIES = libgncmod-engine.la
|
2000-06-05 05:51:39 +00:00
|
|
|
|
2008-10-25 20:30:47 +00:00
|
|
|
AM_CPPFLAGS = \
|
2002-05-18 20:32:22 +00:00
|
|
|
-I${top_srcdir}/lib/libc \
|
2005-11-02 03:32:36 +00:00
|
|
|
-I${top_srcdir}/src/core-utils \
|
2003-02-22 08:15:53 +00:00
|
|
|
-I${top_srcdir}/src \
|
2006-12-21 19:28:26 +00:00
|
|
|
-I${top_builddir}/src \
|
2002-05-18 20:32:22 +00:00
|
|
|
-I${top_srcdir}/src/gnc-module \
|
2005-11-02 03:32:36 +00:00
|
|
|
${QOF_CFLAGS} \
|
2007-03-21 20:03:47 +00:00
|
|
|
${GLIB_CFLAGS} \
|
|
|
|
|
${GUILE_INCS}
|
2001-08-08 02:41:38 +00:00
|
|
|
|
|
|
|
|
libgncmod_engine_la_SOURCES = \
|
2000-06-02 09:00:31 +00:00
|
|
|
Account.c \
|
2005-11-02 03:32:36 +00:00
|
|
|
Recurrence.c \
|
2001-11-26 07:23:34 +00:00
|
|
|
Period.c \
|
2000-06-02 09:00:31 +00:00
|
|
|
Query.c \
|
2001-08-07 23:29:04 +00:00
|
|
|
SchedXaction.c \
|
2003-06-10 15:07:52 +00:00
|
|
|
SX-book.c \
|
2001-08-30 06:24:55 +00:00
|
|
|
SX-ttinfo.c \
|
2000-06-02 09:00:31 +00:00
|
|
|
Scrub.c \
|
2003-03-31 05:15:21 +00:00
|
|
|
Scrub2.c \
|
2003-09-12 13:17:26 +00:00
|
|
|
Scrub3.c \
|
2006-02-22 21:52:46 +00:00
|
|
|
Split.c \
|
2000-06-02 09:00:31 +00:00
|
|
|
TransLog.c \
|
2001-02-25 11:36:35 +00:00
|
|
|
Transaction.c \
|
2006-09-18 20:43:50 +00:00
|
|
|
binreloc.c \
|
2003-08-25 20:02:41 +00:00
|
|
|
cap-gains.c \
|
2005-11-02 03:32:36 +00:00
|
|
|
cashobjects.c \
|
2000-12-14 07:11:01 +00:00
|
|
|
gnc-associate-account.c \
|
2005-11-02 03:32:36 +00:00
|
|
|
gnc-budget.c \
|
2000-11-17 08:24:05 +00:00
|
|
|
gnc-commodity.c \
|
2001-02-25 11:36:35 +00:00
|
|
|
gnc-engine.c \
|
2004-06-13 20:01:29 +00:00
|
|
|
gnc-filepath-utils.c \
|
2005-11-02 03:32:36 +00:00
|
|
|
gnc-hooks.c \
|
2002-05-13 04:28:17 +00:00
|
|
|
gnc-lot.c \
|
2006-09-07 20:37:53 +00:00
|
|
|
gnc-path.c \
|
2001-02-25 11:36:35 +00:00
|
|
|
gnc-pricedb.c \
|
2006-02-22 02:39:02 +00:00
|
|
|
gnc-session.c \
|
2002-09-17 07:47:15 +00:00
|
|
|
gnc-session-scm.c \
|
2001-08-08 02:41:38 +00:00
|
|
|
gncmod-engine.c \
|
2006-10-15 19:02:05 +00:00
|
|
|
swig-engine.c \
|
|
|
|
|
kvp-scm.c \
|
|
|
|
|
engine-helpers.c \
|
|
|
|
|
glib-helpers.c \
|
2005-11-02 03:32:36 +00:00
|
|
|
policy.c
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2003-01-20 17:11:50 +00:00
|
|
|
EXTRA_libgncmod_engine_la_SOURCES = iso-4217-currencies.c
|
|
|
|
|
|
2001-09-06 21:19:00 +00:00
|
|
|
gncincludedir = ${GNC_INCLUDE_DIR}
|
|
|
|
|
gncinclude_HEADERS = \
|
2000-06-05 05:51:39 +00:00
|
|
|
Account.h \
|
2001-08-21 09:54:17 +00:00
|
|
|
FreqSpec.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
Recurrence.h \
|
2000-06-05 05:51:39 +00:00
|
|
|
GNCId.h \
|
2001-12-02 18:18:06 +00:00
|
|
|
Period.h \
|
2001-08-21 09:54:17 +00:00
|
|
|
SchedXaction.h \
|
2003-06-10 15:07:52 +00:00
|
|
|
SX-book.h \
|
2001-08-30 06:24:55 +00:00
|
|
|
SX-ttinfo.h \
|
2000-06-05 05:51:39 +00:00
|
|
|
Query.h \
|
2002-02-03 20:01:08 +00:00
|
|
|
QueryNew.h \
|
|
|
|
|
QueryObject.h \
|
|
|
|
|
QueryCore.h \
|
2000-06-05 05:51:39 +00:00
|
|
|
Scrub.h \
|
2003-03-31 05:15:21 +00:00
|
|
|
Scrub2.h \
|
2003-09-12 13:17:26 +00:00
|
|
|
Scrub3.h \
|
2006-02-22 21:52:46 +00:00
|
|
|
Split.h \
|
2000-06-05 05:51:39 +00:00
|
|
|
TransLog.h \
|
|
|
|
|
Transaction.h \
|
2006-09-18 20:43:50 +00:00
|
|
|
binreloc.h \
|
2003-08-25 20:02:41 +00:00
|
|
|
cap-gains.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
cashobjects.h \
|
2001-08-21 09:54:17 +00:00
|
|
|
engine-helpers.h \
|
|
|
|
|
glib-helpers.h \
|
2000-12-14 07:11:01 +00:00
|
|
|
gnc-associate-account.h \
|
2001-04-05 21:37:55 +00:00
|
|
|
gnc-book.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
gnc-budget.h \
|
2000-10-23 09:41:51 +00:00
|
|
|
gnc-commodity.h \
|
2001-02-25 11:36:35 +00:00
|
|
|
gnc-engine.h \
|
2006-03-04 03:21:34 +00:00
|
|
|
gnc-event.h \
|
2004-06-13 20:01:29 +00:00
|
|
|
gnc-filepath-utils.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
gnc-hooks.h \
|
2006-09-07 20:37:53 +00:00
|
|
|
gnc-path.h \
|
2001-04-05 21:37:55 +00:00
|
|
|
gnc-pricedb.h \
|
2001-10-02 09:10:35 +00:00
|
|
|
gnc-session.h \
|
2002-09-17 07:47:15 +00:00
|
|
|
gnc-session-scm.h \
|
2002-02-03 20:01:08 +00:00
|
|
|
gncObject.h \
|
2001-11-13 22:05:30 +00:00
|
|
|
kvp-scm.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
policy.h
|
2000-06-05 05:51:39 +00:00
|
|
|
|
2001-09-06 21:19:00 +00:00
|
|
|
noinst_HEADERS = \
|
|
|
|
|
AccountP.h \
|
2002-01-03 02:34:52 +00:00
|
|
|
QueryP.h \
|
2003-03-31 05:15:21 +00:00
|
|
|
ScrubP.h \
|
2006-02-22 21:52:46 +00:00
|
|
|
SplitP.h \
|
2003-06-10 15:07:52 +00:00
|
|
|
SX-book.h \
|
2001-09-06 21:19:00 +00:00
|
|
|
SX-ttinfo.h \
|
|
|
|
|
TransactionP.h \
|
2005-11-02 03:32:36 +00:00
|
|
|
gnc-hooks-scm.h \
|
2002-10-14 09:15:29 +00:00
|
|
|
gnc-lot.h \
|
2002-05-13 04:28:17 +00:00
|
|
|
gnc-lot-p.h \
|
2001-09-06 21:19:00 +00:00
|
|
|
gnc-pricedb-p.h \
|
2005-11-13 13:22:34 +00:00
|
|
|
policy-p.h
|
2001-09-06 21:19:00 +00:00
|
|
|
|
2002-01-29 12:21:59 +00:00
|
|
|
noinst_SCRIPTS = iso-currencies-to-c
|
|
|
|
|
|
2007-01-07 07:04:47 +00:00
|
|
|
libgncmod_engine_la_LDFLAGS = -avoid-version
|
|
|
|
|
|
2006-03-09 15:49:25 +00:00
|
|
|
libgncmod_engine_la_LIBADD = \
|
2007-01-07 07:04:23 +00:00
|
|
|
../gnc-module/libgnc-module.la \
|
|
|
|
|
../core-utils/libgnc-core-utils.la \
|
2006-10-15 19:02:05 +00:00
|
|
|
${GUILE_LIBS} \
|
2006-03-09 15:49:25 +00:00
|
|
|
${QOF_LIBS} \
|
2006-08-28 09:31:29 +00:00
|
|
|
${REGEX_LIBS} \
|
2007-03-21 20:03:47 +00:00
|
|
|
${GLIB_LIBS} \
|
2006-09-18 20:43:50 +00:00
|
|
|
${BINRELOC_LIBS} \
|
2006-03-09 15:49:25 +00:00
|
|
|
${top_builddir}/lib/libc/libc-missing.la
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2001-11-06 00:49:46 +00:00
|
|
|
gncmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash
|
|
|
|
|
gncmod_DATA = engine.scm
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2001-11-06 00:49:46 +00:00
|
|
|
gncscmdir = ${GNC_SHAREDIR}/scm
|
|
|
|
|
gncscm_DATA = \
|
|
|
|
|
commodity-table.scm \
|
|
|
|
|
engine-interface.scm \
|
|
|
|
|
engine-utilities.scm \
|
2001-12-11 16:19:00 +00:00
|
|
|
gnc-numeric.scm
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2001-08-08 02:41:38 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
|
README.query-api \
|
|
|
|
|
design.txt \
|
|
|
|
|
extensions.txt \
|
2001-12-11 16:19:00 +00:00
|
|
|
iso-4217-currencies.scm \
|
2002-01-29 12:21:59 +00:00
|
|
|
iso-currencies-to-c \
|
2005-11-02 03:32:36 +00:00
|
|
|
gncla-dir.h.in \
|
2001-08-21 09:54:17 +00:00
|
|
|
kvp_doc.txt \
|
2005-11-02 03:32:36 +00:00
|
|
|
SX-book-p.h \
|
2006-10-15 19:02:05 +00:00
|
|
|
engine.i \
|
2001-08-21 09:54:17 +00:00
|
|
|
${gncmod_DATA} \
|
2006-10-15 19:02:05 +00:00
|
|
|
${gncscm_DATA}
|
2001-08-08 02:41:38 +00:00
|
|
|
|
2002-02-28 08:31:32 +00:00
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
|
|
|
#For compiling
|
2006-10-15 19:02:05 +00:00
|
|
|
SCM_FILE_LINKS = iso-4217-currencies.scm
|
2002-02-28 08:31:32 +00:00
|
|
|
#For executing test cases
|
2006-02-17 20:22:54 +00:00
|
|
|
SCM_FILE_LINKS += \
|
|
|
|
|
${gncmod_DATA} \
|
|
|
|
|
${gncscm_DATA}
|
2002-02-28 08:31:32 +00:00
|
|
|
endif
|
|
|
|
|
|
2001-08-07 23:29:04 +00:00
|
|
|
.scm-links:
|
2006-10-15 19:02:05 +00:00
|
|
|
$(RM) -rf gnucash
|
|
|
|
|
mkdir -p gnucash
|
2002-02-28 08:31:32 +00:00
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
|
|
|
for X in ${SCM_FILE_LINKS} ; do \
|
2006-03-09 14:28:54 +00:00
|
|
|
$(LN_S) -f ${srcdir}/$$X . ; \
|
2002-02-28 08:31:32 +00:00
|
|
|
done
|
|
|
|
|
endif
|
2006-08-28 14:51:25 +00:00
|
|
|
( cd gnucash; for A in $(gncmod_DATA) ; do $(LN_S) -f ../$$A . ; done )
|
2009-01-14 19:59:38 +00:00
|
|
|
if ! OS_WIN32
|
|
|
|
|
# Windows knows no "ln -s" but uses "cp": must copy every time (see bug #566567).
|
2001-08-07 23:29:04 +00:00
|
|
|
touch .scm-links
|
2009-01-14 19:59:38 +00:00
|
|
|
endif
|
2001-08-07 23:29:04 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
noinst_DATA = .scm-links
|
2006-08-28 14:51:25 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
if BUILDING_FROM_SVN
|
2006-11-14 02:14:13 +00:00
|
|
|
swig-engine.c: engine.i ${top_srcdir}/src/base-typemaps.i \
|
|
|
|
|
${gncinclude_HEADERS} ${noinst_HEADERS}
|
2006-10-15 19:02:05 +00:00
|
|
|
$(SWIG) -guile $(SWIG_ARGS) -Linkage module \
|
2006-10-16 03:35:56 +00:00
|
|
|
-I${top_srcdir}/lib/libqof/qof -I${top_srcdir}/src -o $@ $<
|
2006-10-15 19:02:05 +00:00
|
|
|
endif
|
2006-08-28 14:51:25 +00:00
|
|
|
|
2002-04-16 07:09:16 +00:00
|
|
|
iso-4217-currencies.c: iso-4217-currencies.scm iso-currencies-to-c
|
2003-01-06 07:15:30 +00:00
|
|
|
-chmod u+x ${srcdir}/iso-currencies-to-c
|
2006-09-02 08:52:32 +00:00
|
|
|
GUILE_LOAD_PATH=@GNC_SRFI_LOAD_PATH@:${GUILE_LOAD_PATH} srcdir=${srcdir} ${srcdir}/iso-currencies-to-c
|
2001-12-11 16:19:00 +00:00
|
|
|
|
2006-09-12 13:41:28 +00:00
|
|
|
gncla-dir.h: gncla-dir.h.in ${top_builddir}/config.status Makefile
|
2005-11-02 03:32:36 +00:00
|
|
|
rm -f $@.tmp
|
|
|
|
|
sed < $< > $@.tmp \
|
2006-11-24 13:14:41 +00:00
|
|
|
-e 's#@-DATADIRNAME-@#${DATADIRNAME}#g' \
|
2006-09-12 13:41:28 +00:00
|
|
|
-e 's#@-libdir-@#${libdir}#g' \
|
2006-09-18 20:43:50 +00:00
|
|
|
-e 's#@-sysconfdir-@#${sysconfdir}#g' \
|
|
|
|
|
-e 's#@-datadir-@#${datadir}#g' \
|
2006-09-12 13:41:28 +00:00
|
|
|
-e 's#@-prefix-@#${prefix}#g'
|
2005-11-02 03:32:36 +00:00
|
|
|
mv $@.tmp $@
|
2006-07-25 13:25:26 +00:00
|
|
|
|
|
|
|
|
BUILT_SOURCES = iso-4217-currencies.c \
|
2006-10-15 19:02:05 +00:00
|
|
|
gncla-dir.h
|
2006-07-25 13:25:26 +00:00
|
|
|
|
2006-10-15 19:02:05 +00:00
|
|
|
CLEANFILES = $(BUILT_SOURCES) gnucash .scm-links gncla-dir.h \
|
|
|
|
|
${SCM_FILE_LINKS}
|
|
|
|
|
MAINTAINERCLEANFILES = swig-engine.c
|
2007-02-09 17:35:00 +00:00
|
|
|
|
|
|
|
|
INCLUDES = -DG_LOG_DOMAIN=\"gnc.engine\"
|