From 6bfa83038b4a4f1c76c48b6c709f0c99a1451f36 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 9 Feb 2019 21:20:27 +0100 Subject: Improve makefile: mv LIBEXT and LIBFLAGS to config.mk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 3 --- config.mk | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 41d351f..4f672f7 100644 --- a/Makefile +++ b/Makefile @@ -6,9 +6,6 @@ LIB_MAJOR = 1 LIB_MINOR = 0 LIB_VERSION = $(LIB_MAJOR).$(LIB_MINOR) -LIBEXT = so -LIBFLAGS = -shared -Wl,-soname,libsha2.$(LIBEXT).$(LIB_MAJOR) - include $(CONFIGFILE) diff --git a/config.mk b/config.mk index c27a18b..ce6682d 100644 --- a/config.mk +++ b/config.mk @@ -1,6 +1,9 @@ -PREFIX = /usr +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -std=c99 -Wall -Wextra -O3 $(CPPFLAGS) LDFLAGS = -s + +LIBEXT = so +LIBFLAGS = -shared -Wl,-soname,libsha2.$(LIBEXT).$(LIB_MAJOR) -- cgit v1.2.3-70-g09d2