Makefile.am,debug/build.sh,release/build.sh : Added note on using gprof

This commit is contained in:
kevin 2014-01-26 16:12:22 -05:00
parent 104d4c2a52
commit 78732f60e8
3 changed files with 16 additions and 3 deletions

View File

@ -3,7 +3,10 @@ lib_LTLIBRARIES =
bin_PROGRAMS = bin_PROGRAMS =
include_HEADERS = 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 # C compiler flags
# _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double) # _GNU_SOURCE - turns on GNU specific extensions and gives correct prototype for double log2(double)

View File

@ -7,6 +7,11 @@ autoreconf --force --install
cd ${curdir} 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} \ ../../../configure --prefix=${curdir} \
--enable-debug \ --enable-debug \
CFLAGS="-g -Wall" \ CFLAGS="-g -Wall" \

View File

@ -7,6 +7,11 @@ autoreconf --force --install
cd ${curdir} 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} \ ../../../configure --prefix=${curdir} \
CFLAGS="-Wall" \ CFLAGS="-Wall" \
CXXFLAGS="-Wall" \ CXXFLAGS="-Wall" \