forked from Telodendria/Cytoplasm
Add print-libs for use in other scripts.
This commit is contained in:
parent
983fabcd2a
commit
f16a9f4c6d
1 changed files with 6 additions and 5 deletions
11
configure
vendored
11
configure
vendored
|
@ -8,7 +8,7 @@ echo "Build Configuration"
|
||||||
echo "-------------------"
|
echo "-------------------"
|
||||||
|
|
||||||
CFLAGS="-Wall -Wextra -pedantic -std=c89 -O3 -pipe -D_DEFAULT_SOURCE -Isrc/include"
|
CFLAGS="-Wall -Wextra -pedantic -std=c89 -O3 -pipe -D_DEFAULT_SOURCE -Isrc/include"
|
||||||
LDFLAGS="-lm -pthread"
|
LIBS="-lm -pthread"
|
||||||
|
|
||||||
# Set default args for all platforms
|
# Set default args for all platforms
|
||||||
SCRIPT_ARGS="--lib-rtstub=RtStub --prefix=/usr/local --enable-ld-extra --lib-name=Cytoplasm --lib-version=0.4.0 --static $@"
|
SCRIPT_ARGS="--lib-rtstub=RtStub --prefix=/usr/local --enable-ld-extra --lib-name=Cytoplasm --lib-version=0.4.0 --static $@"
|
||||||
|
@ -84,11 +84,11 @@ done
|
||||||
|
|
||||||
if [ -n "$TLS_IMPL" ]; then
|
if [ -n "$TLS_IMPL" ]; then
|
||||||
CFLAGS="${CFLAGS} -DTLS_IMPL=${TLS_IMPL}"
|
CFLAGS="${CFLAGS} -DTLS_IMPL=${TLS_IMPL}"
|
||||||
LDFLAGS="${LDFLAGS} ${TLS_LIBS}"
|
LIBS="${LIBS} ${TLS_LIBS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CFLAGS="${CFLAGS} '-DLIB_NAME=\"${LIB_NAME}\"' '-DLIB_VERSION=\"${LIB_VERSION}\"' ${DEBUG}"
|
CFLAGS="${CFLAGS} '-DLIB_NAME=\"${LIB_NAME}\"' '-DLIB_VERSION=\"${LIB_VERSION}\"' ${DEBUG}"
|
||||||
LDFLAGS="${LDFLAGS} ${LD_EXTRA}"
|
LDFLAGS="${LIBS} ${LD_EXTRA}"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Makefile generation
|
# Makefile generation
|
||||||
|
@ -139,11 +139,12 @@ CFLAGS = ${CFLAGS}
|
||||||
LDFLAGS = ${LDFLAGS}
|
LDFLAGS = ${LDFLAGS}
|
||||||
|
|
||||||
all: ${LIB_NAME} docs tools
|
all: ${LIB_NAME} docs tools
|
||||||
|
|
||||||
docs: $(find_docs "out/man/man3/Cytoplasm-")
|
docs: $(find_docs "out/man/man3/Cytoplasm-")
|
||||||
|
|
||||||
tools: $(find_tools "out/bin/")
|
tools: $(find_tools "out/bin/")
|
||||||
|
|
||||||
|
print-libs:
|
||||||
|
${TAB}@echo ${LIBS}
|
||||||
|
|
||||||
format:
|
format:
|
||||||
${TAB}find . -name '*.c' | while IFS= read -r src; do \\
|
${TAB}find . -name '*.c' | while IFS= read -r src; do \\
|
||||||
${TAB} if indent "\$\$src"; then \\
|
${TAB} if indent "\$\$src"; then \\
|
||||||
|
|
Loading…
Reference in a new issue