Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_crypto/src/c/build

743 bytes, 1 run, executable

created by r1870400018:183, 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

1#!/bin/bash
2CC=/usr/bin/gcc
3CFLAGS="-Wall -Wextra -Wmissing-prototypes -Wredundant-decls -O3 -fomit-frame-pointer -march=native"
4NISTFLAGS="-Wno-unused-result -O3 -fomit-frame-pointer -march=native -std=c99"
5RM=/bin/rm
6
7# Uncomment one of these to choose scheme
8STATIC=liblightsaber.a
9#STATIC=libsaber.a
10#STATIC=libfiresaber.a
11rm -fr $STATIC
12SOURCES="pack_unpack.c poly.c fips202.c verify.c cbd.c SABER_indcpa.c kem.c"
13OBJS="pack_unpack.o poly.o fips202.o verify.o cbd.o SABER_indcpa.o kem.o rng.o"
14#HEADERS="SABER_params.h pack_unpack.h poly.h rng.h fips202.h verify.h cbd.h SABER_indcpa.h"
15
16gcc ${NISTFLAGS} -c rng.c -lcrypto -o rng.o
17gcc ${CFLAGS} ${SOURCES} rng.o -c -lcrypto
18ar rcs ${STATIC} ${OBJS}
19
20rm -f *.o
21touch bindgen_wrapper.h