summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am48
1 files changed, 20 insertions, 28 deletions
diff --git a/Makefile.am b/Makefile.am
index 191017d2..098088ee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,16 +1,18 @@
-lib_LTLIBRARIES = libamounts.la
-libamounts_la_SOURCES = amount.cc balance.cc value.cc
-libamounts_la_LDFLAGS = -version-info 2:0
-
-lib_LTLIBRARIES += libledger.la
-libledger_la_SOURCES = autoxact.cc binary.cc config.cc datetime.cc \
- format.cc journal.cc option.cc parser.cc qif.cc quotes.cc \
- textual.cc valexpr.cc walk.cc
+lib_LTLIBRARIES = libledger.la
+libledger_la_SOURCES = amount.cc balance.cc value.cc autoxact.cc \
+ binary.cc config.cc datetime.cc format.cc journal.cc option.cc \
+ parser.cc qif.cc quotes.cc textual.cc valexpr.cc walk.cc
if READ_GNUCASH
libledger_la_SOURCES += gnucash.cc
endif
+if HAVE_BOOST_PYTHON
+libledger_la_SOURCES += python.cc
+libledger_la_CXXFLAGS = -DUSE_BOOST_PYTHON=1
+else
+libledger_la_CXXFLAGS =
+endif
if DEBUG
-libledger_la_CXXFLAGS = -DDEBUG_LEVEL=4
+libledger_la_CXXFLAGS += -DDEBUG_LEVEL=4
libledger_la_SOURCES += debug.cc
endif
libledger_la_LDFLAGS = -version-info 2:0
@@ -22,7 +24,7 @@ if DEBUG
ledger_CXXFLAGS = -DDEBUG_LEVEL=4
endif
ledger_SOURCES = main.cc
-ledger_LDADD = $(LIBOBJS) libamounts.la libledger.la
+ledger_LDADD = $(LIBOBJS) libledger.la -lboost_python -L/sw/lib/python2.3/config -lpython2.3
nobase_include_HEADERS = \
amount.h \
@@ -48,17 +50,12 @@ info_TEXINFOS = ledger.texi
######################################################################
-if HAVE_PYTHON
if HAVE_BOOST_PYTHON
-noinst_LIBRARIES = libamounts_bpy.a
-libamounts_bpy_a_SOURCES = amount.cc balance.cc value.cc
-libamounts_bpy_a_CXXFLAGS = -DUSE_BOOST_PYTHON=1
-
-noinst_LIBRARIES += libledger_bpy.a
-libledger_bpy_a_SOURCES = autoxact.cc binary.cc config.cc datetime.cc \
- format.cc journal.cc option.cc parser.cc qif.cc quotes.cc \
- textual.cc valexpr.cc walk.cc
+noinst_LIBRARIES = libledger_bpy.a
+libledger_bpy_a_SOURCES = amount.cc balance.cc value.cc autoxact.cc \
+ binary.cc config.cc datetime.cc format.cc journal.cc option.cc \
+ parser.cc qif.cc quotes.cc textual.cc valexpr.cc walk.cc python.cc
libledger_bpy_a_CXXFLAGS = -DUSE_BOOST_PYTHON=1
if READ_GNUCASH
libledger_bpy_a_SOURCES += gnucash.cc
@@ -68,17 +65,12 @@ libledger_bpy_a_CXXFLAGS += -DDEBUG_LEVEL=4
libledger_bpy_a_SOURCES += debug.cc
endif
-bin_PROGRAMS += amounts.so ledger.so
-
-amounts.so: pyamounts.cc libamounts_bpy.a
- CFLAGS="$(CPPFLAGS) -L." python setup_amounts.py build --build-lib=.
+bin_PROGRAMS += ledger.so
-ledger.so: pyledger.cc libamounts_bpy.a libledger_bpy.a
- CFLAGS="$(CPPFLAGS) -L." python setup_ledger.py build --build-lib=.
+ledger.so: pyledger.cc libledger_bpy.a
+ CFLAGS="$(CPPFLAGS) -L." python setup.py build --build-lib=.
install-exec-hook:
- CFLAGS="$(CPPFLAGS) -L." python setup_amounts.py install --prefix=$(DESTDIR)
- CFLAGS="$(CPPFLAGS) -L." python setup_ledger.py install --prefix=$(DESTDIR)
+ CFLAGS="$(CPPFLAGS) -L." python setup.py install --prefix=$(DESTDIR)
endif
-endif