6d3d83ff7e2512f45d4efd648b96eba397e1c89b
[strongswan.git] / fuzz / Makefile.am
1 AM_CPPFLAGS = @CPPFLAGS@ \
2         -I$(top_srcdir)/src/libstrongswan \
3         -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
4         -DPLUGINS="\"${fuzz_plugins}\""
5
6 fuzz_ldflags = ${libfuzzer} \
7         $(top_builddir)/src/libstrongswan/.libs/libstrongswan.a \
8         -Wl,-Bstatic -lgmp -Wl,-Bdynamic \
9         @FUZZING_LDFLAGS@
10
11 FUZZ_TARGETS=fuzz_certs
12
13 all-local: $(FUZZ_TARGETS)
14
15 CLEANFILES=$(FUZZ_TARGETS)
16
17 fuzz_certs: fuzz_certs.c ${libfuzzer}
18         $(CC) $(AM_CPPFLAGS) $(CFLAGS) -o $@ $< $(fuzz_ldflags)
19
20 noinst_LIBRARIES = libFuzzerLocal.a
21 libFuzzerLocal_a_SOURCES = libFuzzerLocal.c
22 libFuzzerLocal_a_LIBADD = $(top_builddir)/src/libstrongswan/libstrongswan.la