diff --git a/Makefile.am b/Makefile.am index 6dea2a5..da66bb8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,10 @@ lib_LTLIBRARIES = bin_PROGRAMS = include_HEADERS = - +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo # C compiler flags # _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double) diff --git a/build/linux/debug/build.sh b/build/linux/debug/build.sh index d53c3ad..7b2f759 100755 --- a/build/linux/debug/build.sh +++ b/build/linux/debug/build.sh @@ -7,6 +7,11 @@ autoreconf --force --install cd ${curdir} +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo + ../../../configure --prefix=${curdir} \ --enable-debug \ CFLAGS="-g -Wall" \ @@ -17,4 +22,4 @@ LIBS= #make -#make install \ No newline at end of file +#make install diff --git a/build/linux/release/build.sh b/build/linux/release/build.sh index d1e4027..768adea 100755 --- a/build/linux/release/build.sh +++ b/build/linux/release/build.sh @@ -7,6 +7,11 @@ autoreconf --force --install cd ${curdir} +# To Profile w/ gprof: +# 1) Modify configure: ./configure --disable-shared CFLAGS="-pg" +# 2) Run the program. ./foo +# 3) Run gprof /libtool --mode=execute gprof ./foo + ../../../configure --prefix=${curdir} \ CFLAGS="-Wall" \ CXXFLAGS="-Wall" \ @@ -16,4 +21,4 @@ LIBS= #make -#make install \ No newline at end of file +#make install