2015-11-06 08:08:50 +01:00
|
|
|
# Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
NULL =
|
|
|
|
EXTRA_DIST =
|
|
|
|
CLEANFILES =
|
|
|
|
DISTCLEANFILES =
|
|
|
|
MAINTAINERCLEANFILES =
|
|
|
|
|
|
|
|
# Convenience targets:
|
|
|
|
lib:
|
2015-11-19 01:27:32 +01:00
|
|
|
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src fuzzing
|
2015-11-06 08:08:50 +01:00
|
|
|
|
2015-11-19 01:37:59 +01:00
|
|
|
$(top_builddir)/src/libharfbuzz-fuzzing.la: lib
|
|
|
|
|
2015-11-06 08:08:50 +01:00
|
|
|
EXTRA_DIST += \
|
|
|
|
README \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-01-07 23:52:16 +01:00
|
|
|
check_PROGRAMS = \
|
2015-11-06 08:08:50 +01:00
|
|
|
hb-fuzzer \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-DHB_DISABLE_DEPRECATED \
|
|
|
|
-I$(top_srcdir)/src/ \
|
|
|
|
-I$(top_builddir)/src/ \
|
|
|
|
$(NULL)
|
|
|
|
LDADD = \
|
2015-11-19 01:27:32 +01:00
|
|
|
$(top_builddir)/src/libharfbuzz-fuzzing.la \
|
2015-11-06 08:08:50 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
hb_fuzzer_SOURCES = \
|
|
|
|
hb-fuzzer.cc \
|
|
|
|
$(NULL)
|
|
|
|
hb_fuzzer_LDADD = \
|
|
|
|
$(LDADD) \
|
|
|
|
$(NULL)
|
|
|
|
hb_fuzzer_CPPFLAGS = \
|
|
|
|
$(AM_CPPFLAGS) \
|
|
|
|
-DMAIN \
|
|
|
|
$(NULL)
|
2016-02-19 08:43:39 +01:00
|
|
|
hb_fuzzer_DEPENDENCIES = \
|
|
|
|
lib \
|
|
|
|
$(NULL)
|
2015-11-06 08:08:50 +01:00
|
|
|
|
2015-11-19 21:03:04 +01:00
|
|
|
check:
|
2016-02-19 09:12:24 +01:00
|
|
|
cat $(srcdir)/../shaping/tests/fuzzed.tests | \
|
|
|
|
cut -d: -f1 | while read x; do \
|
|
|
|
./hb-fuzzer $(srcdir)/../shaping/$$x; \
|
|
|
|
done
|
2015-11-19 21:03:04 +01:00
|
|
|
|
2015-11-06 08:08:50 +01:00
|
|
|
-include $(top_srcdir)/git.mk
|