From 89b36c68813eea189886e73590452c4ca5a70f6c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 17:44:55 +0200 Subject: Improve makefile 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 | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 48bc8fb..f5ec176 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: file2key file2key: file2key.o @@ -22,6 +23,6 @@ uninstall: -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/file2key.1" clean: - -rm -rf -- *.o file2key + -rm -f -- file2key *.o *.su .PHONY: all install uninstall clean diff --git a/config.mk b/config.mk index 93a9878..c8ba750 100644 --- a/config.mk +++ b/config.mk @@ -1,8 +1,10 @@ -PREFIX = /usr +PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CFLAGS = -std=c99 -Wall -Wextra -O2 +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CFLAGS = -std=c99 -O2 LDFLAGS = -s -lkeccak # To use libpassphrase, add -DWITH_LIBPASSPHRASE to CPPFLAGS and -lpassphrase to LDFLAGS -- cgit v1.2.3-70-g09d2