2022-11-01 14:28:51 +00:00
|
|
|
INCLUDE_DIRS = .. ../../src ../../inc
|
2022-09-18 11:55:34 +00:00
|
|
|
INCLUDE_PY = $(shell python -c 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))')
|
|
|
|
|
2022-11-29 20:47:44 +00:00
|
|
|
FIELD_ELEMENTS_PER_BLOB?=4096
|
|
|
|
|
2022-11-01 14:24:02 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
all: test ecc_test
|
|
|
|
|
|
|
|
test: tests.py ckzg.so
|
2022-09-19 09:54:07 +00:00
|
|
|
python $<
|
|
|
|
|
2022-11-01 14:24:02 +00:00
|
|
|
ecc_test: py_ecc_tests.py ckzg.so
|
|
|
|
python $<
|
|
|
|
|
2022-11-04 22:34:04 +00:00
|
|
|
ckzg.so: ckzg.c ../../src/c_kzg_4844.o ../../lib/libblst.a
|
2022-11-29 20:47:44 +00:00
|
|
|
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -DFIELD_ELEMENTS_PER_BLOB=${FIELD_ELEMENTS_PER_BLOB} -o $@ $^
|