aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-01-02 17:36:33 +0300
committerCem Keylan <cem@ckyln.com>2021-01-02 17:36:33 +0300
commit5462dfe326177b8a00dc4e4c9b9e18eb2e75b7ef (patch)
treedb2c694db8bb7353b21ca2b62f2a3c5d883b61d2
parent8b637b2e223041c417129aebcd88be4551333917 (diff)
downloadotools-5462dfe326177b8a00dc4e4c9b9e18eb2e75b7ef.tar.gz
config.mk: saner default configuration
-rw-r--r--config.mk14
1 files changed, 6 insertions, 8 deletions
diff --git a/config.mk b/config.mk
index c064088..be23125 100644
--- a/config.mk
+++ b/config.mk
@@ -2,11 +2,11 @@ PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANPREFIX = ${PREFIX}/share/man
-AR = ar
-CC = cc
-RANLIB = ranlib
-RM = rm -f
-YACC = yacc
+AR ?= ar
+CC ?= cc
+RANLIB ?= ranlib
+RM ?= rm -f
+YACC ?= yacc
# You can uncomment the latter if you aren't using libtls-bearssl. If you
@@ -18,12 +18,10 @@ TLSLIB = -ltls -lbearssl
# in-source zlib.
ZLIB = -lz
-CFLAGS = -Wall -Wno-pointer-sign -Wno-maybe-uninitialized \
+CFLAGS += -Wall -Wno-pointer-sign -Wno-maybe-uninitialized \
-Wno-attributes -I${PWD}/includedir \
-D 'DEF_WEAK(n)=_Static_assert(1, "")' \
-idirafter ${PWD}/include \
-idirafter ${PWD}/sys \
-idirafter ${PWD}/lib/libutil \
-idirafter ${PWD}/lib/libcrypto
-
-LDFLAGS = -static