1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2019 Xiph.Org Foundation
4 # This file is part the FLAC project. FLAC is comprised of several
5 # components distributed under different licenses. The codec libraries
6 # are distributed under Xiph.Org's BSD-like license (see the file
7 # COPYING.Xiph in this distribution). All other programs, libraries, and
8 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
9 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
10 # FLAC distribution contains at the top the terms under which it may be
13 # Since this particular file is relevant to all components of FLAC,
14 # it may be distributed under the Xiph.Org license, which is the least
15 # restrictive of those mentioned above. See the file COPYING.Xiph in this
18 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/oss-fuzz
20 AM_CXXFLAGS = -std=c++11
25 fuzzing/datasource/datasource.hpp \
26 fuzzing/datasource/id.hpp \
27 fuzzing/exception.hpp \
32 FUZZ_FLAG = $(LIB_FUZZING_ENGINE)
36 FUZZ_LDADD = $(LIB_FUZZING_ENGINE)
44 noinst_PROGRAMS += fuzz-decoder fuzz-encoder
47 fuzz_decoder_SOURCES = fuzz-decoder.cc
48 fuzz_decoder_CXXFLAGS = $(AM_CXXFLAGS) $(FUZZ_FLAG)
49 fuzz_decoder_LDFLAGS = $(AM_LDFLAGS) -static
50 fuzz_decoder_LDADD = $(flac_libs) $(FUZZ_LDADD)
52 fuzz_encoder_SOURCES = fuzz-encoder.cc
53 fuzz_encoder_CXXFLAGS = $(AM_CXXFLAGS) $(FUZZ_FLAG)
54 fuzz_encoder_LDFLAGS = $(AM_LDFLAGS) -static
55 fuzz_encoder_LDADD = $(flac_libs) $(FUZZ_LDADD)
58 $(top_builddir)/src/libFLAC/libFLAC-static.la \
59 $(top_builddir)/src/libFLAC++/libFLAC++-static.la \