• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Process this file with automake to produce Makefile.in
2
3NULL =
4EXTRA_DIST =
5CLEANFILES =
6DISTCLEANFILES =
7MAINTAINERCLEANFILES =
8
9# Convenience targets:
10lib:
11	@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src fuzzing
12
13$(top_builddir)/src/libharfbuzz-fuzzing.la: lib
14
15EXTRA_DIST += \
16	README \
17	$(NULL)
18
19check_PROGRAMS = \
20	hb-fuzzer \
21	$(NULL)
22
23AM_CPPFLAGS = \
24	-DHB_DISABLE_DEPRECATED \
25	-I$(top_srcdir)/src/ \
26	-I$(top_builddir)/src/ \
27	$(NULL)
28LDADD = \
29	$(top_builddir)/src/libharfbuzz-fuzzing.la \
30	$(NULL)
31
32hb_fuzzer_SOURCES = \
33	hb-fuzzer.cc \
34	$(NULL)
35hb_fuzzer_LDADD = \
36	$(LDADD) \
37	$(NULL)
38hb_fuzzer_CPPFLAGS = \
39	$(AM_CPPFLAGS) \
40	-DMAIN \
41	$(NULL)
42hb_fuzzer_DEPENDENCIES = \
43	lib \
44	$(NULL)
45
46check:
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