-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (23 loc) · 825 Bytes
/
Makefile
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
28
29
30
31
32
33
34
CFLAGS=-g -Wall -Wno-unused-result
all: libfe448.a
.PHONY: test
test: defs.h fe448.h ge448.h sc448.h sha3.h t/testv.h libfe448.a
$(CC) $(CFLAGS) -I. -It t/testsign.c t/testv.c libfe448.a -o testsign.out
$(CC) $(CFLAGS) -I. -It t/testverify.c t/testv.c libfe448.a -o testverify.out
./testsign.out
./testverify.out
fe448.o: defs.h fe448.h
sc448.o: defs.h sc448.h sha3.h
ge448.o: defs.h fe448.h ge448.h sc448.h
ed448.o: defs.h fe448.h ge448.h sc448.h sha3.h
sha3.o: defs.h sha3.h
libfe448.a: fe448.o sc448.o ge448.o ed448.o sha3.o
$(AR) rcs libfe448.a fe448.o sc448.o ge448.o ed448.o sha3.o
ge448_gen.o: defs.h fe448.h sc448.h
.PHONY: data
data: ge448_gen.o fe448.o sc448.o
$(CC) $(CFLAGS) -o gen_data.out ge448_gen.o fe448.o sc448.o
./gen_data.out > ge448_base.data
.PHONY: clean
clean:
rm -rf *.o *.out *.a