| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- # Copyright © 2012 Intel Corporation
- #
- # Permission is hereby granted, free of charge, to any person obtaining a
- # copy of this software and associated documentation files (the "Software"),
- # to deal in the Software without restriction, including without limitation
- # the rights to use, copy, modify, merge, publish, distribute, sublicense,
- # and/or sell copies of the Software, and to permit persons to whom the
- # Software is furnished to do so, subject to the following conditions:
- #
- # The above copyright notice and this permission notice (including the next
- # paragraph) shall be included in all copies or substantial portions of the
- # Software.
- #
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
- # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- # IN THE SOFTWARE.
-
- if HAVE_SHARED_GLAPI
- SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
- SHARED_GLAPI_LIBS = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
- endif
-
- GLAPI_LIB = ../mapi/glapi/libglapi.a
-
- if HAVE_XF86VIDMODE
- EXTRA_DEFINES_XF86VIDMODE = -DXF86VIDMODE
- endif
-
- AM_CFLAGS = \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/include/GL/internal \
- -I$(top_srcdir)/src/mapi \
- -I$(top_srcdir)/src/mapi/glapi \
- $(SHARED_GLAPI_CFLAGS) \
- $(EXTRA_DEFINES_XF86VIDMODE) \
- -D_REENTRANT \
- -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
- $(DEFINES) \
- $(LIBDRM_CFLAGS) \
- $(DRI2PROTO_CFLAGS) \
- $(GLPROTO_CFLAGS) \
- $(X11_INCLUDES)
-
- if HAVE_MANGLED_GL
- MANGLED_GL_LIB = libMangledGL.la
- else
- NORMAL_GL_LIB = libGL.la
- endif
-
- lib_LTLIBRARIES = \
- $(NORMAL_GL_LIB) \
- $(MANGLED_GL_LIB)
-
- noinst_LTLIBRARIES = libglx.la
-
- libglx_la_SOURCES = \
- clientattrib.c \
- clientinfo.c \
- compsize.c \
- create_context.c \
- eval.c \
- glxconfig.c \
- glxcmds.c \
- glxcurrent.c \
- glx_error.c \
- glxext.c \
- glxextensions.c \
- indirect_glx.c \
- indirect.c \
- indirect_init.c \
- indirect_size.c \
- indirect_window_pos.c \
- indirect_texture_compression.c \
- indirect_transpose_matrix.c \
- indirect_vertex_array.c \
- indirect_vertex_program.c \
- pixel.c \
- pixelstore.c \
- render2.c \
- renderpix.c \
- single2.c \
- singlepix.c \
- vertarr.c \
- xfont.c \
- glx_pbuffer.c \
- glx_query.c \
- drisw_glx.c \
- dri_common.c \
- dri_glx.c \
- XF86dri.c \
- glxhash.c \
- dri2_glx.c \
- dri2.c \
- applegl_glx.c
-
- GL_LIBS = \
- libglx.la \
- $(SHARED_GLAPI_LIBS) \
- $(GLAPI_LIB) \
- $(GL_LIB_DEPS)
-
- GL_LDFLAGS = \
- -Wl,-Bsymbolic \
- -version-number 1:2 -no-undefined
-
- libGL_la_SOURCES =
- libMangledGL_la_SOURCES =
- libGL_la_LIBADD = $(GL_LIBS)
- libMangledGL_la_LIBADD = $(GL_LIBS)
- libGL_la_LDFLAGS = $(GL_LDFLAGS)
- libMangledGL_la_LDFLAGS = $(GL_LDFLAGS)
-
- # Provide compatibility with scripts for the old Mesa build system for
- # a while by putting a link to the driver into /lib of the build tree.
- if !HAVE_MANGLED_GL
- all-local: $(NORMAL_GL_LIB) $(MANGLED_GL_LIB)
- $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
- ln -f .libs/libGL.so.1.2.0 $(top_builddir)/$(LIB_DIR)/libGL.so.1
- ln -sf libGL.so.1 $(top_builddir)/$(LIB_DIR)/libGL.so
- endif
-
- $(GLAPI_LIB):
- @$(MAKE) -C $(TOP)/src/mapi/glapi
|