4 test "$CXX" ||
export CXX
=c
++
5 test "$CC" ||
export CC
=cc
6 test "$CFLAGS" ||
export CFLAGS
="-g -O2"
7 export CFLAGS
="$CFLAGS -Wall -Wextra -ftrapv -fno-strict-aliasing"
9 # build if doesn't exist
10 [ ! -f `dirname $0`/browse_trace_bin
] && (
12 [ ! -f termbox
/libtermbox.a
] && (
15 $CC $CFLAGS -c termbox.c
16 ar rcs libtermbox.a
*.o
18 $CXX $CFLAGS browse_trace.cc termbox
/libtermbox.a
-o browse_trace_bin
21 `dirname $0`/browse_trace_bin $
*