orca/tests/files/build.sh

18 lines
426 B
Bash
Raw Normal View History

2023-05-26 09:40:00 +00:00
#!/bin/bash
LIBDIR=../../bin
RESDIR=../../resources
2023-08-09 13:24:12 +00:00
SRCDIR=../../milepost/src
2023-05-26 09:40:00 +00:00
INCLUDES="-I$SRCDIR -I$SRCDIR/util -I$SRCDIR/platform -I$SRCDIR/app"
LIBS="-L$LIBDIR -lmilepost"
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
if [ ! \( -e bin \) ] ; then
mkdir ./bin
fi
clang -g $FLAGS $LIBS $INCLUDES -o ./bin/test_files main.c
install_name_tool -add_rpath "@executable_path/../../../bin" ./bin/test_files