2
0

Update build script to install header files in a shared include path, akin to how ObjC does.

This commit is contained in:
Maarten Billemont 2014-12-19 09:00:38 -05:00
parent 3dbc105fbd
commit 2dbada3c7c

View File

@ -144,7 +144,7 @@ depend() {
echo echo
echo "Checking dependency: $1..." echo "Checking dependency: $1..."
[[ -e "lib/$1/.built" ]] && return [[ -e "lib/include/$1" ]] && return
pushd "lib/$1" pushd "lib/$1"
fetchSource fetchSource
@ -180,7 +180,8 @@ depend() {
fi fi
make make
date > .built install -d "../include/$1/"
find . -name '*.h' -exec install -m 444 {} "../include/$1/" \;
else else
echo >&2 "error: Don't know how to build: $1" echo >&2 "error: Don't know how to build: $1"
exit 1 exit 1
@ -197,7 +198,7 @@ mpw() {
echo "Building target: $target..." echo "Building target: $target..."
CFLAGS=( CFLAGS=(
# include paths # include paths
-I"lib/scrypt/lib" -I"lib/scrypt/libcperciva" -I"lib/include"
) )
LDFLAGS=( LDFLAGS=(
# scrypt # scrypt
@ -230,8 +231,7 @@ mpw-bench() {
echo "Building target: $target..." echo "Building target: $target..."
CFLAGS=( CFLAGS=(
# include paths # include paths
-I"lib/scrypt/lib" -I"lib/scrypt/libcperciva" -I"lib/include"
-I"lib/bcrypt"
) )
LDFLAGS=( LDFLAGS=(
# scrypt # scrypt