blob: c648875d24a7a2c6e7b5e64ea8b1f3dab3bc99a5 [file] [log] [blame]
Chris Wilsonf9a50de2013-08-17 11:12:07 +01001if BUILD_OVERLAY
2bin_PROGRAMS = intel-gpu-overlay
3endif
4
5AM_CPPFLAGS = -I.
6AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS)
7LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS)
8
9intel_gpu_overlay_SOURCES = \
10 i915_pciids.h \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010011 chart.h \
12 chart.c \
Chris Wilson7c52a3c2013-08-22 15:07:48 +010013 config.c \
Chris Wilson6a64ee92013-08-18 15:56:22 +010014 cpu-top.h \
15 cpu-top.c \
Chris Wilson55b8c332013-08-19 18:15:04 +010016 debugfs.h \
17 debugfs.c \
Chris Wilsonc9f01732013-08-25 20:13:31 +010018 gem-interrupts.h \
19 gem-interrupts.c \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010020 gem-objects.h \
21 gem-objects.c \
22 gpu-top.h \
23 gpu-top.c \
Damien Lespiau993815a2013-08-20 18:52:53 +010024 gpu-perf.h \
Chris Wilsoncc45a9a2013-08-17 17:38:37 +010025 gpu-perf.c \
Chris Wilsonde2c97b2013-08-18 16:42:25 +010026 gpu-freq.h \
27 gpu-freq.c \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010028 igfx.h \
29 igfx.c \
Chris Wilson7c52a3c2013-08-22 15:07:48 +010030 overlay.h \
31 overlay.c \
Chris Wilson1c3fd702013-08-27 11:20:43 +010032 perf.h \
33 perf.c \
Chris Wilson5c81cda2013-08-20 10:04:23 +010034 power.h \
35 power.c \
Chris Wilsonbaa5be02013-08-20 09:27:34 +010036 rc6.h \
37 rc6.c \
Chris Wilson34e47802013-08-18 21:10:26 +010038 $(NULL)
39
40if BUILD_OVERLAY_XLIB
Chris Wilson7c52a3c2013-08-22 15:07:48 +010041both_x11_sources = x11/position.c x11/position.h
Chris Wilsonddcd1b22013-08-27 14:25:38 +010042AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS)
43LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS)
Chris Wilson34e47802013-08-18 21:10:26 +010044intel_gpu_overlay_SOURCES += \
45 x11/x11-window.c \
46 $(NULL)
47endif
48
49if BUILD_OVERLAY_XVLIB
Damien Lespiau25dfea22013-09-13 16:00:05 +010050both_x11_sources = x11/position.c
Chris Wilsonddcd1b22013-08-27 14:25:38 +010051AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS)
52LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS)
Chris Wilson34e47802013-08-18 21:10:26 +010053intel_gpu_overlay_SOURCES += \
Chris Wilsonf9a50de2013-08-17 11:12:07 +010054 x11/dri2.c \
55 x11/dri2.h \
56 x11/rgb2yuv.c \
57 x11/rgb2yuv.h \
58 x11/x11-overlay.c \
59 $(NULL)
Chris Wilson34e47802013-08-18 21:10:26 +010060endif
Chris Wilsonf9a50de2013-08-17 11:12:07 +010061
Chris Wilsond9291022013-08-25 13:15:55 +010062intel_gpu_overlay_SOURCES += \
63 kms/kms-overlay.c \
64 $(NULL)
65
Chris Wilson7c52a3c2013-08-22 15:07:48 +010066intel_gpu_overlay_SOURCES += $(both_x11_sources)
67
Rodrigo Vivi564a1dd2013-09-16 15:34:27 -030068intel_gpu_overlay_LDADD = $(LDADD) -lrt
69
Chris Wilsonf9a50de2013-08-17 11:12:07 +010070EXTRA_DIST=README