Merge branch 'fuzzing'
[strongswan.git] / fuzz / Makefile.am
1 CPPFLAGS = @CPPFLAGS@ \
2         -I$(top_srcdir)/src/libstrongswan \
3         -DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
4         -DPLUGINS="\"${fuzz_plugins}\""
5
6 LDFLAGS = @LDFLAGS@ ${libfuzzer} \
7         $(top_builddir)/src/libstrongswan/.libs/libstrongswan.a \
8         -Wl,-Bstatic -lgmp -Wl,-Bdynamic \
9         -stdlib=libc++ -lstdc++
10
11 FUZZ_TARGETS=fuzz_certs
12
13 all-local: $(FUZZ_TARGETS)
14
15 CLEANFILES=$(FUZZ_TARGETS)
16
17 fuzz_certs: fuzz_certs.c
18         $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS)