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 = $(EGL_CFLAGS)
26AM_LDFLAGS = $(EGL_LIBS)
27
28if HAVE_EGL
29if HAVE_X11
30eglut_x11 = libeglut_x11.la
31endif
32if HAVE_WAYLAND
33eglut_wayland = libeglut_wayland.la
34endif
35
36noinst_LTLIBRARIES = $(eglut_x11) $(eglut_wayland)
37endif
38
39libeglut_x11_la_SOURCES = \
40	eglut.c \
41	eglut.h \
42	eglutint.h \
43	eglut_x11.c
44libeglut_x11_la_CFLAGS = $(X11_CFLAGS) $(EGL_CFLAGS)
45libeglut_x11_la_LIBADD = $(X11_LIBS) $(EGL_LIBS)
46
47
48libeglut_wayland_la_SOURCES = \
49	eglut.c \
50	eglut.h \
51	eglutint.h \
52	eglut_wayland.c
53
54libeglut_wayland_la_CFLAGS = $(WAYLAND_CFLAGS) $(EGL_CFLAGS)
55libeglut_wayland_la_LIBADD = $(WAYLAND_LIBS) $(EGL_LIBS)
56