Make the tests the default make target

This commit is contained in:
Ramana Kumar 2022-09-19 10:54:07 +01:00
parent 701da680ce
commit 80b1c973cf
No known key found for this signature in database
GPG Key ID: ED471C788B900433
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
INCLUDE_DIRS = .. ../../src ../../inc
INCLUDE_PY = $(shell python -c 'import sysconfig; print(sysconfig.get_config_var("INCLUDEPY"))')
test: tests.py _ckzg.so
python $<
_ckzg.so: c_kzg_wrap.c ../../src/libckzg.a ../../lib/libblst.a ../../src/test_util.o
clang -O -Wall -shared -fPIC -Wl,-Bsymbolic -I${INCLUDE_PY} ${addprefix -I,${INCLUDE_DIRS}} -o $@ $^