summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--contrib/build-env-setup/README.md8
2 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 4235867..c1a7f70 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
CC ?=gcc
LD ?=ld
AR ?=ar
-BINEXT ?= .elf
+BINEXT ?=
LIBSEXT ?= .a
TOOLCHAIN ?= lxGcc64
@@ -26,7 +26,7 @@ LDFLAGS ?= -Wl,--no-demangle,--fatal-warnings
ifndef NDEBUG
CFLAGS := $(CFLAGS) -ggdb -O0 -g3
else
- CFLAGS := $(CFLAGS) -ffunction-sections -fdata-sections -O2 "-DNDEBUG=1"
+ CFLAGS := $(CFLAGS) -ffunction-sections -fdata-sections -Os "-DNDEBUG=1"
LDFLAGS := $(LDFLAGS) -Wl,--gc-sections,--as-needed
endif
@@ -44,6 +44,7 @@ ifeq ($(BINEXT),.exe)
LPCREPOSIX := -lpcreposix
endif
+.SILENT:
default: dist
diff --git a/contrib/build-env-setup/README.md b/contrib/build-env-setup/README.md
index 89fcb01..e1007e3 100644
--- a/contrib/build-env-setup/README.md
+++ b/contrib/build-env-setup/README.md
@@ -59,9 +59,8 @@ computer.
Setup environ vars according to your chosen build system. Here are few examlpes:
### Config for debian
-####### automake autoconf libtool
true \
- && PKGS_TO_ADD="git make gcc libc6-dev cmake autoconf automake libtool m4" \
+ && PKGS_TO_ADD="git make gcc ca-certificates libc6-dev cmake autoconf automake libtool m4" \
&& PKGS_TO_DEL="cmake autoconf automake libtool m4" \
&& SUDO=sudo \
&& PKGINIT="$SUDO apt update" \
@@ -96,7 +95,7 @@ true \
&& LIBARCHIVE_BINTGZ="${LIBARCHIVE_SRCTGZ%.*}-bin.tgz" \
\
&& ${PKGINIT:?} && ${PKGADD:?} $PKGS_TO_ADD \
- && printf '\n Download Dependency Sources\n\n'
+ && printf '\n Download Dependency Sources\n\n' \
&& if test ! -e "${CJSON_SRCTGZ:?}"; then true \
&& echo "Download ${CJSON_URL:?}" \
&& curl -sSLo "${CJSON_SRCTGZ:?}" "${CJSON_URL:?}" \
@@ -145,7 +144,7 @@ true \
&& cd /tmp && rm -rf "libarchive-${LIBARCHIVE_VERSION:?}" \
&& $SUDO tar -C /usr/local -xzf "${LIBARCHIVE_BINTGZ:?}" \
);fi \
- && if test ! -e "${CURL_BINTGZ:?}"; then (true
+ && if test ! -e "${CURL_BINTGZ:?}"; then (true \
&& printf '\n Build curl\n\n' \
&& cd /tmp \
&& tar xf "${CURL_SRCTGZ:?}" \
@@ -159,7 +158,6 @@ true \
&& rm -rf "curl-curl-${CURL_VERSION_UGLY:?}" \
&& $SUDO tar -C /usr/local -xzf "${CURL_BINTGZ:?}" \
);fi \
-
&& printf '\n Build project itself\n\n' \
&& mkdir -p "${WORKDIR:?}" && cd "${WORKDIR:?}" \
&& git clone --depth 42 --branch "${GIT_TAG:?}" https://github.com/hiddenalpha/GateleenResclone.git . \