1# Copyright © 2009 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
25AM_CFLAGS = \
26	$(DEMO_CFLAGS) \
27	$(X11_CFLAGS) \
28	-I$(top_srcdir)/src/util
29AM_LDFLAGS = \
30	$(DEMO_LIBS) \
31	$(X11_LIBS)
32
33if HAVE_X11
34noinst_LTLIBRARIES = libpbutil.la
35
36bin_PROGRAMS = \
37	glsync \
38	glthreads \
39	glxdemo \
40	glxgears \
41	glxgears_fbconfig \
42	glxgears_pixmap \
43	glxcontexts \
44	glxheads \
45	glxinfo \
46	glxpixmap \
47	glxpbdemo \
48	glxsnoop \
49	glxswapcontrol \
50	manywin \
51	multictx \
52	offset \
53	overlay \
54	pbinfo \
55	pbdemo \
56	shape \
57	sharedtex \
58        sharedtex_mt \
59	texture_from_pixmap \
60	wincopy \
61	xfont \
62	xrotfontdemo
63endif
64
65libpbutil_la_SOURCES = \
66	pbutil.c \
67	pbutil.h
68
69xrotfontdemo_SOURCES = \
70	xrotfontdemo.c \
71	xuserotfont.c \
72	xuserotfont.h
73
74glxinfo_SOURCES = \
75	glxinfo.c \
76	glinfo_common.c \
77	glinfo_common.h
78
79glthreads_LDADD = -lpthread
80glxgears_fbconfig_LDADD = libpbutil.la
81pbdemo_LDADD = libpbutil.la
82pbinfo_LDADD = libpbutil.la
83sharedtex_mt_LDADD = -lpthread
84
85EXTRA_DIST = \
86	yuvrect_client.c \
87	xdemo.c
88