mirror of
https://git.telodendria.io/Telodendria/Cytoplasm.git
synced 2024-10-30 09:10:47 +03:00
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 "-------------------"
|
||||
|
||||
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
|
||||
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
|
||||
CFLAGS="${CFLAGS} -DTLS_IMPL=${TLS_IMPL}"
|
||||
LDFLAGS="${LDFLAGS} ${TLS_LIBS}"
|
||||
LIBS="${LIBS} ${TLS_LIBS}"
|
||||
fi
|
||||
|
||||
CFLAGS="${CFLAGS} '-DLIB_NAME=\"${LIB_NAME}\"' '-DLIB_VERSION=\"${LIB_VERSION}\"' ${DEBUG}"
|
||||
LDFLAGS="${LDFLAGS} ${LD_EXTRA}"
|
||||
LDFLAGS="${LIBS} ${LD_EXTRA}"
|
||||
|
||||
#
|
||||
# Makefile generation
|
||||
|
@ -139,11 +139,12 @@ CFLAGS = ${CFLAGS}
|
|||
LDFLAGS = ${LDFLAGS}
|
||||
|
||||
all: ${LIB_NAME} docs tools
|
||||
|
||||
docs: $(find_docs "out/man/man3/Cytoplasm-")
|
||||
|
||||
tools: $(find_tools "out/bin/")
|
||||
|
||||
print-libs:
|
||||
${TAB}@echo ${LIBS}
|
||||
|
||||
format:
|
||||
${TAB}find . -name '*.c' | while IFS= read -r src; do \\
|
||||
${TAB} if indent "\$\$src"; then \\
|
||||
|
|
Loading…
Reference in a new issue