Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 1 | if BUILD_OVERLAY |
| 2 | bin_PROGRAMS = intel-gpu-overlay |
| 3 | endif |
| 4 | |
| 5 | AM_CPPFLAGS = -I. |
| 6 | AM_CFLAGS = $(DRM_CFLAGS) $(PCIACCESS_CFLAGS) $(CWARNFLAGS) $(CAIRO_CFLAGS) $(OVERLAY_CFLAGS) |
| 7 | LDADD = $(DRM_LIBS) $(PCIACCESS_LIBS) $(CAIRO_LIBS) $(OVERLAY_LIBS) |
| 8 | |
| 9 | intel_gpu_overlay_SOURCES = \ |
| 10 | i915_pciids.h \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 11 | chart.h \ |
| 12 | chart.c \ |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 13 | config.c \ |
Chris Wilson | 6a64ee9 | 2013-08-18 15:56:22 +0100 | [diff] [blame] | 14 | cpu-top.h \ |
| 15 | cpu-top.c \ |
Chris Wilson | 55b8c33 | 2013-08-19 18:15:04 +0100 | [diff] [blame] | 16 | debugfs.h \ |
| 17 | debugfs.c \ |
Chris Wilson | c9f0173 | 2013-08-25 20:13:31 +0100 | [diff] [blame] | 18 | gem-interrupts.h \ |
| 19 | gem-interrupts.c \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 20 | gem-objects.h \ |
| 21 | gem-objects.c \ |
| 22 | gpu-top.h \ |
| 23 | gpu-top.c \ |
Damien Lespiau | 993815a | 2013-08-20 18:52:53 +0100 | [diff] [blame] | 24 | gpu-perf.h \ |
Chris Wilson | cc45a9a | 2013-08-17 17:38:37 +0100 | [diff] [blame] | 25 | gpu-perf.c \ |
Chris Wilson | de2c97b | 2013-08-18 16:42:25 +0100 | [diff] [blame] | 26 | gpu-freq.h \ |
| 27 | gpu-freq.c \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 28 | igfx.h \ |
| 29 | igfx.c \ |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 30 | overlay.h \ |
| 31 | overlay.c \ |
Chris Wilson | 1c3fd70 | 2013-08-27 11:20:43 +0100 | [diff] [blame] | 32 | perf.h \ |
| 33 | perf.c \ |
Chris Wilson | 5c81cda | 2013-08-20 10:04:23 +0100 | [diff] [blame] | 34 | power.h \ |
| 35 | power.c \ |
Chris Wilson | baa5be0 | 2013-08-20 09:27:34 +0100 | [diff] [blame] | 36 | rc6.h \ |
| 37 | rc6.c \ |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 38 | $(NULL) |
| 39 | |
| 40 | if BUILD_OVERLAY_XLIB |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 41 | both_x11_sources = x11/position.c x11/position.h |
Chris Wilson | ddcd1b2 | 2013-08-27 14:25:38 +0100 | [diff] [blame] | 42 | AM_CFLAGS += $(OVERLAY_XLIB_CFLAGS) $(XRANDR_CFLAGS) |
| 43 | LDADD += $(OVERLAY_XLIB_LIBS) $(XRANDR_LIBS) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 44 | intel_gpu_overlay_SOURCES += \ |
| 45 | x11/x11-window.c \ |
| 46 | $(NULL) |
| 47 | endif |
| 48 | |
| 49 | if BUILD_OVERLAY_XVLIB |
Damien Lespiau | 25dfea2 | 2013-09-13 16:00:05 +0100 | [diff] [blame] | 50 | both_x11_sources = x11/position.c |
Chris Wilson | ddcd1b2 | 2013-08-27 14:25:38 +0100 | [diff] [blame] | 51 | AM_CFLAGS += $(OVERLAY_XVLIB_CFLAGS) $(XRANDR_CFLAGS) |
| 52 | LDADD += $(OVERLAY_XVLIB_LIBS) $(XRANDR_LIBS) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 53 | intel_gpu_overlay_SOURCES += \ |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 54 | x11/dri2.c \ |
| 55 | x11/dri2.h \ |
| 56 | x11/rgb2yuv.c \ |
| 57 | x11/rgb2yuv.h \ |
| 58 | x11/x11-overlay.c \ |
| 59 | $(NULL) |
Chris Wilson | 34e4780 | 2013-08-18 21:10:26 +0100 | [diff] [blame] | 60 | endif |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 61 | |
Chris Wilson | d929102 | 2013-08-25 13:15:55 +0100 | [diff] [blame] | 62 | intel_gpu_overlay_SOURCES += \ |
| 63 | kms/kms-overlay.c \ |
| 64 | $(NULL) |
| 65 | |
Chris Wilson | 7c52a3c | 2013-08-22 15:07:48 +0100 | [diff] [blame] | 66 | intel_gpu_overlay_SOURCES += $(both_x11_sources) |
| 67 | |
Rodrigo Vivi | 564a1dd | 2013-09-16 15:34:27 -0300 | [diff] [blame] | 68 | intel_gpu_overlay_LDADD = $(LDADD) -lrt |
| 69 | |
Chris Wilson | f9a50de | 2013-08-17 11:12:07 +0100 | [diff] [blame] | 70 | EXTRA_DIST=README |