1# Copyright © 2010 Intel Corporation 2# 3# Permission is hereby granted, free of charge, to any person obtaining a 4# copy of this software and associated documentation files (the "Software"), 5# to deal in the Software without restriction, including without limitation 6# the rights to use, copy, modify, merge, publish, distribute, sublicense, 7# and/or sell copies of the Software, and to permit persons to whom the 8# Software is furnished to do so, subject to the following conditions: 9# 10# The above copyright notice and this permission notice (including the next 11# paragraph) shall be included in all copies or substantial portions of the 12# Software. 13# 14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 20# IN THE SOFTWARE. 21# 22# Authors: 23# Eric Anholt <eric@anholt.net> 24 25# These programs aren't intended to be included with the normal distro. 26# They're not too interesting but they're good for testing. 27 28AM_CFLAGS = \ 29 $(DEMO_CFLAGS) \ 30 $(EGL_CFLAGS) \ 31 -I$(top_srcdir)/src/egl/eglut \ 32 -I$(top_srcdir)/src/util 33AM_LDFLAGS = \ 34 $(DEMO_LIBS) \ 35 $(EGL_LIBS) 36 37if HAVE_X11 38EGL_X11_DEMOS = \ 39 eglgears_x11 \ 40 egltri_x11 \ 41 xeglgears \ 42 xeglthreads 43endif 44 45if HAVE_WAYLAND 46EGL_WL_DEMOS = \ 47 eglgears_wayland \ 48 egltri_wayland 49endif 50 51if HAVE_DRM 52if HAVE_GBM 53EGL_DRM_DEMOS = \ 54 eglkms 55endif 56endif 57 58if HAVE_EGL 59bin_PROGRAMS = \ 60 eglinfo 61noinst_PROGRAMS = \ 62 peglgears \ 63 $(EGL_DRM_DEMOS) \ 64 $(EGL_X11_DEMOS) \ 65 $(EGL_WL_DEMOS) 66endif 67 68egltri_x11_SOURCES = egltri.c 69eglgears_x11_SOURCES = eglgears.c 70 71eglgears_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 72egltri_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 73xeglgears_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 74xeglthreads_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) -pthread 75 76eglgears_x11_LDADD = ../eglut/libeglut_x11.la 77egltri_x11_LDADD = ../eglut/libeglut_x11.la 78 79egltri_wayland_SOURCES = egltri.c 80eglgears_wayland_SOURCES = eglgears.c 81 82eglgears_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 83egltri_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 84 85eglgears_wayland_LDADD = ../eglut/libeglut_wayland.la 86egltri_wayland_LDADD = ../eglut/libeglut_wayland.la 87 88eglkms_SOURCES = eglkms.c 89eglkms_CFLAGS = $(AM_CFLAGS) $(DRM_CFLAGS) $(GBM_CFLAGS) 90eglkms_LDADD = $(AM_LDFLAGS) $(DRM_LIBS) $(GBM_LIBS) 91