summaryrefslogtreecommitdiff
path: root/fuzz/Makefile.am
blob: 66debc226696a4f31759ecfbdd9404b0a7f066bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CPPFLAGS = @CPPFLAGS@ \
	-I$(top_srcdir)/src/libstrongswan \
	-DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
	-DPLUGINS="\"${fuzz_plugins}\""

LDFLAGS = @LDFLAGS@ ${libfuzzer} \
	$(top_builddir)/src/libstrongswan/.libs/libstrongswan.a \
	-Wl,-Bstatic -lgmp -Wl,-Bdynamic \
	-stdlib=libc++ -lstdc++

FUZZ_TARGETS=fuzz_certs

all-local: $(FUZZ_TARGETS)

CLEANFILES=$(FUZZ_TARGETS)

fuzz_certs: fuzz_certs.c
	$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS)