• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if BUILD_OVERLAY
2bin_PROGRAMS = intel-gpu-overlay
3
4BUILT_SOURCES = tracepoint_format.h
5endif
6
7tracepoint_format.h: tracepoint_format.leg
8	$(LEG) -o $@ $<
9
10AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \
11	      -I$(top_srcdir)/lib/stubs/syscalls
12AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \
13	$(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib
14LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.la
15
16intel_gpu_overlay_SOURCES = \
17	chart.h \
18	chart.c \
19	config.c \
20	cpu-top.h \
21	cpu-top.c \
22	debugfs.h \
23	debugfs.c \
24	gem-interrupts.h \
25	gem-interrupts.c \
26	gem-objects.h \
27	gem-objects.c \
28	gpu-top.h \
29	gpu-top.c \
30	gpu-perf.h \
31	gpu-perf.c \
32	gpu-freq.h \
33	gpu-freq.c \
34	overlay.h \
35	overlay.c \
36	power.h \
37	power.c \
38	rc6.h \
39	rc6.c \
40	$(NULL)
41
42if BUILD_OVERLAY_XLIB
43both_x11_sources = x11/position.c x11/position.h
44AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS)
45LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS)
46intel_gpu_overlay_SOURCES += \
47	x11/x11-window.c \
48	$(NULL)
49endif
50
51if BUILD_OVERLAY_XVLIB
52both_x11_sources = x11/position.c
53AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS)
54LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS)
55intel_gpu_overlay_SOURCES += \
56	x11/dri2.c \
57	x11/dri2.h \
58	x11/rgb2yuv.c \
59	x11/rgb2yuv.h \
60	x11/x11-overlay.c \
61	$(NULL)
62endif
63
64intel_gpu_overlay_SOURCES += \
65	kms/kms-overlay.c \
66	$(NULL)
67
68intel_gpu_overlay_SOURCES += $(both_x11_sources)
69
70intel_gpu_overlay_LDADD = $(LDADD) -lrt -lm
71