2022-10-01 18:03:52 +01:00
|
|
|
INCLUDE_DIRS = .. ../../min-src ../../inc
|
|
|
|
|
2022-10-01 18:57:53 +01:00
|
|
|
test: tests.cs libckzg.so
|
2022-10-01 18:03:52 +01:00
|
|
|
mcs -langversion:5 -optimize+ tests.cs ckzg.cs -r:System.Numerics.dll
|
2022-10-01 18:57:53 +01:00
|
|
|
mono tests.exe
|
2022-10-01 18:03:52 +01:00
|
|
|
|
2022-10-01 18:57:53 +01:00
|
|
|
libckzg.so: c_kzg_4844_wrap.c ../../min-src/c_kzg_4844.o ../../lib/libblst.a
|
2022-10-01 18:03:52 +01:00
|
|
|
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -o $@ $^
|
|
|
|
|
|
|
|
c_kzg_4844_wrap.c ckzg.cs: ../c_kzg_4844.swg
|
|
|
|
swig -DSWIGWORDSIZE64 -O -Wall -csharp -outcurrentdir -namespace ckzg -outfile ckzg.cs $<
|