2023-02-20 10:05:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-08-09 17:04:59 +00:00
|
|
|
BINDIR=../../build/bin
|
2023-02-20 10:05:01 +00:00
|
|
|
SRCDIR=../../src
|
2023-08-09 17:04:59 +00:00
|
|
|
EXTDIR=../../ext
|
2023-02-20 10:05:01 +00:00
|
|
|
|
2023-08-09 17:04:59 +00:00
|
|
|
INCLUDES="-I$SRCDIR -I$EXTDIR"
|
2023-02-21 16:09:26 +00:00
|
|
|
LIBS="-L$BINDIR -lmilepost"
|
|
|
|
FLAGS="-mmacos-version-min=10.15.4 -DDEBUG -DLOG_COMPILE_DEBUG"
|
2023-02-20 10:05:01 +00:00
|
|
|
|
|
|
|
clang -g $FLAGS $LIBS $INCLUDES -o $BINDIR/example_canvas main.c
|
2023-06-20 09:45:59 +00:00
|
|
|
|
|
|
|
install_name_tool -add_rpath "@executable_path" $BINDIR/example_canvas
|