1# Used by OpenGL ES or when --enable-shared-glapi is specified 2 3TOP = $(top_srcdir) 4GLAPI = $(top_srcdir)/src/mapi/glapi 5include $(top_srcdir)/src/mapi/mapi/sources.mak 6 7lib_LTLIBRARIES = libglapi.la 8libglapi_la_SOURCES = $(MAPI_GLAPI_FILES) 9libglapi_la_LIBADD = $(PTHREAD_LIBS) $(SELINUX_LIBS) 10libglapi_la_LDFLAGS = -no-undefined 11 12include $(GLAPI)/gen/glapi_gen.mk 13glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps) 14 $(call glapi_gen_mapi,$<,shared-glapi) 15 16BUILT_SOURCES = glapi_mapi_tmp.h 17CLEANFILES = $(BUILT_SOURCES) 18 19AM_CFLAGS = $(PTHREAD_CFLAGS) 20AM_CPPFLAGS = \ 21 $(DEFINES) \ 22 -I$(top_srcdir)/include \ 23 -I$(top_srcdir)/src/mapi \ 24 -I$(top_builddir)/src/mapi \ 25 -DMAPI_MODE_GLAPI \ 26 -DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\" 27 28all-local: libglapi.la 29 $(MKDIR_P) $(top_builddir)/$(LIB_DIR) 30 ln -f .libs/libglapi.so.0.0.0 $(top_builddir)/$(LIB_DIR)/libglapi.so.0.0.0 31 ln -sf libglapi.so.0.0.0 $(top_builddir)/$(LIB_DIR)/libglapi.so.0 32 ln -sf libglapi.so.0 $(top_builddir)/$(LIB_DIR)/libglapi.so 33