1 # Process this file with automake to produce Makefile.in 2 3 NULL = 4 EXTRA_DIST = 5 CLEANFILES = 6 DISTCLEANFILES = 7 MAINTAINERCLEANFILES = 8 9 # Convenience targets: 10 lib: 11 @$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src fuzzing 12 13 $(top_builddir)/src/libharfbuzz-fuzzing.la: lib 14 15 EXTRA_DIST += \ 16 README \ 17 $(NULL) 18 19 check_PROGRAMS = \ 20 hb-fuzzer \ 21 $(NULL) 22 23 AM_CPPFLAGS = \ 24 -DHB_DISABLE_DEPRECATED \ 25 -I$(top_srcdir)/src/ \ 26 -I$(top_builddir)/src/ \ 27 $(NULL) 28 LDADD = \ 29 $(top_builddir)/src/libharfbuzz-fuzzing.la \ 30 $(NULL) 31 32 hb_fuzzer_SOURCES = \ 33 hb-fuzzer.cc \ 34 $(NULL) 35 hb_fuzzer_LDADD = \ 36 $(LDADD) \ 37 $(NULL) 38 hb_fuzzer_CPPFLAGS = \ 39 $(AM_CPPFLAGS) \ 40 -DMAIN \ 41 $(NULL) 42 hb_fuzzer_DEPENDENCIES = \ 43 lib \ 44 $(NULL) 45 46 check: 47 cat $(srcdir)/../shaping/tests/fuzzed.tests | \ 48 cut -d: -f1 | while read x; do \ 49 ./hb-fuzzer $(srcdir)/../shaping/$$x; \ 50 done 51 52 -include $(top_srcdir)/git.mk 53