1 # Used by OpenGL ES or when --enable-shared-glapi is specified 2 3 TOP = $(top_srcdir) 4 GLAPI = $(top_srcdir)/src/mapi/glapi 5 include $(top_srcdir)/src/mapi/mapi/sources.mak 6 7 lib_LTLIBRARIES = libglapi.la 8 libglapi_la_SOURCES = $(MAPI_GLAPI_FILES) 9 libglapi_la_LIBADD = $(PTHREAD_LIBS) $(SELINUX_LIBS) 10 libglapi_la_LDFLAGS = -no-undefined 11 12 include $(GLAPI)/gen/glapi_gen.mk 13 glapi_mapi_tmp.h : $(GLAPI)/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps) 14 $(call glapi_gen_mapi,$<,shared-glapi) 15 16 BUILT_SOURCES = glapi_mapi_tmp.h 17 CLEANFILES = $(BUILT_SOURCES) 18 19 AM_CFLAGS = $(PTHREAD_CFLAGS) 20 AM_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 28 all-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