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-09-08 16:28:56 +02:00
|
|
|
FUZZ_COMMON_OBJS := \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/amount.o \
|
|
|
|
common/addr.o \
|
|
|
|
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 \
|
2020-09-23 13:56:36 +02:00
|
|
|
common/channel_id.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
common/json.o \
|
|
|
|
common/json_stream.o \
|
|
|
|
common/wireaddr.o \
|
|
|
|
common/type_to_string.o \
|
2020-09-08 16:28:56 +02:00
|
|
|
common/utils.o \
|
2020-09-07 17:32:19 +02:00
|
|
|
wire/fromwire.o \
|
|
|
|
wire/onion_wiregen.o \
|
|
|
|
wire/towire.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)
|