From 7281ae7db4d9bc9eb2b59134e1dea1231013f1af Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Jun 2023 19:15:49 +0200 Subject: Use libar2simplified instead of crypt as crypt has a verily limited imput size, and add -h to key2root-addkey, and add key2root-crypt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'Makefile') 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" -- cgit v1.2.3-70-g09d2