# HG changeset patch # User John Tsiombikas # Date 1348178735 -10800 # Node ID 508540dae114f1e52ce0c668d9f743dffe3bcfee # Parent f9b8bbebc9b33a16cd2a6a168be581c03fe79c5d build crap diff -r f9b8bbebc9b3 -r 508540dae114 prototype/Makefile.in --- a/prototype/Makefile.in Thu Sep 20 10:04:25 2012 +0300 +++ b/prototype/Makefile.in Fri Sep 21 01:05:35 2012 +0300 @@ -15,9 +15,9 @@ inc = -I. -Isrc -Ivmath -Idrawtext -Ikdtree `pkg-config --cflags freetype2` -CFLAGS = -pedantic $(warn) $(dbg) $(opt) $(inc) +CFLAGS = -pedantic $(warn) $(dbg) $(prof) $(opt) $(inc) CXXFLAGS = $(CFLAGS) $(cxx11_cflags) -LDFLAGS = $(cxx11_ldflags) $(libgl) $(libal) -lvorbisfile -lm -lassimp -limago -lpsys `pkg-config --libs freetype2` +LDFLAGS = $(cxx11_ldflags) $(prof) $(libgl) $(libal) -lvorbisfile -lm -lassimp -limago -lpsys `pkg-config --libs freetype2` ifeq ($(shell uname -s), Darwin) libgl = -framework OpenGL -framework GLUT -lglew diff -r f9b8bbebc9b3 -r 508540dae114 prototype/configure --- a/prototype/configure Thu Sep 20 10:04:25 2012 +0300 +++ b/prototype/configure Fri Sep 21 01:05:35 2012 +0300 @@ -2,6 +2,7 @@ opt=false dbg=true +profiling=false while [ $# -gt 0 ]; do case $1 in @@ -9,10 +10,10 @@ PREFIX=`echo $1 | sed 's/--prefix=//'` ;; --enable-*) - `echo $1 | sed 's/--enable-//'`=true + export `echo $1 | sed 's/--enable-//'`=true ;; --disable-*) - `echo $1 | sed 's/--disable-//'`=false + export `echo $1 | sed 's/--disable-//'`=false ;; esac shift @@ -26,6 +27,9 @@ if $dbg; then echo 'dbg = -g' >>Makefile fi +if $profiling; then + echo 'prof = -pg' >>Makefile +fi # determine the C++11 flags we need to pass to the C++ compiler if [ -z "$CXX" ]; then