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 22 AM_CPPFLAGS = \ 23 $(DEFINES) \ 24 -I$(top_srcdir)/include \ 25 -I$(top_srcdir)/src/mapi \ 26 -DMAPI_MODE_BRIDGE \ 27 -DMAPI_ABI_HEADER=\"glapi_mapi_tmp.h\" 28 29 AM_CFLAGS = $(VISIBILITY_CFLAGS) 30 31 pkgconfigdir = $(libdir)/pkgconfig 32 pkgconfig_DATA = glesv1_cm.pc 33 34 GLES_includedir = $(includedir)/GLES 35 GLES_include_HEADERS = \ 36 $(top_srcdir)/include/GLES/egl.h \ 37 $(top_srcdir)/include/GLES/gl.h \ 38 $(top_srcdir)/include/GLES/glext.h \ 39 $(top_srcdir)/include/GLES/glplatform.h 40 41 lib_LTLIBRARIES = libGLESv1_CM.la 42 43 libGLESv1_CM_la_SOURCES = ../mapi/entry.c glapi_mapi_tmp.h 44 libGLESv1_CM_la_LIBADD = $(GLESv1_CM_LIB_DEPS) 45 libGLESv1_CM_la_LDFLAGS = -version-number 1:1 -no-undefined 46 47 if HAVE_SHARED_GLAPI 48 libGLESv1_CM_la_LIBADD += ../shared-glapi/libglapi.la 49 endif 50 51 include ../glapi/gen/glapi_gen.mk 52 glapi_mapi_tmp.h: ../glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps) 53 $(call glapi_gen_mapi,$<,es1api) 54 55 BUILT_SOURCES = glapi_mapi_tmp.h 56 CLEANFILES = $(BUILT_SOURCES) 57 58 # Provide compatibility with scripts for the old Mesa build system for 59 # a while by putting a link to the driver into /lib of the build tree. 60 all-local: libGLESv1_CM.la 61 $(MKDIR_P) $(top_builddir)/$(LIB_DIR); 62 ln -f .libs/libGLESv1_CM.so $(top_builddir)/$(LIB_DIR)/libGLESv1_CM.so 63 ln -f .libs/libGLESv1_CM.so.1 $(top_builddir)/$(LIB_DIR)/libGLESv1_CM.so.1 64 ln -f .libs/libGLESv1_CM.so.1.1.0 $(top_builddir)/$(LIB_DIR)/libGLESv1_CM.so.1.1.0 65