From f6b9f961aaca1a255e833564a7d50a079d9e51b2 Mon Sep 17 00:00:00 2001 From: Robert Foss Date: Wed, 27 Jul 2016 13:17:38 -0400 Subject: benchmarks/Makefile: Don't build benchmarks that depend on libdrm_intel Use the HAS_INTEL automake flag to avoid building benchmarks that won't compile unless libdrm_intel is available in the build system. Signed-off-by: Robert Foss Reviewed-by: Emil Velikov Signed-off-by: Daniel Vetter --- benchmarks/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'benchmarks/Makefile.am') diff --git a/benchmarks/Makefile.am b/benchmarks/Makefile.am index 49d2f649..7400dd0f 100644 --- a/benchmarks/Makefile.am +++ b/benchmarks/Makefile.am @@ -1,6 +1,9 @@ - include Makefile.sources +if HAVE_LIBDRM_INTEL + benchmarks_PROGRAMS += $(LIBDRM_INTEL_BENCHMARKS) +endif + AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(LIBUNWIND_CFLAGS) \ $(WERROR_CFLAGS) -- cgit v1.2.3