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 =
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)

View File

@ -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
#make install

View File

@ -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
#make install