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 $(GLESV1_CFLAGS) \ 30 $(EGL_CFLAGS) \ 31 $(X11_CFLAGS) \ 32 -I$(top_srcdir)/src/egl/eglut 33 34AM_LDFLAGS = \ 35 $(GLESV1_LIBS) \ 36 $(EGL_LIBS) \ 37 -lm 38 39if HAVE_EGL 40if HAVE_GLESV1 41noinst_PROGRAMS = \ 42 bindtex \ 43 clear \ 44 drawtex_x11 \ 45 eglfbdev \ 46 es1_info \ 47 gears_x11 \ 48 msaa \ 49 pbuffer\ 50 render_tex \ 51 texture_from_pixmap \ 52 torus_x11 \ 53 tri_x11 \ 54 two_win 55endif 56endif 57 58bindtex_LDADD = $(X11_LIBS) 59es1_info_LDADD = $(X11_LIBS) 60msaa_LDADD = $(X11_LIBS) 61pbuffer_LDADD = $(X11_LIBS) 62render_tex_LDADD = $(X11_LIBS) 63texture_from_pixmap_LDADD = $(X11_LIBS) 64two_win_LDADD = $(X11_LIBS) 65 66# intentionally not link to GLESV1_LIBS 67clear_LDADD = ../eglut/libeglut_x11.la $(EGL_LIBS) $(X11_LIBS) 68clear_LDFLAGS = 69 70drawtex_x11_SOURCES = drawtex.c 71gears_x11_SOURCES = gears.c 72torus_x11_SOURCES = torus.c 73tri_x11_SOURCES = tri.c 74 75drawtex_x11_LDADD = ../eglut/libeglut_x11.la 76gears_x11_LDADD = ../eglut/libeglut_x11.la 77torus_x11_LDADD = ../eglut/libeglut_x11.la 78tri_x11_LDADD = ../eglut/libeglut_x11.la 79