diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 17:44:55 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 17:44:55 +0200 |
commit | 89b36c68813eea189886e73590452c4ca5a70f6c (patch) | |
tree | 3dcd5f875e1be42c0d2aae13ab40f6381bd6ce34 | |
parent | fix man page (diff) | |
download | file2key-3.1.1.tar.gz file2key-3.1.1.tar.bz2 file2key-3.1.1.tar.xz |
Improve makefile3.1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | config.mk | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -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 @@ -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 |