# 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 lib
libs:
	@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src libs

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

# seems autotools builds do not support builds with experimental APIs, so
# EXTRA_DIST hb-repacker-fuzzer.cc

EXTRA_DIST += \
	README.md \
	hb-repacker-fuzzer.cc \
	run-shape-fuzzer-tests.py \
	run-subset-fuzzer-tests.py \
	run-draw-fuzzer-tests.py \
	run-repacker-fuzzer-tests.py \
	meson.build \
	fonts \
	graphs \
	sets \
	$(NULL)

check_PROGRAMS = \
	hb-shape-fuzzer \
	hb-subset-fuzzer \
	hb-set-fuzzer \
	hb-draw-fuzzer \
	$(NULL)

AM_CPPFLAGS = \
	-DHB_DISABLE_DEPRECATED \
	-I$(top_srcdir)/src/ \
	-I$(top_builddir)/src/ \
	$(NULL)

hb_shape_fuzzer_SOURCES = \
	hb-fuzzer.hh \
	hb-shape-fuzzer.cc \
	main.cc \
	$(NULL)
hb_shape_fuzzer_LDADD = $(top_builddir)/src/libharfbuzz.la
hb_shape_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
hb_shape_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la

hb_subset_fuzzer_SOURCES = \
	hb-fuzzer.hh \
	hb-subset-fuzzer.cc \
	main.cc \
	$(NULL)
hb_subset_fuzzer_LDADD = \
	$(top_builddir)/src/libharfbuzz.la \
	$(top_builddir)/src/libharfbuzz-subset.la
hb_subset_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
hb_subset_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz-subset.la

hb_set_fuzzer_SOURCES = \
	hb-fuzzer.hh \
	hb-set-fuzzer.cc \
	main.cc \
	$(NULL)
hb_set_fuzzer_LDADD = $(top_builddir)/src/libharfbuzz.la
hb_set_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
hb_set_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la

hb_draw_fuzzer_SOURCES = \
	hb-fuzzer.hh \
	hb-draw-fuzzer.cc \
	main.cc \
	$(NULL)
hb_draw_fuzzer_LDADD = $(top_builddir)/src/libharfbuzz.la
hb_draw_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
hb_draw_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la


check:
	EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" LIBTOOL="$(LIBTOOL)" $(srcdir)/run-shape-fuzzer-tests.py
	EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" LIBTOOL="$(LIBTOOL)" $(srcdir)/run-subset-fuzzer-tests.py
	EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" LIBTOOL="$(LIBTOOL)" $(srcdir)/run-draw-fuzzer-tests.py
check-valgrind:
	$(AM_V_at)RUN_VALGRIND=1 $(MAKE) $(AM_MAKEFLGS) check

-include $(top_srcdir)/git.mk