summaryrefslogtreecommitdiff
path: root/test/fuzzing/Makefile.am
blob: 3ea8605bd7bedfd3fe4abbb58aad25573e3d93e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Process this file with automake to produce Makefile.in

NULL =
EXTRA_DIST =
CLEANFILES =
DISTCLEANFILES =
MAINTAINERCLEANFILES =

# Convenience targets:
lib:
	@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src fuzzing

$(top_builddir)/src/libharfbuzz-fuzzing.la: lib

EXTRA_DIST += \
	README \
	$(NULL)

check_PROGRAMS = \
	hb-fuzzer \
	$(NULL)

AM_CPPFLAGS = \
	-DHB_DISABLE_DEPRECATED \
	-I$(top_srcdir)/src/ \
	-I$(top_builddir)/src/ \
	$(NULL)
LDADD = \
	$(top_builddir)/src/libharfbuzz-fuzzing.la \
	$(NULL)

hb_fuzzer_SOURCES = \
	hb-fuzzer.hh \
	hb-fuzzer.cc \
	main.cc \
	$(NULL)
hb_fuzzer_LDADD = \
	$(LDADD) \
	$(NULL)
hb_fuzzer_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(NULL)
hb_fuzzer_DEPENDENCIES = \
	lib \
	$(NULL)

check:
	cat $(srcdir)/../shaping/tests/fuzzed.tests | \
	cut -d: -f1 | while read x; do \
		./hb-fuzzer $(srcdir)/../shaping/$$x; \
	done

-include $(top_srcdir)/git.mk