malloc/build.sh

20 lines
414 B
Bash
Raw Normal View History

2019-05-04 00:19:50 +03:00
#!/bin/bash
PWD=$(pwd)
OUT_DIR="$PWD/out"
2019-05-04 20:23:32 +03:00
RELEASE_BLD_DIR="$PWD/bld"
DEBUG_BLD_DIR="$PWD/debug_bld"
2019-05-04 00:19:50 +03:00
2019-05-04 20:23:32 +03:00
LIB="libft_malloc.dylib"
LINK="libft_malloc.so"
meson $RELEASE_BLD_DIR --prefix=$OUT_DIR --libdir=$OUT_DIR --includedir=$OUT_DIR --buildtype=release
meson $DEBUG_BLD_DIR --buildtype=debug
ninja -C $DEBUG_BLD_DIR
ninja -C $RELEASE_BLD_DIR
ninja -C $RELEASE_BLD_DIR install
ln -sf "$OUT_DIR/$LIB" "$PWD/$LINK"