blob: e9c6070a24b451e6501a5d3bcc83447fd71f37f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
EXTRA_DIST = LICENSE scripts ledger.vim sample.dat
lib_LTLIBRARIES = libamounts.la libledger.la
libamounts_la_CXXFLAGS =
libamounts_la_SOURCES = \
amount.cc \
balance.cc \
datetime.cc \
value.cc
if HAVE_BOOST_PYTHON
libamounts_la_CXXFLAGS += -DUSE_BOOST_PYTHON=1
endif
if DEBUG
libamounts_la_CXXFLAGS += -DDEBUG_LEVEL=4
libamounts_la_SOURCES += debug.cc
endif
libledger_la_CXXFLAGS =
libledger_la_SOURCES = \
binary.cc \
config.cc \
csv.cc \
derive.cc \
emacs.cc \
format.cc \
journal.cc \
mask.cc \
option.cc \
parser.cc \
qif.cc \
quotes.cc \
reconcile.cc \
report.cc \
startup.cc \
textual.cc \
valexpr.cc \
walk.cc \
xml.cc
if HAVE_EXPAT
libledger_la_CXXFLAGS += -DHAVE_EXPAT=1
libledger_la_SOURCES += gnucash.cc
endif
if HAVE_XMLPARSE
libledger_la_CXXFLAGS += -DHAVE_XMLPARSE=1
libledger_la_SOURCES += gnucash.cc
endif
if HAVE_LIBOFX
libledger_la_CXXFLAGS += -DHAVE_LIBOFX=1
libledger_la_SOURCES += ofx.cc
endif
if DEBUG
libledger_la_CXXFLAGS += -DDEBUG_LEVEL=4
endif
libledger_la_LDFLAGS = -release 2.6.1
pkginclude_HEADERS = \
acconf.h \
\
amount.h \
balance.h \
datetime.h \
value.h \
debug.h \
util.h \
\
binary.h \
config.h \
csv.h \
derive.h \
emacs.h \
error.h \
format.h \
gnucash.h \
journal.h \
ledger.h \
mask.h \
option.h \
parser.h \
qif.h \
ofx.h \
quotes.h \
reconcile.h \
report.h \
textual.h \
timing.h \
valexpr.h \
walk.h \
xml.h
######################################################################
bin_PROGRAMS = ledger
ledger_CXXFLAGS =
ledger_SOURCES = main.cc
ledger_LDADD = $(LIBOBJS) libamounts.la libledger.la
if HAVE_EXPAT
ledger_CXXFLAGS += -DHAVE_EXPAT=1
endif
if HAVE_XMLPARSE
ledger_CXXFLAGS += -DHAVE_XMLPARSE=1
endif
if HAVE_LIBOFX
ledger_CXXFLAGS += -DHAVE_LIBOFX=1
endif
if DEBUG
ledger_CXXFLAGS += -DDEBUG_LEVEL=4
endif
ledger_LDFLAGS = -static # for the sake of command-line speed
info_TEXINFOS = ledger.texi
######################################################################
lisp_LISP = ledger.el timeclock.el
dist_lisp_LISP = ledger.el timeclock.el
######################################################################
EXTRA_DIST += setup.py
if HAVE_BOOST_PYTHON
noinst_PROGRAMS = amounts.so
amounts_so_SOURCES = amounts.cc fdstream.hpp
amounts.so: amounts.cc libamounts.la
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libamounts_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS) -L$(top_builddir) -L$(top_builddir)/.libs" \
ARCHFLAGS="$(ARCHFLAGS)" SRCDIR="$(srcdir)" \
python setup.py build --build-lib=$(top_builddir)
install-exec-hook:
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libamounts_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
LDFLAGS="$(LDFLAGS) -L$(top_builddir) -L$(top_builddir)/.libs" \
ARCHFLAGS="$(ARCHFLAGS)" SRCDIR="$(srcdir)" \
python setup.py install --prefix=$(prefix) --root=$(DESTDIR)/
endif
######################################################################
TESTS = RegressionTests
DISTCLEANFILES = RegressionTests
RegressionTests:
echo "exit 0" > $@
chmod 755 $@
######################################################################
copy-sources:
-mkdir /tmp/ledger
rsync -av --delete $(srcdir)/.git/ /tmp/ledger/.git/
(cd /tmp/ledger; git reset --hard HEAD; git clean -x -d -f)
release: copy-sources
(cd /tmp/ledger; ./acprep --local && \
make -j3 \
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
LDFLAGS="-L/usr/local/lib -L/opt/local/lib" \
ARCHFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
CXXFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
LDFLAGS="$LDFLAGS -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" \
DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking")
release-distcheck: copy-sources
(cd /tmp/ledger; ./acprep --local && \
make -j3 distcheck \
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
LDFLAGS="-L/usr/local/lib -L/opt/local/lib" \
ARCHFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
CXXFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
LDFLAGS="$LDFLAGS -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" \
DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking")
# Makefile.am ends here
|