HFST: How-to use VPATH property of Autoconfiscation tools to build debug and optimised version from the same source

This applies to all autoconfiscated project that have proper configs and makefiles:

 svn co https://hfst.svn.sourceforge.net/svnroot/hfst hfst-sources
mkdir hfst-debug hfst-home hfst-optimised
cd hfst-source
autoreconf -i
cd ../hfst-debug
../hfst-source/configure CXXFLAGS="-ggdb -fno-inline"
make check
cd ../hfst-home
../hfst-source/configure --prefix=${HOME}
make install
cd ../hfst-optimised
../hfst-source/configure CXXFLAGS="-O99 -funroll-loops -ffast-math -faster-harder-louder -pg" 
make install 

Topic revision: r1 - 2011-06-20 - TommiPirinen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback