Fix `make run-test` for newly cloned repo

This commit is contained in:
Alexey Osipov 2022-11-08 17:26:26 +03:00
parent 08d7384465
commit 94f4c91e1a
1 changed files with 6 additions and 4 deletions

View File

@ -20,6 +20,8 @@ else
CKZG_LIBRARY_PATH=Ckzg.Bindings/runtimes/$(CSHARP_PLATFORM)/native/ckzg.so CKZG_LIBRARY_PATH=Ckzg.Bindings/runtimes/$(CSHARP_PLATFORM)/native/ckzg.so
endif endif
TARGETS=ckzg.c ../../src/c_kzg_4844.c ../../blst/$(BLST_OBJ)
.blst: .blst:
cd ../../blst &&\ cd ../../blst &&\
git apply ../blst_sha.patch &&\ git apply ../blst_sha.patch &&\
@ -27,8 +29,8 @@ endif
git apply -R ../blst_sha.patch &&\ git apply -R ../blst_sha.patch &&\
cd ../bindings/csharp cd ../bindings/csharp
.ckzg: ckzg.c ../../src/c_kzg_4844.c ../../blst/$(BLST_OBJ) .ckzg:
$(CLANG_EXECUTABLE) -O -Wall -shared $(CLANG_FLAGS) ${addprefix -I,${INCLUDE_DIRS}} -o $(CKZG_LIBRARY_PATH) $^ $(CLANG_EXECUTABLE) -O -Wall -shared $(CLANG_FLAGS) ${addprefix -I,${INCLUDE_DIRS}} -o $(CKZG_LIBRARY_PATH) $(TARGETS)
# Ckzg library # Ckzg library
ckzg: ckzg:
@ -36,9 +38,9 @@ ckzg:
@make .ckzg @make .ckzg
# E2e tests as an executable # E2e tests as an executable
test: tests.c ckzg.c ../../src/c_kzg_4844.c ../../blst/$(BLST_OBJ) test:
@make .blst @make .blst
$(CLANG_EXECUTABLE) -O -w -Wall $(CLANG_FLAGS) ${addprefix -I,${INCLUDE_DIRS}} -o $(TESTS_EXECUTABLE) $^ $(CLANG_EXECUTABLE) -O -w -Wall $(CLANG_FLAGS) ${addprefix -I,${INCLUDE_DIRS}} -o $(TESTS_EXECUTABLE) tests.c $(TARGETS)
# E2e tests are built and run # E2e tests are built and run
run-test: run-test: