Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_crypto/src/c/Makefile

1.2 KiB, 1 run

created by r1870400018:167, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1CC = /usr/bin/gcc
2CFLAGS = -Wall -Wextra -Wmissing-prototypes -Wredundant-decls\
3 -O3 -fomit-frame-pointer -march=native
4NISTFLAGS = -Wno-unused-result -O3 -fomit-frame-pointer -march=native -std=c99
5CLANG = clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments
6RM = /bin/rm
7
8
9all: test/PQCgenKAT_kem \
10 test/test_kex \
11 test/kem \
12
13SOURCES = pack_unpack.c poly.c fips202.c verify.c cbd.c SABER_indcpa.c kem.c
14HEADERS = SABER_params.h pack_unpack.h poly.h rng.h fips202.h verify.h cbd.h SABER_indcpa.h
15
16test/test_kex: $(SOURCES) $(HEADERS) rng.o test/test_kex.c
17 $(CC) $(CFLAGS) -o $@ $(SOURCES) rng.o test/test_kex.c -lcrypto
18
19test/PQCgenKAT_kem: $(SOURCES) $(HEADERS) rng.o test/PQCgenKAT_kem.c
20 $(CC) $(NISTFLAGS) -o $@ $(SOURCES) rng.o test/PQCgenKAT_kem.c -lcrypto
21
22test/kem: $(SOURCES) $(HEADERS) rng.o test/kem.c
23 $(CC) $(CFLAGS) -o $@ $(SOURCES) rng.o test/kem.c -lcrypto
24
25rng.o: rng.c
26 $(CC) $(NISTFLAGS) -c rng.c -lcrypto -o $@
27
28# fips202.o: fips202.c
29# $(CLANG) -c $^ -o $@
30
31.PHONY: clean test
32
33test:
34 ./test/test_kex
35 ./test/PQCgenKAT_kem
36 ./test/kem
37
38clean:
39 -$(RM) -f *.o
40 -$(RM) -rf test/test_kex
41 -$(RM) -rf test/kem
42 -$(RM) -rf test/PQCgenKAT_kem
43 -$(RM) -f *.req
44 -$(RM) -f *.rsp