+++ /dev/null
-#! /bin/bash
-
-CC="gcc"
-CFLAGS="-O2 -Wall -Wextra -std=c11"
-
-$CC $CFLAGS -c monocypher.c -DED25519_SHA512
-$CC $CFLAGS -c sha512.c
-$CC $CFLAGS -c test.c
-$CC $CFLAGS -o test test.o monocypher.o sha512.o
--- /dev/null
+CC=gcc
+CFLAGS=-O2 -Wall -Wextra -std=c11 -pedantic
+
+.PHONY: all clean
+
+all: test
+
+clean:
+ rm -f *.o test
+
+test: test.o monocypher.o sha512.o
+ $(CC) $(CFLAGS) -o $@ $^
+
+test.o: test.c
+ $(CC) $(CFLAGS) -c $^
+
+sha512.o: sha512.c
+ $(CC) $(CFLAGS) -c $^
+
+monocypher.o: monocypher.c
+ $(CC) $(CFLAGS) -c $^ -DED25519_SHA512
box, box + 16, text_size);
}
-static const u8 null_nonce[24] = {};
+static const u8 null_nonce[24];
void crypto_anonymous_lock(u8 *box,
const u8 random_secret_key[32],