diff options
author | Cem Keylan <cem@ckyln.com> | 2020-10-16 17:41:25 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-10-16 17:41:25 +0300 |
commit | e2abcdca396661cbe0ae2ddb13d5c2b85682c13a (patch) | |
tree | acf9b5c80b645617f882c45224c6e07251711842 /config.mk | |
download | otools-e2abcdca396661cbe0ae2ddb13d5c2b85682c13a.tar.gz |
initial commit
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..c064088 --- /dev/null +++ b/config.mk @@ -0,0 +1,29 @@ +PREFIX = /usr/local +BINDIR = ${PREFIX}/bin +MANPREFIX = ${PREFIX}/share/man + +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 +# aren't linking statically, '-ltls' should be suffice. +TLSLIB = -ltls -lbearssl +#TLSLIB = `pkgconf --static --libs libtls` + +# You can replace the following to 'lib/libz/libz.a' in order to build with the +# in-source zlib. +ZLIB = -lz + +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 |