From: Victor Julien Date: Mon, 30 Mar 2020 07:11:54 +0000 (+0200) Subject: build: wrap fuzz targets in guard to fix 'make tags' X-Git-Tag: suricata-6.0.0-beta1~583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d969a1c7db5060ca6ea99f877d451d7d4a5aa23;p=thirdparty%2Fsuricata.git build: wrap fuzz targets in guard to fix 'make tags' --- diff --git a/src/Makefile.am b/src/Makefile.am index 1fb4326c75..c47012c346 100755 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -551,6 +551,7 @@ suricata_LDFLAGS = $(all_libraries) ${SECLDFLAGS} suricata_LDADD = $(HTP_LDADD) $(RUST_LDADD) suricata_DEPENDENCIES = $(RUST_SURICATA_LIB) +if BUILD_FUZZTARGETS nodist_fuzz_applayerprotodetectgetproto_SOURCES = tests/fuzz/fuzz_applayerprotodetectgetproto.c $(COMMON_SOURCES) fuzz_applayerprotodetectgetproto_LDFLAGS = $(all_libraries) ${SECLDFLAGS} fuzz_applayerprotodetectgetproto_LDADD = $(RUST_SURICATA_LIB) $(HTP_LDADD) $(RUST_LDADD) @@ -627,6 +628,7 @@ else endif # force usage of CXX for linker nodist_EXTRA_fuzz_mimedecparseline_SOURCES = force-cxx-linking.cxx +endif # default CFLAGS AM_CFLAGS = ${OPTIMIZATION_CFLAGS} ${GCC_CFLAGS} ${CLANG_CFLAGS} \