aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 17:46:29 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 17:46:29 +0200
commit30a39b235cfa5f83c69289d64d357bf1ee97f0b6 (patch)
tree9b0300f6bf5d4a1f06978ba6fe8e787100362185
parentAdd man page (diff)
downloadkrandom-2.0.1.tar.gz
krandom-2.0.1.tar.bz2
krandom-2.0.1.tar.xz
Improve and fix typo in makefile2.0.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile3
-rw-r--r--config.mk4
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.