oxedyne/fe2o3/fe2o3_crypto/src/build_src/build
743 bytes, 1 run, executable
created by r1870400018:154, 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 |
| 2 | CC=/usr/bin/gcc |
| 3 | CFLAGS="-Wall -Wextra -Wmissing-prototypes -Wredundant-decls -O3 -fomit-frame-pointer -march=native" |
| 4 | NISTFLAGS="-Wno-unused-result -O3 -fomit-frame-pointer -march=native -std=c99" |
| 5 | RM=/bin/rm |
| 6 | |
| 7 | # Uncomment one of these to choose scheme |
| 8 | STATIC=liblightsaber.a |
| 9 | #STATIC=libsaber.a |
| 10 | #STATIC=libfiresaber.a |
| 11 | rm -fr $STATIC |
| 12 | SOURCES="pack_unpack.c poly.c fips202.c verify.c cbd.c SABER_indcpa.c kem.c" |
| 13 | OBJS="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 | |
| 16 | gcc ${NISTFLAGS} -c rng.c -lcrypto -o rng.o |
| 17 | gcc ${CFLAGS} ${SOURCES} rng.o -c -lcrypto |
| 18 | ar rcs ${STATIC} ${OBJS} |
| 19 | |
| 20 | rm -f *.o |
| 21 | touch bindgen_wrapper.h |