From 273a1084ba1512f0b024f0a337fbdf3de74e5d68 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Mar 2009 03:14:02 -0400 Subject: Added a buildlibs phase, for rebuilding Boost The advantage here is that it setups up the compiler path correctly. --- lib/Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'lib') diff --git a/lib/Makefile b/lib/Makefile index 066bc670..67b45485 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -7,22 +7,21 @@ STOW_ROOT = /usr/local/stow -HERE = $(shell pwd) - -BOOST_VER = 1_38_0 +BOOST_SOURCE = boost +BOOST_VERSION = 1_38_0 # architecture=combined boost-release: - (cd boost && \ - bjam release -j3 --prefix=$(STOW_ROOT)/boost_$(BOOST_VER) \ - --build-dir=$(HERE)/boost_$(BOOST_VER)/build --toolset=darwin \ - --build-type=complete install) + (cd $(BOOST_SOURCE) && \ + bjam release -j3 --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION) \ + --build-dir=$(HOME)/Products/boost_$(BOOST_VERSION) \ + --toolset=darwin --build-type=complete install) boost-debug: - (cd boost && \ - bjam debug -j3 --prefix=$(STOW_ROOT)/boost_$(BOOST_VER) \ - --build-dir=$(HERE)/boost_$(BOOST_VER)/build --toolset=darwin \ - --build-type=complete \ + (cd $(BOOST_SOURCE) && \ + bjam debug -j3 --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION) \ + --build-dir=$(HOME)/Products/boost_$(BOOST_VERSION) \ + --toolset=darwin --build-type=complete \ define=_GLIBCXX_DEBUG=1 install) boost-build: boost-release boost-debug @@ -47,3 +46,5 @@ cppunit-debug: make install) cppunit-build: cppunit-release cppunit-debug + +build-all: cppunit-build boost-build -- cgit v1.2.3