summaryrefslogtreecommitdiff
path: root/lib/Makefile
blob: b4db93693b595e0a01c1dc6f8869be82c148fcd2 (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
# 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.

#ARCH_CFLAGS = -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk
#ARCH_LDFLAGS = -g -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk

STOW_ROOT = /usr/local/stow

HERE = $(shell pwd)

all:
	@echo Making libraries...

# architecture=combined
boost-release:
	(cd boost && \
	bjam release -j3 --prefix=$(STOW_ROOT)/boost \
	    --build-dir=$(HERE)/boost/build --toolset=darwin \
	    --build-type=complete install)

boost-debug:
	(cd boost && \
	bjam debug -j3 --prefix=$(STOW_ROOT)/boost \
	    --build-dir=$(HERE)/boost/build --toolset=darwin \
	    --build-type=complete \
	    define=_GLIBCXX_DEBUG=1 install)

boost-build: boost-release boost-debug

cppunit-release:
	-(cd cppunit; make distclean)
	(cd cppunit; sh autogen.sh; \
	 ./configure CFLAGS="$(ARCH_CFLAGS)" \
		   LDFLAGS="$(ARCH_LDFLAGS)" \
		--prefix=$(STOW_ROOT)/cppunit \
		--disable-dependency-tracking && \
	 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)" \
		--prefix=$(STOW_ROOT)/cppunit-debug \
		--disable-dependency-tracking && \
	 make install)

cppunit-build: cppunit-release cppunit-debug