2022-09-18 11:55:34 +00:00
|
|
|
INCLUDE_DIRS = .. ../../src ../../inc
|
|
|
|
INCLUDE_PY = $(shell python -c 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))')
|
|
|
|
|
2022-09-18 21:35:30 +00:00
|
|
|
_ckzg.so: c_kzg_wrap.c ../../src/libckzg.a ../../lib/libblst.a ../../src/test_util.o
|
2022-09-18 11:55:34 +00:00
|
|
|
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -o $@ $^
|
|
|
|
|
|
|
|
c_kzg_wrap.c ckzg.py: ../c_kzg.swg
|
|
|
|
swig -O -python -outcurrentdir $<
|