-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 731 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (20 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CFLAGS?= -Wall -O2
CFLAGS+= -I.
OBJS= crypto_api.o mod_ed25519.o mod_ge25519.o signify.o
OBJS+= arc4random.o base64.o bcrypt_pbkdf.o blowfish.o explicit_bzero.o
OBJS+= fe25519.o rand_bytes.o readpassphrase.o sc25519.o sha2.o
OBJS+= sha256hl.o sha512hl.o smult_curve25519_ref.o strlcpy.o timingsafe_bcmp.o
OBJS+= ohash.o reallocarray.o
all: signify
signify: $(OBJS)
$(CC) -o signify $(OBJS) $(LDFLAGS)
sha256hl.c: helper.c
sed -e 's/hashinc/sha2.h/g' \
-e 's/HASH/SHA256/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > sha256hl.c
sha512hl.c: helper.c
sed -e 's/hashinc/sha2.h/g' \
-e 's/HASH/SHA512/g' \
-e 's/SHA[0-9][0-9][0-9]_CTX/SHA2_CTX/g' helper.c > sha512hl.c
clean:
rm -f *.o signify