diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2022-08-05 22:19:59 -0400 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2022-08-17 08:55:12 -0400 |
commit | 9419b7ef0ddd419c809033508425a1b86be389e9 (patch) | |
tree | 4e60fe9c71e240145d3d632ac84aaf669a272485 /Makefile.am | |
parent | fuzzers: add httpecho fuzzer script (diff) | |
download | online-9419b7ef0ddd419c809033508425a1b86be389e9.tar.gz online-9419b7ef0ddd419c809033508425a1b86be389e9.zip |
make: minimize fuzzer dependency duplication
Change-Id: I6ff335ab6e4ddeb950cd03ddb08a793790327579
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am index 85dba2797c..d4b4cbd484 100644 --- a/Makefile.am +++ b/Makefile.am @@ -180,14 +180,16 @@ coolforkit_SOURCES = $(coolforkit_sources) \ $(shared_sources) if ENABLE_LIBFUZZER +common_fuzzer_sources = \ + $(coolwsd_sources) \ + $(coolforkit_sources) \ + $(shared_sources) admin_fuzzer_CPPFLAGS = \ -DKIT_IN_PROCESS=1 \ $(AM_CPPFLAGS) admin_fuzzer_SOURCES = \ - $(coolwsd_sources) \ - $(coolforkit_sources) \ - $(shared_sources) \ + $(common_fuzzer_sources) \ fuzzer/Admin.cpp admin_fuzzer_LDFLAGS = -fsanitize=fuzzer $(AM_LDFLAGS) @@ -195,9 +197,7 @@ clientsession_fuzzer_CPPFLAGS = \ -DKIT_IN_PROCESS=1 \ $(AM_CPPFLAGS) clientsession_fuzzer_SOURCES = \ - $(coolwsd_sources) \ - $(coolforkit_sources) \ - $(shared_sources) \ + $(common_fuzzer_sources) \ fuzzer/ClientSession.cpp clientsession_fuzzer_LDFLAGS = -fsanitize=fuzzer $(AM_LDFLAGS) @@ -205,9 +205,7 @@ httpresponse_fuzzer_CPPFLAGS = \ -DKIT_IN_PROCESS=1 \ $(AM_CPPFLAGS) httpresponse_fuzzer_SOURCES = \ - $(coolwsd_sources) \ - $(coolforkit_sources) \ - $(shared_sources) \ + $(common_fuzzer_sources) \ fuzzer/HttpResponse.cpp httpresponse_fuzzer_LDFLAGS = -fsanitize=fuzzer $(AM_LDFLAGS) @@ -216,9 +214,7 @@ httpecho_fuzzer_CPPFLAGS = \ $(AM_CPPFLAGS) \ -I${top_srcdir}/test httpecho_fuzzer_SOURCES = \ - $(loolwsd_sources) \ - $(loolforkit_sources) \ - $(shared_sources) \ + $(common_fuzzer_sources) \ fuzzer/HttpEcho.cpp httpecho_fuzzer_LDFLAGS = -fsanitize=fuzzer $(AM_LDFLAGS) |