blob: 51643e498ae1f5d7152188bfce35f61a560a0ce0 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
if BUILD_OVERLAY
bin_PROGRAMS = intel-gpu-overlay
BUILT_SOURCES = tracepoint_format.h
endif
tracepoint_format.h: tracepoint_format.leg
$(LEG) -o $@ $<
AM_CPPFLAGS = -I. -I$(top_srcdir)/include/drm-uapi \
-I$(top_srcdir)/lib/stubs/syscalls
AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) \
$(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) $(WERROR_CFLAGS) -I$(srcdir)/../lib
LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) $(top_builddir)/lib/libigt_perf.la
intel_gpu_overlay_SOURCES = \
chart.h \
chart.c \
config.c \
cpu-top.h \
cpu-top.c \
debugfs.h \
debugfs.c \
gem-interrupts.h \
gem-interrupts.c \
gem-objects.h \
gem-objects.c \
gpu-top.h \
gpu-top.c \
gpu-perf.h \
gpu-perf.c \
gpu-freq.h \
gpu-freq.c \
igfx.h \
igfx.c \
overlay.h \
overlay.c \
power.h \
power.c \
rc6.h \
rc6.c \
$(NULL)
if BUILD_OVERLAY_XLIB
both_x11_sources = x11/position.c x11/position.h
AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS)
LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS)
intel_gpu_overlay_SOURCES += \
x11/x11-window.c \
$(NULL)
endif
if BUILD_OVERLAY_XVLIB
both_x11_sources = x11/position.c
AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS)
LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS)
intel_gpu_overlay_SOURCES += \
x11/dri2.c \
x11/dri2.h \
x11/rgb2yuv.c \
x11/rgb2yuv.h \
x11/x11-overlay.c \
$(NULL)
endif
intel_gpu_overlay_SOURCES += \
kms/kms-overlay.c \
$(NULL)
intel_gpu_overlay_SOURCES += $(both_x11_sources)
intel_gpu_overlay_LDADD = $(LDADD) -lrt -lm
|