16 lines
345 B
Bash
Executable File
16 lines
345 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
cd "$(dirname "$0")"
|
|
echo "Entering directory '$PWD'"
|
|
chibi=$(pkg-config --cflags --libs chibi-scheme)
|
|
soext=.so
|
|
case $(uname) in
|
|
Darwin)
|
|
soext=.dylib
|
|
;;
|
|
esac
|
|
set -x
|
|
chibi-ffi codesets.chibi.stub
|
|
cc -std=c99 -Wall -Wextra -Wno-unused-parameter \
|
|
$chibi -fPIC -shared -o codesets.chibi$soext codesets.chibi.c glue.c
|