132001f49Smrg# Copyright © 2009 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
2532001f49SmrgAM_CFLAGS = $(EGL_CFLAGS)
2632001f49SmrgAM_LDFLAGS = $(EGL_LIBS)
2732001f49Smrg
2832001f49Smrgif HAVE_EGL
2932001f49Smrgif HAVE_X11
3032001f49Smrgeglut_x11 = libeglut_x11.la
3132001f49Smrgendif
3232001f49Smrgif HAVE_WAYLAND
3332001f49Smrgeglut_wayland = libeglut_wayland.la
3432001f49Smrgendif
3532001f49Smrg
367ec3b29aSmrgnoinst_LTLIBRARIES = $(eglut_x11) $(eglut_wayland)
3732001f49Smrgendif
3832001f49Smrg
3932001f49Smrglibeglut_x11_la_SOURCES = \
4032001f49Smrg	eglut.c \
417ec3b29aSmrg	eglut.h \
4232001f49Smrg	eglutint.h \
4332001f49Smrg	eglut_x11.c
4432001f49Smrglibeglut_x11_la_CFLAGS = $(X11_CFLAGS) $(EGL_CFLAGS)
4532001f49Smrglibeglut_x11_la_LIBADD = $(X11_LIBS) $(EGL_LIBS)
4632001f49Smrg
4732001f49Smrg
4832001f49Smrglibeglut_wayland_la_SOURCES = \
4932001f49Smrg	eglut.c \
507ec3b29aSmrg	eglut.h \
5132001f49Smrg	eglutint.h \
5232001f49Smrg	eglut_wayland.c
5332001f49Smrg
5432001f49Smrglibeglut_wayland_la_CFLAGS = $(WAYLAND_CFLAGS) $(EGL_CFLAGS)
5532001f49Smrglibeglut_wayland_la_LIBADD = $(WAYLAND_LIBS) $(EGL_LIBS)
56