aboutsummaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-23 11:43:50 +0200
committerMattias Andrée <maandree@kth.se>2023-06-23 11:43:57 +0200
commitf7b164989f4e9dcb8f5bd87f544adf5c2070eb81 (patch)
tree41145a93d11fb84a60a247aae85d220480e588c3 /config.mk
parentFix minor mistakes i key2root-lskeys.c, implement key2root-rmkey.c, and minor work on key2root-addkey.c (diff)
downloadkey2root-f7b164989f4e9dcb8f5bd87f544adf5c2070eb81.tar.gz
key2root-f7b164989f4e9dcb8f5bd87f544adf5c2070eb81.tar.bz2
key2root-f7b164989f4e9dcb8f5bd87f544adf5c2070eb81.tar.xz
Make key directory compile-time configurable (intended for testing)
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 97a6f0f..38b5163 100644
--- a/config.mk
+++ b/config.mk
@@ -1,8 +1,10 @@
PREFIX = /usr
MANPREFIX = $(PREFIX)/share/man
+KEYPATH = /etc/key2root
+
CC = cc
-CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE
+CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D'KEYPATH="$(KEYPATH)"'
CFLAGS = -std=c99 -Wall -O2
LDFLAGS = -lcrypt