From 0a7e36380717fe926d43ab30ef6162db9bd71723 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 4 Mar 2016 09:28:01 +0100 Subject: Add makefile and fix errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..7544d18 --- /dev/null +++ b/config.mk @@ -0,0 +1,18 @@ +VERSION = 0.0 + +PREFIX = /usr/local +EXECPREFIX = $(PREFIX) +MANPREFIX = $(PREFIX)/shared/man + +CC = cc +AR = ar +RANLIB = ranlib + +# Unless /dev/urandom exists and is a non-blocking random number generator, +# you have to add -DFAST_RANDOM_PATHNAME=... to CPPFLAGS, and +# unless /dev/random exists and is a blocking secure random number generator +# you have to add -DSECURE_RANDOM_PATHNAME=... to CPPFLAGS. + +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CFLAGS = -std=c99 -Wall -pedantic +LDFLAGS = -s -- cgit v1.2.3-70-g09d2