2008-07-07 21:11:02 +00:00
|
|
|
SUBDIRS = . tests
|
|
|
|
|
|
2010-05-25 19:26:50 +00:00
|
|
|
SWIG_FILES = gnucash_core.i timespec.i
|
2008-12-31 20:42:29 +00:00
|
|
|
|
2008-12-31 20:06:14 +00:00
|
|
|
pkgpython_PYTHON = \
|
|
|
|
|
__init__.py \
|
|
|
|
|
function_class.py \
|
|
|
|
|
gnucash_core.py \
|
|
|
|
|
gnucash_core_c.py \
|
|
|
|
|
gnucash_business.py
|
2008-07-07 19:18:26 +00:00
|
|
|
|
|
|
|
|
pkgpyexec_LTLIBRARIES = _gnucash_core_c.la
|
2008-12-31 20:06:14 +00:00
|
|
|
|
|
|
|
|
_gnucash_core_c_la_SOURCES = \
|
2010-08-17 19:52:24 +00:00
|
|
|
gnucash_core.c
|
2008-12-31 20:06:14 +00:00
|
|
|
|
|
|
|
|
_gnucash_core_c_la_CPPFLAGS = \
|
|
|
|
|
$(PYTHON_CPPFLAGS) \
|
|
|
|
|
$(GLIB_CFLAGS) \
|
2010-08-14 20:48:18 +00:00
|
|
|
$(GNOME_CFLAGS) \
|
2009-04-07 00:48:53 +00:00
|
|
|
-I${top_srcdir}/src/libqof/qof \
|
2008-12-31 20:06:14 +00:00
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
|
-I$(top_srcdir)/src/engine \
|
2010-08-14 20:48:18 +00:00
|
|
|
-I$(top_srcdir)/src/business/business-core \
|
|
|
|
|
-I${top_srcdir}/src/gnome-utils \
|
|
|
|
|
-I${top_srcdir}/src/app-utils \
|
|
|
|
|
-I${top_srcdir}/src/gnc-module \
|
|
|
|
|
-I${top_srcdir}/src/gnome \
|
|
|
|
|
-I${top_srcdir}/src/core-utils \
|
|
|
|
|
-I${top_srcdir}/src/gnc-module
|
2008-07-07 19:18:26 +00:00
|
|
|
|
|
|
|
|
# Suppress all warnings for now, but we really only need to -Wno-implicit
|
|
|
|
|
AM_CFLAGS = -w
|
|
|
|
|
|
|
|
|
|
_gnucash_core_c_la_LDFLAGS = -avoid-version -module
|
|
|
|
|
|
2008-12-31 20:06:14 +00:00
|
|
|
_gnucash_core_c_la_LIBADD = \
|
|
|
|
|
${GLIB_LIBS} \
|
2010-08-14 20:48:18 +00:00
|
|
|
${GNOME_LIBS} \
|
|
|
|
|
${GLADE_LIBS} \
|
2009-04-07 00:48:53 +00:00
|
|
|
${top_builddir}/src/libqof/qof/libgnc-qof.la \
|
2008-12-31 20:06:14 +00:00
|
|
|
${top_builddir}/src/gnc-module/libgnc-module.la \
|
|
|
|
|
${top_builddir}/src/engine/libgncmod-engine.la \
|
2010-06-25 09:53:10 +00:00
|
|
|
${top_builddir}/src/backend/xml/libgncmod-backend-xml.la \
|
2010-07-15 20:05:40 +00:00
|
|
|
${top_builddir}/src/backend/dbi/libgncmod-backend-dbi.la
|
2008-12-31 20:06:14 +00:00
|
|
|
if BUILDING_FROM_SVN
|
2010-05-25 19:26:50 +00:00
|
|
|
gnucash_core.c: $(SWIG_FILES) ${top_srcdir}/src/base-typemaps.i $(top_builddir)/config.h
|
2009-04-13 16:14:40 +00:00
|
|
|
swig -python -Wall -Werror \
|
2008-07-07 19:18:26 +00:00
|
|
|
-I$(top_srcdir)/src -I$(top_srcdir)/src/engine \
|
2008-07-07 21:11:02 +00:00
|
|
|
-I$(top_srcdir)/src/business/business-core \
|
2009-04-07 00:48:53 +00:00
|
|
|
-I${top_srcdir}/src/libqof/qof \
|
|
|
|
|
-o $@ $<
|
2008-12-31 20:42:29 +00:00
|
|
|
|
2010-05-25 19:26:50 +00:00
|
|
|
gnucash_core_c.py: gnucash_core.c $(SWIG_FILES)
|
2008-12-31 20:06:14 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2010-05-25 19:26:50 +00:00
|
|
|
$(SWIG_FILES) \
|
2008-12-31 20:06:14 +00:00
|
|
|
example_scripts/simple_book.py \
|
|
|
|
|
example_scripts/simple_session.py \
|
|
|
|
|
example_scripts/simple_test.py \
|
2010-06-25 11:06:29 +00:00
|
|
|
example_scripts/simple_business_create.py \
|
|
|
|
|
example_scripts/simple_invoice_insert.py \
|
2010-06-30 19:26:57 +00:00
|
|
|
example_scripts/simple_sqlite_create.py \
|
|
|
|
|
example_scripts/change_tax_code.py \
|
|
|
|
|
example_scripts/account_analysis.py \
|
|
|
|
|
example_scripts/new_book_with_opening_balances.py \
|
2010-08-04 21:11:11 +00:00
|
|
|
example_scripts/test_imbalance_transaction.py \
|
2008-12-31 20:42:29 +00:00
|
|
|
glib.i
|
2008-12-31 20:06:14 +00:00
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = gnucash-core.c
|
2010-08-14 20:48:18 +00:00
|
|
|
|