Makefile.am revision 32001f49
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_DRM
46if HAVE_GBM
47EGL_DRM_DEMOS = \
48	eglkms
49endif
50endif
51
52if HAVE_EGL
53noinst_PROGRAMS = \
54	demo1 \
55	demo2 \
56	demo3 \
57	eglinfo \
58	eglgears_screen \
59	egltri_screen \
60	peglgears \
61	$(EGL_DRM_DEMOS) \
62	$(EGL_X11_DEMOS)
63endif
64
65egltri_screen_SOURCES = egltri.c
66eglgears_screen_SOURCES = eglgears.c
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_screen_LDADD = ../eglut/libeglut_screen.la
77egltri_screen_LDADD = ../eglut/libeglut_screen.la
78
79eglgears_x11_LDADD = ../eglut/libeglut_x11.la
80egltri_x11_LDADD = ../eglut/libeglut_x11.la
81
82eglkms_SOURCES = eglkms.c
83eglkms_CFLAGS = $(AM_CFLAGS) $(DRM_CFLAGS) $(GBM_CFLAGS)
84eglkms_LDADD = $(AM_LDFLAGS) $(DRM_LIBS) $(GBM_LIBS)
85