aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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.