Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. # Copyright © 2012 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. if HAVE_SHARED_GLAPI
  22. SHARED_GLAPI_CFLAGS = -DGLX_SHARED_GLAPI
  23. SHARED_GLAPI_LIBS = $(top_builddir)/src/mapi/shared-glapi/libglapi.la
  24. endif
  25. GLAPI_LIB = ../mapi/glapi/libglapi.a
  26. if HAVE_XF86VIDMODE
  27. EXTRA_DEFINES_XF86VIDMODE = -DXF86VIDMODE
  28. endif
  29. AM_CFLAGS = \
  30. -I$(top_srcdir)/include \
  31. -I$(top_srcdir)/include/GL/internal \
  32. -I$(top_srcdir)/src/mapi \
  33. -I$(top_srcdir)/src/mapi/glapi \
  34. $(SHARED_GLAPI_CFLAGS) \
  35. $(EXTRA_DEFINES_XF86VIDMODE) \
  36. -D_REENTRANT \
  37. -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
  38. $(DEFINES) \
  39. $(LIBDRM_CFLAGS) \
  40. $(DRI2PROTO_CFLAGS) \
  41. $(GLPROTO_CFLAGS) \
  42. $(X11_INCLUDES)
  43. if HAVE_MANGLED_GL
  44. MANGLED_GL_LIB = libMangledGL.la
  45. else
  46. NORMAL_GL_LIB = libGL.la
  47. endif
  48. lib_LTLIBRARIES = \
  49. $(NORMAL_GL_LIB) \
  50. $(MANGLED_GL_LIB)
  51. noinst_LTLIBRARIES = libglx.la
  52. libglx_la_SOURCES = \
  53. clientattrib.c \
  54. clientinfo.c \
  55. compsize.c \
  56. create_context.c \
  57. eval.c \
  58. glxconfig.c \
  59. glxcmds.c \
  60. glxcurrent.c \
  61. glx_error.c \
  62. glxext.c \
  63. glxextensions.c \
  64. indirect_glx.c \
  65. indirect.c \
  66. indirect_init.c \
  67. indirect_size.c \
  68. indirect_window_pos.c \
  69. indirect_texture_compression.c \
  70. indirect_transpose_matrix.c \
  71. indirect_vertex_array.c \
  72. indirect_vertex_program.c \
  73. pixel.c \
  74. pixelstore.c \
  75. render2.c \
  76. renderpix.c \
  77. single2.c \
  78. singlepix.c \
  79. vertarr.c \
  80. xfont.c \
  81. glx_pbuffer.c \
  82. glx_query.c \
  83. drisw_glx.c \
  84. dri_common.c \
  85. dri_glx.c \
  86. XF86dri.c \
  87. glxhash.c \
  88. dri2_glx.c \
  89. dri2.c \
  90. applegl_glx.c
  91. GL_LIBS = \
  92. libglx.la \
  93. $(SHARED_GLAPI_LIBS) \
  94. $(GLAPI_LIB) \
  95. $(GL_LIB_DEPS)
  96. GL_LDFLAGS = \
  97. -Wl,-Bsymbolic \
  98. -version-number 1:2 -no-undefined
  99. libGL_la_SOURCES =
  100. libMangledGL_la_SOURCES =
  101. libGL_la_LIBADD = $(GL_LIBS)
  102. libMangledGL_la_LIBADD = $(GL_LIBS)
  103. libGL_la_LDFLAGS = $(GL_LDFLAGS)
  104. libMangledGL_la_LDFLAGS = $(GL_LDFLAGS)
  105. # Provide compatibility with scripts for the old Mesa build system for
  106. # a while by putting a link to the driver into /lib of the build tree.
  107. if !HAVE_MANGLED_GL
  108. all-local: $(NORMAL_GL_LIB) $(MANGLED_GL_LIB)
  109. $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
  110. ln -f .libs/libGL.so.1.2.0 $(top_builddir)/$(LIB_DIR)/libGL.so.1
  111. ln -sf libGL.so.1 $(top_builddir)/$(LIB_DIR)/libGL.so
  112. endif
  113. $(GLAPI_LIB):
  114. @$(MAKE) -C $(TOP)/src/mapi/glapi