cmtools/build/linux/debug/build.sh

26 lines
593 B
Bash
Raw Normal View History

2020-07-30 14:26:58 +00:00
#!/bin/sh
curdir=`pwd`
cd ../../..
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
# --enable-build_libcm - build libcm from local tree
2020-07-30 14:26:58 +00:00
../../../configure --prefix=${curdir} \
--enable-debug \
2020-07-30 14:26:58 +00:00
CFLAGS="-g -Wall" \
CXXFLAGS="-g -Wall" \
CPPFLAGS="-I/home/kevin/src/libcm/build/linux/debug/include " \
LDFLAGS="-L/home/kevin/src/libcm/build/linux/debug/lib"
LIBS=
2020-07-30 14:26:58 +00:00
#make
#make install