diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-12 02:05:13 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-12 02:05:13 -0400 |
commit | a2fbe963c3517b5fe049d53a9a69ad8d4c484f12 (patch) | |
tree | 6acd9d4799bd53545977c88ea771650d1ec3fce6 /lib/Makefile | |
parent | 622a0396e10f0916832a9803dddedb4609d3b498 (diff) | |
download | fork-ledger-a2fbe963c3517b5fe049d53a9a69ad8d4c484f12.tar.gz fork-ledger-a2fbe963c3517b5fe049d53a9a69ad8d4c484f12.tar.bz2 fork-ledger-a2fbe963c3517b5fe049d53a9a69ad8d4c484f12.zip |
Fix up the build process in lib/Makefile.
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/lib/Makefile b/lib/Makefile index 39c85c9b..7df3ed3b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -7,36 +7,51 @@ STOW_ROOT = /usr/local/stow -all: boost cppunit # gdtoa - -boost: - (cd boost; \ - bjam release --prefix=$(STOW_ROOT)/boost \ - --build-dir=/tmp/boost --toolset=darwin \ - architecture=combined install && \ - bjam debug --prefix=$(STOW_ROOT)/boost \ - --build-dir=/tmp/boost --toolset=darwin \ +HERE = $(shell pwd) + +all: boost-build cppunit-build # gdtoa + +boost-release: + (cd boost && \ + bjam release -j3 --prefix=$(STOW_ROOT)/boost \ + --build-dir=$(HERE)/boost/build --toolset=darwin \ + architecture=combined install) + +boost-debug: + (cd boost && \ + bjam debug -j3 --prefix=$(STOW_ROOT)/boost \ + --build-dir=$(HERE)/boost/build --toolset=darwin \ architecture=combined define=_GLIBCXX_DEBUG=1 install) -cppunit: +boost-build: boost-release boost-debug + +cppunit-release: + -(cd cppunit; make distclean) (cd cppunit; \ - configure CFLAGS="$(ARCH_CFLAGS)" \ + ./configure CFLAGS="$(ARCH_CFLAGS)" \ LDFLAGS="$(ARCH_LDFLAGS)" \ --prefix=$(STOW_ROOT)/cppunit \ --disable-dependency-tracking && \ make install) + +cppunit-debug: + -(cd cppunit; make distclean) (cd cppunit; \ - configure CPPFLAGS="-D_GLIBCXX_DEBUG=1" \ + ./configure CPPFLAGS="-D_GLIBCXX_DEBUG=1" \ CFLAGS="-g $(ARCH_CFLAGS)" \ LDFLAGS="-g $(ARCH_LDFLAGS)" \ --prefix=$(STOW_ROOT)/cppunit-debug \ --disable-dependency-tracking && \ make install) -gdtoa: +cppunit-build: cppunit-release cppunit-debug + +gdtoa-debug: (cd gdtoa; \ - configure CFLAGS="$(ARCH_CFLAGS)" \ - LDFLAGS="$(ARCH_LDFLAGS)" \ + ./configure CFLAGS="-g $(ARCH_CFLAGS)" \ + LDFLAGS="-g $(ARCH_LDFLAGS)" \ --prefix=$(STOW_ROOT)/gdtoa \ --disable-dependency-tracking && \ make install) + +gdtoa-build: gdtoa-debug |