diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 17:46:29 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 17:46:29 +0200 |
commit | 30a39b235cfa5f83c69289d64d357bf1ee97f0b6 (patch) | |
tree | 9b0300f6bf5d4a1f06978ba6fe8e787100362185 | |
parent | Add man page (diff) | |
download | krandom-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-- | Makefile | 3 | ||||
-rw-r--r-- | config.mk | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -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 @@ -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. |