supercop

Basic CLI for supercop
git clone git://git.finwo.net/app/supercop
Log | Files | Refs | README | LICENSE

commit 07b77fb2790098f31438c70632647570e39eb9be
parent 0dd372c9de5ae3ff72f3d979c0018b14c0caabf1
Author: Robin Bron <finwo@pm.me>
Date:   Tue, 30 Nov 2021 17:11:37 +0100

Added 'make small' to generate trimmed version

Diffstat:
MMakefile | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -41,6 +41,11 @@ README.md: supercop: lib/argparse lib/ed25519 $(OBJ) $(CC) $(CFLAGS) $(INCLUDES) -o $@ $(OBJ) +.PHONY: small +small: + $(MAKE) "CFLAGS=-static -Os -s -fno-stack-protector -fomit-frame-pointer -ffunction-sections -fdata-sections -Wl,--gc-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-math-errno -fno-unroll-loops -fmerge-all-constants -fno-ident -ffast-math -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none" supercop + strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag supercop + %.o: %.c $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@