summaryrefslogtreecommitdiff
path: root/runner/Makefile.am
blob: ddcbf86a8f69e0084c3d68799438275d116a2dd6 (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

if BUILD_RUNNER

SUBDIRS = testdata

runnerlib = librunner.la
noinst_LTLIBRARIES = $(runnerlib)
librunner_la_SOURCES =	\
	settings.c	\
	job_list.c	\
	executor.c	\
	resultgen.c	\
	$(NULL)

bin_PROGRAMS =		\
	igt_runner	\
	igt_resume	\
	igt_results	\
	$(NULL)

LDADD = $(runnerlib) $(JSONC_LIBS) ../lib/libintel_tools.la

igt_runner_SOURCES = runner.c
igt_resume_SOURCES = resume.c
igt_results_SOURCES = results.c

AM_CFLAGS = $(JSONC_CFLAGS) \
	$(CWARNFLAGS) -Wno-unused-result $(DEBUG_CFLAGS) \
	-I$(srcdir)/.. \
	-I$(srcdir)/../lib \
	-D_GNU_SOURCE

TESTS = runner_test
check_PROGRAMS = runner_test
runner_test_SOURCES = runner_tests.c
runner_test_CFLAGS = -DTESTDATA_DIRECTORY=\"$(abs_builddir)/testdata\" \
	-I$(top_srcdir)/include/drm-uapi \
	$(DRM_CFLAGS) $(CAIRO_CFLAGS) $(LIBUDEV_CFLAGS) \
	-I$(srcdir)/.. \
	-I$(srcdir)/../lib \
	-D_GNU_SOURCE

endif