aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-06-23 19:15:49 +0200
committerMattias Andrée <maandree@kth.se>2023-06-23 19:15:49 +0200
commit7281ae7db4d9bc9eb2b59134e1dea1231013f1af (patch)
tree14d15e56dea896c71b0b4576a9633ea759080d58 /Makefile
parentFix exit status (diff)
downloadkey2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.gz
key2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.bz2
key2root-7281ae7db4d9bc9eb2b59134e1dea1231013f1af.tar.xz
Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 16 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ceafda7..86af4e2 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,12 @@
CONFIGFILE = config.mk
include $(CONFIGFILE)
-BIN = key2root key2root-lskeys key2root-addkey key2root-rmkey
+BIN = key2root key2root-lskeys key2root-addkey key2root-rmkey key2root-crypt
-HDR = arg.h
+HDR = arg.h crypt.h
MAN8 = $(BIN:=.8)
-OBJ = $(BIN:=.o)
+OBJ = $(BIN:=.o) crypt.o
all: $(BIN)
$(OBJ): $(HDR)
@@ -16,11 +16,20 @@ $(OBJ): $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
-.o:
- $(CC) -o $@ $< $(LDFLAGS)
+key2root: key2root.o crypt.o
+ $(CC) -o $@ $@.o crypt.o $(LDFLAGS_CRYPT)
-.c:
- $(CC) -o $@ $< $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
+key2root-lskeys: key2root-lskeys.o
+ $(CC) -o $@ $@.o $(LDFLAGS)
+
+key2root-addkey: key2root-addkey.o crypt.o
+ $(CC) -o $@ $@.o crypt.o $(LDFLAGS_CRYPT)
+
+key2root-rmkey: key2root-rmkey.o
+ $(CC) -o $@ $@.o $(LDFLAGS)
+
+key2root-crypt: key2root-crypt.o crypt.o
+ $(CC) -o $@ $@.o crypt.o $(LDFLAGS_CRYPT)
install: $(BIN)
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"