2022-09-30 06:21:48 +00:00
|
|
|
INCLUDE_DIRS = .. ../../min-src ../../inc
|
|
|
|
INCLUDE_PY = $(shell python -c 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))')
|
|
|
|
|
2022-10-04 06:42:42 +00:00
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
all: test ecc_test
|
|
|
|
|
2022-10-01 23:52:12 +00:00
|
|
|
test: tests.py ckzg.so
|
|
|
|
python $<
|
|
|
|
|
2022-10-04 06:40:51 +00:00
|
|
|
ecc_test: py_ecc_tests.py ckzg.so
|
2022-09-30 06:21:48 +00:00
|
|
|
python $<
|
|
|
|
|
2022-10-01 23:52:12 +00:00
|
|
|
ckzg.so: ckzg.c ../../min-src/c_kzg_4844.o ../../lib/libblst.a
|
|
|
|
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -o $@ $^
|