From 7974f01b493ea069713b8c9646233ef5b3e73ca0 Mon Sep 17 00:00:00 2001 From: Kartik Agarwala Date: Mon, 1 Jul 2024 14:03:12 +0530 Subject: [PATCH] Automatically find cpp files in targets folder --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 598a3bb..cb7761b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CXX = clang++ CC = clang -SOURCES := targets/addrv2.cpp targets/script.cpp targets/psbt.cpp targets/bech32.cpp targets/tx_des.cpp targets/miniscript_string.cpp targets/block_des.cpp targets/prefilledtransaction.cpp +SOURCES := $(wildcard $(shell find targets -type f -name '*.cpp')) INCLUDES = dependencies/ dependencies/bitcoin/src/ dependencies/bitcoin/src/secp256k1/include LIB_DIR = dependencies/bitcoin/src/ dependencies/bitcoin/src/.libs dependencies/bitcoin/src/secp256k1/.libs rust_bitcoin_lib/target/debug btcd_lib OBJS := $(patsubst %.cpp, build/%.o, $(SOURCES))