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