<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,15 +3,25 @@
 # installation.
 
 STOW_ROOT = /usr/local/stow
+PRODUCTS  = $(HOME)/Products
+
+EXTRA_DEFINES = -D_GLIBCXX_FULLY_DYNAMIC_STRING=1
 
 BOOST_SOURCE  = boost
 BOOST_VERSION = 1_40_0
+BOOST_TOOLSET = darwin
+BOOST_DEFINES = define=_GLIBCXX_FULLY_DYNAMIC_STRING=1
+BOOST_FLAGS   = --toolset=$(BOOST_TOOLSET) \
+		--build-type=complete --layout=versioned \
+		$(BOOST_DEFINES)
+ICU_FLAGS     = -sHAVE_ICU=1 -sICU_PATH=$(STOW_ROOT)/icu 
+ICU_DBG_FLAGS = -sHAVE_ICU=1 -sICU_PATH=$(STOW_ROOT)/icu-debug
 
 icu-release:
 	-(cd icu/source; make distclean)
 	(cd icu/source; sh autogen.sh; \
-	 ./configure CPPFLAGS=&quot;&quot; \
-		     CFLAGS=&quot;$(ARCH_CFLAGS)&quot; \
+	 ./configure CPPFLAGS=&quot;$(EXTRA_DEFINES)&quot; \
+		     CFLAGS=&quot;$(EXTRA_DEFINES) $(ARCH_CFLAGS)&quot; \
 		     LDFLAGS=&quot;$(ARCH_LDFLAGS)&quot; \
 		     CC=&quot;$(CC)&quot; CXX=&quot;$(CXX)&quot; LD=&quot;$(LD)&quot; \
 		     --enable-static \
@@ -21,8 +31,8 @@ icu-release:
 icu-debug:
 	-(cd icu/source; make distclean)
 	(cd icu/source; sh autogen.sh; \
-	 ./configure CPPFLAGS=&quot;-D_GLIBCXX_DEBUG=1&quot; \
-		     CFLAGS=&quot;-g $(ARCH_CFLAGS)&quot; \
+	 ./configure CPPFLAGS=&quot;-D_GLIBCXX_DEBUG=1 $(EXTRA_DEFINES)&quot; \
+		     CFLAGS=&quot;-g $(EXTRA_DEFINES) $(ARCH_CFLAGS)&quot; \
 		     LDFLAGS=&quot;-g $(ARCH_LDFLAGS)&quot; \
 		     CC=&quot;$(CC)&quot; CXX=&quot;$(CXX)&quot; LD=&quot;$(LD)&quot; \
 		     --enable-static --enable-debug \
@@ -31,28 +41,40 @@ icu-debug:
 
 icu-build: icu-release icu-debug
 
+boost-icu-release:
+	(cd $(BOOST_SOURCE) &amp;&amp; \
+	bjam release --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION)-icu \
+	    --build-dir=$(PRODUCTS)/boost_$(BOOST_VERSION)-icu \
+	    $(BOOST_FLAGS) $(ICU_FLAGS) install)
+
+boost-icu-debug:
+	(cd $(BOOST_SOURCE) &amp;&amp; \
+	bjam debug --prefix=$(STOW_ROOT)/boost_$(BOOST_VERSION)-icu \
+	    --build-dir=$(PRODUCTS)/boost_$(BOOST_VERSION)-icu \
+	    $(BOOST_FLAGS) define=_GLIBCXX_DEBUG=1 \
+	    $(ICU_DBG_FLAGS) install)
+
+boost-icu-build: boost-icu-release boost-icu-debug
+
 boost-release:
 	(cd $(BOOST_SOURCE) &amp;&amp; \
 	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)
+	    --build-dir=$(PRODUCTS)/boost_$(BOOST_VERSION) \
+	    $(BOOST_FLAGS) install)
 
 boost-debug:
 	(cd $(BOOST_SOURCE) &amp;&amp; \
 	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)
+	    --build-dir=$(PRODUCTS)/boost_$(BOOST_VERSION) \
+	    $(BOOST_FLAGS) define=_GLIBCXX_DEBUG=1 install)
 
 boost-build: boost-release boost-debug
 
 cppunit-release:
 	-(cd cppunit; make distclean)
 	(cd cppunit; sh autogen.sh; \
-	 ./configure CPPFLAGS=&quot;&quot; \
-		     CFLAGS=&quot;$(ARCH_CFLAGS)&quot; \
+	 ./configure CPPFLAGS=&quot;$(EXTRA_DEFINES)&quot; \
+		     CFLAGS=&quot;$(EXTRA_DEFINES) $(ARCH_CFLAGS)&quot; \
 		     LDFLAGS=&quot;$(ARCH_LDFLAGS)&quot; \
 		     CC=&quot;$(CC)&quot; CXX=&quot;$(CXX)&quot; LD=&quot;$(LD)&quot; \
 		     --prefix=$(STOW_ROOT)/cppunit &amp;&amp; \
@@ -61,8 +83,8 @@ cppunit-release:
 cppunit-debug:
 	-(cd cppunit; make distclean)
 	(cd cppunit; sh autogen.sh; \
-	 ./configure CPPFLAGS=&quot;-D_GLIBCXX_DEBUG=1&quot; \
-		     CFLAGS=&quot;-g $(ARCH_CFLAGS)&quot; \
+	 ./configure CPPFLAGS=&quot;-D_GLIBCXX_DEBUG=1 $(EXTRA_DEFINES)&quot; \
+		     CFLAGS=&quot;-g $(EXTRA_DEFINES) $(ARCH_CFLAGS)&quot; \
 		     LDFLAGS=&quot;-g $(ARCH_LDFLAGS)&quot; \
 		     CC=&quot;$(CC)&quot; CXX=&quot;$(CXX)&quot; LD=&quot;$(LD)&quot; \
 		     --prefix=$(STOW_ROOT)/cppunit-debug &amp;&amp; \
@@ -70,4 +92,4 @@ cppunit-debug:
 
 cppunit-build: cppunit-release cppunit-debug
 
-all: boost-build cppunit-build
+all: boost-build boost-icu-build cppunit-build</diff>
      <filename>lib/Makefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9b1e4d1dbf97f20232d866ccb9533bac36909617</id>
    </parent>
  </parents>
  <author>
    <name>John Wiegley</name>
    <email>johnw@newartisans.com</email>
  </author>
  <url>http://github.com/jwiegley/ledger/commit/188bf10b6c971caf9565b89361d8d82678307653</url>
  <id>188bf10b6c971caf9565b89361d8d82678307653</id>
  <committed-date>2009-11-08T10:36:04-08:00</committed-date>
  <authored-date>2009-11-08T10:36:04-08:00</authored-date>
  <message>Improved lib/Makefile</message>
  <tree>3571d4bac05fc4ae6f84632994689ff46910dddc</tree>
  <committer>
    <name>John Wiegley</name>
    <email>johnw@newartisans.com</email>
  </committer>
</commit>
