From 30a39b235cfa5f83c69289d64d357bf1ee97f0b6 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Sep 2021 17:46:29 +0200 Subject: Improve and fix typo in 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 | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 583c460..438bfba 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CONFIGFILE = config.mk include $(CONFIGFILE) + all: krandom krandom: krandom.o @@ -22,6 +23,6 @@ uninstall: -rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/krandom.1" clean: - -rm -r -- krandom *.o + -rm -f -- krandom *.o *.su .PHONY: all install uninstall clean diff --git a/config.mk b/config.mk index 5059663..228c0ee 100644 --- a/config.mk +++ b/config.mk @@ -1,10 +1,12 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man +CC = cc + CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 CFLAGS = -std=c99 -Wall -O3 LDFLAGS = -s -lkeccak # krandom is seeded by /dev/urandom (Linux's non-blocking random number generator), -# this can be changed by addeding -DURANDOM=??? to CPPFLAGS, where ??? is the file +# this can be changed by adding -DURANDOM=??? to CPPFLAGS, where ??? is the file # to use instead of /dev/urandom. -- cgit v1.2.3-70-g09d2