2023-09-05 10:56:07 +00:00
|
|
|
extern crate cc;
|
|
|
|
|
|
|
|
use cc::Build;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Build::new()
|
|
|
|
.include("c")
|
|
|
|
.file("c/aesb.c")
|
|
|
|
.file("c/blake256.c")
|
|
|
|
.file("c/groestl.c")
|
|
|
|
.file("c/hash-extra-blake.c")
|
|
|
|
.file("c/hash-extra-groestl.c")
|
|
|
|
.file("c/hash-extra-jh.c")
|
|
|
|
.file("c/hash-extra-skein.c")
|
|
|
|
.file("c/hash.c")
|
|
|
|
.file("c/jh.c")
|
|
|
|
.file("c/keccak.c")
|
|
|
|
.file("c/oaes_lib.c")
|
|
|
|
.file("c/skein.c")
|
|
|
|
.file("c/slow-hash.c")
|
|
|
|
.file("c/CryptonightR_JIT.c")
|
|
|
|
.file("c/CryptonightR_template.S")
|
|
|
|
.flag("-maes")
|
2023-10-23 21:24:02 +00:00
|
|
|
.flag("-Ofast")
|
|
|
|
.flag("-fexceptions")
|
2023-09-05 10:56:07 +00:00
|
|
|
.compile("cryptonight")
|
|
|
|
}
|