Xmd/libXmd/build.sh

27 lines
320 B
Bash
Raw Normal View History

2023-11-03 21:59:24 +00:00
#!/bin/sh
. ../scripts/flags.sh
function build() {
2023-11-06 07:53:19 +00:00
cc $CFLAGS -Iinclude -shared -o "lib/libXmd.so" src/*.c || \
2023-11-03 21:59:24 +00:00
echo "XXX FAIL!"
}
function clean() {
rm -f lib/*
}
case "$1" in
install)
clean; build
cp lib/*.so "$PREFIX/lib"
cp include/Xmd/*.h "$PREFIX/include/Xmd"
clean
;;
clean)
clean
;;
*)
build
esac