commit 8540fff2831fcabede856bf7f8b45c2cbcd807fe parent 395d2c44593d554d337c1c2712bd4fbef2ef8f28 Author: nolash <dev@holbrook.no> Date: Thu, 16 Sep 2021 13:46:41 +0200 Add missing lib includes for base check build Diffstat:
M | Makefile.dev | | | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/Makefile.dev b/Makefile.dev @@ -2,7 +2,7 @@ KECCAK_DIR = ./aux/keccak-tiny INCLUDE = -I./src -I$(KECCAK_DIR) -L./build/lib/ LIBS += -L./build/ CFLAGS += $(INCLUDE) $(LIBS) -CFLAGS_CHECK = $(CFLAGS) -L./build/test +CFLAGS_CHECK = $(CFLAGS) -L./build/test ./aux/secp256k1/.libs/libsecp256k1.a prefix = /usr/local includedir = $(prefix)/include libdir = $(prefix)/lib @@ -46,13 +46,14 @@ build_check_common: $(CC) -c -o build/common.o $(CFLAGS) test/common.c ar -rvs build/test/libtestcommon.a build/common.o build/hex.o +# TODO: should not be necessary to add -lsecp256k1 here build_check: build_base build_check_common - $(CC) -I./src -o build/test/check_bmt build/swarm.o build/bmt.o build/endian.o build/swarmfile.o test/check_bmt.c $(CFLAGS_CHECK) -lcheck -lkeccak-tiny -ltestcommon - $(CC) -I./src -o build/test/check_file build/swarm.o build/bmt.o build/endian.o build/swarmfile.o test/check_file.c $(CFLAGS_CHECK) -lcheck -lkeccak-tiny -ltestcommon + $(CC) -I./src -o build/test/check_bmt build/swarm.o build/bmt.o build/endian.o build/swarmfile.o test/check_bmt.c $(CFLAGS_CHECK) -lcheck -lkeccak-tiny -ltestcommon -lsecp256k1 + $(CC) -I./src -o build/test/check_file build/swarm.o build/bmt.o build/endian.o build/swarmfile.o test/check_file.c $(CFLAGS_CHECK) -lcheck -lkeccak-tiny -ltestcommon -lsecp256k1 build_check_keystore: build_base build_keystore build_check_common - $(CC) -I./src -o build/test/check_keystore build/swarm.o build/keystore.o test/check_keystore.c $(CFLAGS_CHECK) ./aux/secp256k1/.libs/libsecp256k1.a -lcheck -lkeccak-tiny -ltestcommon + $(CC) -I./src -o build/test/check_keystore build/swarm.o build/keystore.o test/check_keystore.c $(CFLAGS_CHECK) -lcheck -lkeccak-tiny -ltestcommon build_check_soc: build build_check_common build_soc @@ -74,7 +75,7 @@ check_keystore: build build_check_keystore check_soc: build build_check_soc LD_LIBRARY_PATH=./build/:./build/test CK_FORK=no build/test/check_soc -check: check_base check_soc +check: check_base check_keystore check_soc test: check