2020-09-07 17:32:19 +02:00
|
|
|
LIBFUZZ_SRC := tests/fuzz/libfuzz.c
|
|
|
|
LIBFUZZ_HEADERS := $(LIBFUZZ_SRC:.c=.h)
|
|
|
|
LIBFUZZ_OBJS := $(LIBFUZZ_SRC:.c=.o)
|
|
|
|
|
|
|
|
|
|
|
|
FUZZ_TARGETS_SRC := $(wildcard tests/fuzz/fuzz-*.c)
|
|
|
|
FUZZ_TARGETS_OBJS := $(FUZZ_TARGETS_SRC:.c=.o)
|
|
|
|
FUZZ_TARGETS_BIN := $(FUZZ_TARGETS_SRC:.c=)
|
|
|
|
|
2020-10-14 17:17:57 +02:00
|
|
|
FUZZ_COMMON_OBJS := \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/amount.o \
|
|
|
|
common/addr.o \
|
2021-10-13 05:42:42 +02:00
|
|
|
common/autodata.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/base32.o \
|
2020-09-10 18:19:58 +02:00
|
|
|
common/base64.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/bech32.o \
|
2020-09-23 12:13:46 +02:00
|
|
|
common/bip32.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/bigsize.o \
|
2021-10-13 05:42:42 +02:00
|
|
|
common/blockheight_states.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/channel_config.o \
|
2020-09-23 17:14:17 +02:00
|
|
|
common/close_tx.o \
|
2020-09-23 13:56:36 +02:00
|
|
|
common/channel_id.o \
|
2021-10-13 05:42:42 +02:00
|
|
|
common/channel_type.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/daemon.o \
|
|
|
|
common/daemon_conn.o \
|
|
|
|
common/derive_basepoints.o \
|
2020-10-30 15:29:07 +01:00
|
|
|
common/descriptor_checksum.o \
|
2021-10-13 05:42:42 +02:00
|
|
|
common/features.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/fee_states.o \
|
2021-01-03 21:29:18 +01:00
|
|
|
common/hsm_encryption.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/htlc_state.o \
|
2020-09-23 17:14:17 +02:00
|
|
|
common/permute_tx.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/initial_channel.o \
|
|
|
|
common/initial_commit_tx.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/json.o \
|
|
|
|
common/json_stream.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/key_derive.o \
|
|
|
|
common/keyset.o \
|
|
|
|
common/msg_queue.o \
|
|
|
|
common/memleak.o \
|
|
|
|
common/node_id.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/wireaddr.o \
|
2020-09-23 17:14:17 +02:00
|
|
|
common/setup.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/status.o \
|
|
|
|
common/status_wire.o \
|
|
|
|
common/status_wiregen.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/type_to_string.o \
|
2020-09-08 16:28:56 +02:00
|
|
|
common/utils.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
common/version.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
wire/fromwire.o \
|
|
|
|
wire/onion_wiregen.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
wire/peer_wire.o \
|
2021-10-13 05:42:42 +02:00
|
|
|
wire/peer$(EXP)_wiregen.o \
|
|
|
|
wire/channel_type_wiregen.o \
|
2021-01-03 21:21:36 +01:00
|
|
|
wire/tlvstream.o \
|
2020-10-14 17:17:57 +02:00
|
|
|
wire/towire.o \
|
|
|
|
wire/wire_io.o \
|
|
|
|
wire/wire_sync.o
|
|
|
|
|
2020-09-08 16:28:56 +02:00
|
|
|
$(FUZZ_TARGETS_OBJS): $(COMMON_HEADERS) $(WIRE_HEADERS) $(COMMON_SRC)
|
|
|
|
$(FUZZ_TARGETS_BIN): $(LIBFUZZ_OBJS) $(FUZZ_COMMON_OBJS) $(BITCOIN_OBJS)
|
2020-09-07 17:32:19 +02:00
|
|
|
|
|
|
|
ALL_C_SOURCES += $(FUZZ_TARGETS_SRC) $(LIBFUZZ_SRC)
|
|
|
|
ALL_FUZZ_TARGETS += $(FUZZ_TARGETS_BIN)
|