diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-04 00:34:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-04 00:34:28 -0400 |
commit | e874e580cf1bde4d0366ae60f5cbe8da9c9c1a04 (patch) | |
tree | 4ff76688fbdda5604d5a1693ab5c1ee13e2ea4b7 /acprep | |
parent | 2e9c14ef30fb8c811c30cab4c192c59462a431ab (diff) | |
download | fork-ledger-e874e580cf1bde4d0366ae60f5cbe8da9c9c1a04.tar.gz fork-ledger-e874e580cf1bde4d0366ae60f5cbe8da9c9c1a04.tar.bz2 fork-ledger-e874e580cf1bde4d0366ae60f5cbe8da9c9c1a04.zip |
Added blank lines to acprep for clarity.
Diffstat (limited to 'acprep')
-rwxr-xr-x | acprep | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -8,13 +8,16 @@ # This script simply sets up the compiler and linker flags for all the various # build permutations I use for testing and profiling. + # Make sure that all of the dependencies are available git submodule init git submodule update + COMMIT=$(git describe --all --long | sed 's/heads\///') echo "m4_define([VERSION_NUMBER], [$COMMIT])" > version.m4 + sh autogen.sh @@ -27,6 +30,7 @@ if [ -z "$PYTHON_VERSION" ]; then PYTHON_VERSION="2.5" fi + BOOST_SUFFIX="" for lib in $(ls -1 /opt/local/lib/libboost_regex*.a \ /usr/local/lib/libboost_regex*.a 2> /dev/null \ @@ -43,12 +47,14 @@ done BOOST_VERSION="1_37" + INCDIRS="-isystem /usr/local/include" INCDIRS="$INCDIRS -isystem /opt/local/include" INCDIRS="$INCDIRS -isystem /opt/local/include/libofx" INCDIRS="$INCDIRS -isystem /usr/local/include/boost-$BOOST_VERSION" INCDIRS="$INCDIRS -isystem $PYTHON_HOME/include/python$PYTHON_VERSION" + CXXFLAGS="" ARCHFLAGS="" LDARCHFLAGS="" @@ -56,6 +62,7 @@ LDFLAGS="" LIBDIRS="-L/usr/local/lib -L$PYTHON_HOME/lib -L/opt/local/lib" LIBDIRS="$LIBDIRS -L$PYTHON_HOME/lib/python$PYTHON_VERSION/config" + SYSTEM=$(uname -s) if [ $SYSTEM = Linux ]; then @@ -67,6 +74,7 @@ elif [ $SYSTEM = Darwin ]; then LDARCHFLAGS="$ARCHFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" fi + # Building the command-line tool as a shared library is a luxury, # since there are no clients except a GUI tool which might use it (and # that is built again anyway by Xcode). @@ -75,6 +83,7 @@ CXXFLAGS="$CXXFLAGS -pipe" LDFLAGS="$LDFLAGS $LIBDIRS" BUILD_DIR=false + # The following are options to prepare a developer tree of Ledger for # building: # @@ -213,9 +222,11 @@ while [ -n "$1" ]; do CXXFLAGS="$CXXFLAGS -Wno-old-style-cast" CXXFLAGS="$CXXFLAGS -Wno-deprecated" - if [ $SYSTEM = Darwin ]; then - CXXFLAGS="$CXXFLAGS -Wno-shorten-64-to-32" - fi + #if [[ -f /opt/local/bin/g++-mp-4.3 ]]; then + # CXX=/opt/local/bin/g++-mp-4.3 + #elif [ $SYSTEM = Darwin ]; then + # CXXFLAGS="$CXXFLAGS -Wno-shorten-64-to-32" + #fi #LDFLAGS="-Wl,-read_only_relocs,suppress" #LIBS="" @@ -301,6 +312,7 @@ PATH="$PYTHON_HOME/bin:$PATH" \ LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ $SWITCHES + # Alter the Makefile so that it's not nearly so verbose. This makes errors # and warnings much easier to spot. @@ -310,6 +322,7 @@ if [ -f Makefile ]; then perl -i -pe 's/^\t(\$\((.*?)LINK\).*)/\t\@echo " " LD \$\@;$1 > \/dev\/null/;' Makefile fi + # If the --build flag was passed, start a build right away with the right # options. |