blob: 3a9c3214e33aedfd4f551fa3b8ece8d86605b995 (
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
|
# Uncomment these if you are on OS X and want to build universal libraries.
# This is only important if you intend to produce a Ledger binary for
# installation.
STOW_ROOT = /usr/local/stow
BOOST_SOURCE = boost
BOOST_VERSION = 1_40_0
icu-release:
-(cd icu/source; make distclean)
(cd icu/source; sh autogen.sh; \
./configure CPPFLAGS="" \
CFLAGS="$(ARCH_CFLAGS)" \
LDFLAGS="$(ARCH_LDFLAGS)" \
CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
--enable-static \
--prefix=$(STOW_ROOT)/icu && \
make install)
icu-debug:
-(cd icu/source; make distclean)
(cd icu/source; sh autogen.sh; \
./configure CPPFLAGS="-D_GLIBCXX_DEBUG=1" \
CFLAGS="-g $(ARCH_CFLAGS)" \
LDFLAGS="-g $(ARCH_LDFLAGS)" \
CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
--enable-static --enable-debug \
--prefix=$(STOW_ROOT)/icu-debug && \
make install)
icu-build: icu-release icu-debug
boost-release:
(cd $(BOOST_SOURCE) && \
bjam release --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION) \
--build-dir=$(HOME)/Products/boost_$(BOOST_VERSION) \
--toolset=darwin --build-type=complete --layout=versioned \
-sHAVE_ICU=1 -sICU_PATH=/usr/local/stow/icu install)
boost-debug:
(cd $(BOOST_SOURCE) && \
bjam debug --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION) \
--build-dir=$(HOME)/Products/boost_$(BOOST_VERSION) \
--toolset=darwin --build-type=complete --layout=versioned \
define=_GLIBCXX_DEBUG=1 \
-sHAVE_ICU=1 -sICU_PATH=/usr/local/stow/icu-debug install)
boost-build: boost-release boost-debug
cppunit-release:
-(cd cppunit; make distclean)
(cd cppunit; sh autogen.sh; \
./configure CPPFLAGS="" \
CFLAGS="$(ARCH_CFLAGS)" \
LDFLAGS="$(ARCH_LDFLAGS)" \
CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
--prefix=$(STOW_ROOT)/cppunit && \
make install)
cppunit-debug:
-(cd cppunit; make distclean)
(cd cppunit; sh autogen.sh; \
./configure CPPFLAGS="-D_GLIBCXX_DEBUG=1" \
CFLAGS="-g $(ARCH_CFLAGS)" \
LDFLAGS="-g $(ARCH_LDFLAGS)" \
CC="$(CC)" CXX="$(CXX)" LD="$(LD)" \
--prefix=$(STOW_ROOT)/cppunit-debug && \
make install)
cppunit-build: cppunit-release cppunit-debug
all: boost-build cppunit-build
|