libglvnd/tests/GLX_dummy/Makefile.am
Brian Nguyen a0221d1ad6 Build libGLX_patchentry.so for future entrypoint patching unit test
This test DSO patches glVertex3fv() at runtime to increment a global
variable, __glXSawVertex3fv.  This will be used by a future
"testglxpatchentry" unit test to verify that basic entrypoint patching
works as expected on platforms that support it.
2014-01-23 20:28:50 -08:00

28 lines
910 B
Makefile

noinst_HEADERS = GLX_dummy.h
lib_LTLIBRARIES = libGLX_dummy.la libGLX_patchentry.la
check-local: libGLX_dummy_copy
.PHONY : libGLX_dummy_copy
# HACK to get multiple copies of the dummy library for testing
libGLX_dummy_copy : libGLX_dummy.la
cp .libs/libGLX_dummy.so.0.0.0 .libs/libGLX_dummy_0.so.0
cp .libs/libGLX_dummy.so.0.0.0 .libs/libGLX_dummy_1.so.0
COMMON_CFLAGS = \
-I$(top_srcdir)/src/GLX \
-I$(top_srcdir)/src/GLdispatch \
-I$(top_srcdir)/src/util \
-I$(top_srcdir)/src/util/trace \
-I$(top_srcdir)/include \
-Wno-error=unused-function
libGLX_dummy_la_CFLAGS = $(COMMON_CFLAGS)
libGLX_dummy_la_SOURCES = GLX_dummy.c
libGLX_dummy_la_LIBADD = $(top_builddir)/src/util/trace/libtrace.la
libGLX_patchentry_la_CFLAGS = $(COMMON_CFLAGS) -DPATCH_ENTRYPOINTS
libGLX_patchentry_la_SOURCES = GLX_dummy.c
libGLX_patchentry_la_LIBADD = $(top_builddir)/src/util/trace/libtrace.la