#!/bin/bash # This is a rather clunky way to compile and install both debugging # and optimized libs. Masters of Autotools, help me! make clean ./configure --prefix=$(pwd) --enable-debug CFLAGS='-march=athlon64' make install cp channelflow/libchflow.a lib/libchflow-debug.a make clean ./configure --prefix=$(pwd) --enable-profile CFLAGS='-march=athlon64' make install cp channelflow/libchflow.a lib/libchflow-profile.a make clean ./configure --prefix=$(pwd) CFLAGS='-march=athlon64 -O2' make install