diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-08 03:45:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-08 03:45:57 -0400 |
commit | b6078393b6b2ff140919234f4904dc09db47ec1b (patch) | |
tree | 7aa80ebed43284acb46393af107f88266519a6d2 | |
parent | e123128da0c26bd17c04911ec114c222fd44be6b (diff) | |
download | fork-ledger-b6078393b6b2ff140919234f4904dc09db47ec1b.tar.gz fork-ledger-b6078393b6b2ff140919234f4904dc09db47ec1b.tar.bz2 fork-ledger-b6078393b6b2ff140919234f4904dc09db47ec1b.zip |
Added a simple Makefile for building some of Ledger's dependency libraries and
installing them into /usr/local/stow. It will likely have to be run using
'sudo make'.
-rw-r--r-- | .gitignore | 33 | ||||
-rw-r--r-- | lib/Makefile | 42 |
2 files changed, 47 insertions, 28 deletions
@@ -26,9 +26,11 @@ /.libs /3.0 /AUTHORS +/AUTHORS /COPYING /ChangeLog /Doxyfile.gen +/INSTALL /Makefile /Makefile.in /PyUnitTests @@ -39,7 +41,7 @@ /acconf.h.in /acconf.h.in~ /aclocal.m4 -/autom4te.cache +/autom4te.cache/ /config.guess /config.log /config.status @@ -47,6 +49,7 @@ /configure /configure.in /depcomp +/doc/*.info /doc/*.pdf /doc/.dirstamp /doc/Doxyfile.bak @@ -57,6 +60,7 @@ /elisp-comp /install-sh /ledger +/ledger-*/ /ledger.info /ledger.so /libtool @@ -68,30 +72,3 @@ /system.hh.gch /texinfo.tex /version.m4 -/AUTHORS -/INSTALL -Makefile -Makefile.in -TAGS -acconf.h -acconf.h.in -aclocal.m4 -autom4te.cache/ -config.guess -config.log -config.status -config.sub -configure -depcomp -doc/*.info -elc-stamp -elisp-comp -install-sh -ledger -ledger-*/ -ledger.info -libtool -ltmain.sh -missing -stamp-h1 -texinfo.tex diff --git a/lib/Makefile b/lib/Makefile new file mode 100644 index 00000000..39c85c9b --- /dev/null +++ b/lib/Makefile @@ -0,0 +1,42 @@ +# 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 + +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 \ + architecture=combined define=_GLIBCXX_DEBUG=1 install) + +cppunit: + (cd cppunit; \ + configure CFLAGS="$(ARCH_CFLAGS)" \ + LDFLAGS="$(ARCH_LDFLAGS)" \ + --prefix=$(STOW_ROOT)/cppunit \ + --disable-dependency-tracking && \ + make install) + (cd cppunit; \ + 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: + (cd gdtoa; \ + configure CFLAGS="$(ARCH_CFLAGS)" \ + LDFLAGS="$(ARCH_LDFLAGS)" \ + --prefix=$(STOW_ROOT)/gdtoa \ + --disable-dependency-tracking && \ + make install) |