start hacky experiment to support combining chars
[mu.git] / tools / browse_trace
blobe68b541b9fa1fd0a47e1e62a7de484d0b0fd26c3
1 #!/bin/sh
2 set -e
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 ] && (
11 cd `dirname $0`
12 [ ! -f termbox/libtermbox.a ] && (
13 cd termbox
14 $CC $CFLAGS -c utf8.c
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 $*