132001f49Smrg# Copyright © 2010 Intel Corporation 232001f49Smrg# 332001f49Smrg# Permission is hereby granted, free of charge, to any person obtaining a 432001f49Smrg# copy of this software and associated documentation files (the "Software"), 532001f49Smrg# to deal in the Software without restriction, including without limitation 632001f49Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense, 732001f49Smrg# and/or sell copies of the Software, and to permit persons to whom the 832001f49Smrg# Software is furnished to do so, subject to the following conditions: 932001f49Smrg# 1032001f49Smrg# The above copyright notice and this permission notice (including the next 1132001f49Smrg# paragraph) shall be included in all copies or substantial portions of the 1232001f49Smrg# Software. 1332001f49Smrg# 1432001f49Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1532001f49Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1632001f49Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1732001f49Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1832001f49Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 1932001f49Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 2032001f49Smrg# IN THE SOFTWARE. 2132001f49Smrg# 2232001f49Smrg# Authors: 2332001f49Smrg# Eric Anholt <eric@anholt.net> 2432001f49Smrg 2532001f49Smrg# These programs aren't intended to be included with the normal distro. 2632001f49Smrg# They're not too interesting but they're good for testing. 2732001f49Smrg 2832001f49SmrgAM_CFLAGS = \ 2932001f49Smrg $(DEMO_CFLAGS) \ 3032001f49Smrg $(EGL_CFLAGS) \ 3132001f49Smrg -I$(top_srcdir)/src/egl/eglut \ 3232001f49Smrg -I$(top_srcdir)/src/util 3332001f49SmrgAM_LDFLAGS = \ 3432001f49Smrg $(DEMO_LIBS) \ 3532001f49Smrg $(EGL_LIBS) 3632001f49Smrg 3732001f49Smrgif HAVE_X11 3832001f49SmrgEGL_X11_DEMOS = \ 3932001f49Smrg eglgears_x11 \ 4032001f49Smrg egltri_x11 \ 4132001f49Smrg xeglgears \ 4232001f49Smrg xeglthreads 4332001f49Smrgendif 4432001f49Smrg 457ec3b29aSmrgif HAVE_WAYLAND 467ec3b29aSmrgEGL_WL_DEMOS = \ 477ec3b29aSmrg eglgears_wayland \ 487ec3b29aSmrg egltri_wayland 497ec3b29aSmrgendif 507ec3b29aSmrg 5132001f49Smrgif HAVE_DRM 5232001f49Smrgif HAVE_GBM 5332001f49SmrgEGL_DRM_DEMOS = \ 5432001f49Smrg eglkms 5532001f49Smrgendif 5632001f49Smrgendif 5732001f49Smrg 5832001f49Smrgif HAVE_EGL 597ec3b29aSmrgbin_PROGRAMS = \ 607ec3b29aSmrg eglinfo 6132001f49Smrgnoinst_PROGRAMS = \ 6232001f49Smrg peglgears \ 6332001f49Smrg $(EGL_DRM_DEMOS) \ 647ec3b29aSmrg $(EGL_X11_DEMOS) \ 657ec3b29aSmrg $(EGL_WL_DEMOS) 6632001f49Smrgendif 6732001f49Smrg 6832001f49Smrgegltri_x11_SOURCES = egltri.c 6932001f49Smrgeglgears_x11_SOURCES = eglgears.c 7032001f49Smrg 7132001f49Smrgeglgears_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 7232001f49Smrgegltri_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 7332001f49Smrgxeglgears_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 7432001f49Smrgxeglthreads_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) -pthread 7532001f49Smrg 7632001f49Smrgeglgears_x11_LDADD = ../eglut/libeglut_x11.la 7732001f49Smrgegltri_x11_LDADD = ../eglut/libeglut_x11.la 7832001f49Smrg 797ec3b29aSmrgegltri_wayland_SOURCES = egltri.c 807ec3b29aSmrgeglgears_wayland_SOURCES = eglgears.c 817ec3b29aSmrg 827ec3b29aSmrgeglgears_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 837ec3b29aSmrgegltri_x11_LDFLAGS = $(AM_LDFLAGS) $(X11_LIBS) 847ec3b29aSmrg 857ec3b29aSmrgeglgears_wayland_LDADD = ../eglut/libeglut_wayland.la 867ec3b29aSmrgegltri_wayland_LDADD = ../eglut/libeglut_wayland.la 877ec3b29aSmrg 8832001f49Smrgeglkms_SOURCES = eglkms.c 8932001f49Smrgeglkms_CFLAGS = $(AM_CFLAGS) $(DRM_CFLAGS) $(GBM_CFLAGS) 9032001f49Smrgeglkms_LDADD = $(AM_LDFLAGS) $(DRM_LIBS) $(GBM_LIBS) 91