1 # Copyright © 2013, 2014 Intel Corporation
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:
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
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
28 CLEANFILES = $(BUILT_SOURCES)
31 pkgconfigdir = $(libdir)/pkgconfig
34 AM_CFLAGS = $(PTHREAD_CFLAGS)
38 -I$(top_srcdir)/include \
39 -I$(top_srcdir)/src/mapi \
40 -I$(top_builddir)/src/mapi
42 GLAPI = $(top_srcdir)/src/mapi/glapi
43 include Makefile.sources
44 include glapi/gen/glapi_gen.mk
47 SUBDIRS += shared-glapi/tests
49 BUILT_SOURCES += shared-glapi/glapi_mapi_tmp.h
51 lib_LTLIBRARIES += shared-glapi/libglapi.la
52 shared_glapi_libglapi_la_SOURCES = $(MAPI_GLAPI_FILES)
53 shared_glapi_libglapi_la_CPPFLAGS = \
56 -DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\"
57 shared_glapi_libglapi_la_LIBADD = \
60 shared_glapi_libglapi_la_LDFLAGS = \
65 shared-glapi/glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
66 $(call glapi_gen_mapi,$<,shared-glapi)
74 TESTS += es1api/ABI-check
76 BUILT_SOURCES += es1api/glapi_mapi_tmp.h
78 pkgconfig_DATA += es1api/glesv1_cm.pc
80 GLES_includedir = $(includedir)/GLES
81 GLES_include_HEADERS = \
82 $(top_srcdir)/include/GLES/egl.h \
83 $(top_srcdir)/include/GLES/gl.h \
84 $(top_srcdir)/include/GLES/glext.h \
85 $(top_srcdir)/include/GLES/glplatform.h
87 lib_LTLIBRARIES += es1api/libGLESv1_CM.la
89 es1api_libGLESv1_CM_la_SOURCES = entry.c es1api/glapi_mapi_tmp.h
90 es1api_libGLESv1_CM_la_CFLAGS = \
93 es1api_libGLESv1_CM_la_CPPFLAGS = \
96 -DMAPI_ABI_HEADER=\"es1api/glapi_mapi_tmp.h\"
97 es1api_libGLESv1_CM_la_LIBADD = $(GLESv1_CM_LIB_DEPS)
98 es1api_libGLESv1_CM_la_LDFLAGS = \
100 -version-number 1:1 \
105 es1api_libGLESv1_CM_la_LIBADD += shared-glapi/libglapi.la
108 es1api/glapi_mapi_tmp.h: glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
109 $(call glapi_gen_mapi,$<,es1api)
120 include $(top_srcdir)/install-lib-links.mk