1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
-
+
-
+
+
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
|
blake2b.o: blake2b-ref-nacl.c blake2-impl.h blake2.h
all: out/blake2b.c out/blake2.h out/blake2-impl.h
$(CC) $(CPPFLAGS) $(CFLAGS) -o blake2b.o -c blake2b-ref-nacl.c
out/blake2b.c: src/blake2b-ref.c blake2-nacl.c
mkdir -p out
blake2b-ref-nacl.c: blake2b-ref.c blake2-nacl.c
rm -f blake2b-ref-nacl.c
cat blake2b-ref.c blake2-nacl.c > blake2b-ref-nacl.c
cat src/blake2b-ref.c blake2-nacl.c > out/blake2b.c
out/blake2.h: src/blake2.h blake2-nacl.h
mkdir -p out
cat src/blake2.h blake2-nacl.h > out/blake2.h
out/blake2-impl.h: src/blake2-impl.h
mkdir -p out
cp src/blake2-impl.h out
clean:
rm -f blake2b-ref-nacl.c
rm -f blake2b.o
rm -f out/blake2b.c out/blake2.h out/blake2-impl.h
-rmdir out
distclean: clean
.PHONY: clean distclean
.PHONY: all clean distclean
|