1IGT_LIB_PATH := $(builddir) 2GPU_TOOLS_PATH := $(top_srcdir) 3 4include Makefile.sources 5 6libintel_tools_la_SOURCES = $(lib_source_list) 7 8libigt_perf_la_SOURCES = \ 9 igt_perf.c \ 10 igt_perf.h 11 12noinst_LTLIBRARIES = libintel_tools.la libigt_perf.la 13noinst_HEADERS = check-ndebug.h 14 15if !HAVE_LIBDRM_INTEL 16 libintel_tools_la_SOURCES += \ 17 stubs/drm/intel_bufmgr.c \ 18 stubs/drm/intel_bufmgr.h 19endif 20 21if HAVE_CHAMELIUM 22lib_source_list += \ 23 igt_chamelium.h \ 24 igt_chamelium.c \ 25 igt_chamelium_stream.h \ 26 igt_chamelium_stream.c \ 27 $(NULL) 28endif 29 30if HAVE_GSL 31lib_source_list += \ 32 igt_frame.c \ 33 igt_frame.h \ 34 igt_audio.c \ 35 igt_audio.h \ 36 $(NULL) 37endif 38 39if HAVE_ALSA 40lib_source_list += \ 41 igt_alsa.c \ 42 igt_alsa.h \ 43 $(NULL) 44endif 45 46AM_CPPFLAGS = \ 47 -I$(top_srcdir)/include/drm-uapi \ 48 -I$(top_srcdir) \ 49 -I$(top_srcdir)/lib/stubs/syscalls 50 51AM_CFLAGS = \ 52 $(CWARNFLAGS) \ 53 $(DRM_CFLAGS) \ 54 $(PCIACCESS_CFLAGS) \ 55 $(LIBUNWIND_CFLAGS) \ 56 $(LIBDW_CFLAGS) \ 57 $(GSL_CFLAGS) \ 58 $(KMOD_CFLAGS) \ 59 $(PROCPS_CFLAGS) \ 60 $(DEBUG_CFLAGS) \ 61 $(XMLRPC_CFLAGS) \ 62 $(LIBUDEV_CFLAGS) \ 63 $(PIXMAN_CFLAGS) \ 64 $(GLIB_CFLAGS) \ 65 $(VALGRIND_CFLAGS) \ 66 -DIGT_SRCDIR=\""$(abs_top_srcdir)/tests"\" \ 67 -DIGT_DATADIR=\""$(pkgdatadir)"\" \ 68 -D_GNU_SOURCE \ 69 -DIGT_LOG_DOMAIN=\""$(subst _,-,$*)"\" \ 70 -pthread 71 72AM_CFLAGS += $(CAIRO_CFLAGS) 73 74libintel_tools_la_LIBADD = \ 75 $(DRM_LIBS) \ 76 $(PCIACCESS_LIBS) \ 77 $(PROCPS_LIBS) \ 78 $(GSL_LIBS) \ 79 $(KMOD_LIBS) \ 80 $(CAIRO_LIBS) \ 81 $(LIBUDEV_LIBS) \ 82 $(LIBUNWIND_LIBS) \ 83 $(LIBDW_LIBS) \ 84 $(TIMER_LIBS) \ 85 $(XMLRPC_LIBS) \ 86 $(LIBUDEV_LIBS) \ 87 $(PIXMAN_LIBS) \ 88 $(GLIB_LIBS) \ 89 libigt_perf.la \ 90 -lm 91