]> pd.if.org Git - zpackage/blobdiff - Makefile
implement trust on first use
[zpackage] / Makefile
index 5b677ca0356baa9eb73860836f9a30ccc6f70867..f4143d5d949205e1e356ff689356e8a105a9f461 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -769,6 +769,24 @@ testddg: zpm-fetchurl
 testgra: zpm-fetchurl
        ./zpm-fetchurl granicus.if.org 443 /
 
+SIGNSRC= \
+crypto/libeddsa/lib/burn.c \
+crypto/libeddsa/lib/burnstack.c \
+crypto/libeddsa/lib/ed.c \
+crypto/libeddsa/lib/ed25519-sha512.c \
+crypto/libeddsa/lib/fld.c \
+crypto/libeddsa/lib/sc.c \
+crypto/libeddsa/lib/sha512.c \
+crypto/libeddsa/lib/x25519.c \
+crypto/libeddsa/sign.c
+
+SIGNOBJ=$(SIGNSRC:.c=.o)
+
+$(SIGNOBJ): CFLAGS+=-Icrypto/libeddsa/lib
+
+zpm-sign: $(SIGNOBJ)
+       $(CC) $(CFLAGS) -o $@ $+
+
 clean:
        rm -f *.o sqlite/*.o lib/*.o $(LZMAOBJ) liblzma.a \
                libelf.a libzpm.a zpm-addfile soname \