noinst_HEADERS = \
	patchentrypoints.h \
	GLX_dummy.h \
	EGL_dummy.h

check_LTLIBRARIES = \
	libpatchentrypoints.la \
	libGLX_dummy.la \
	libEGL_dummy0.la \
	libEGL_dummy1.la
 
libpatchentrypoints_la_CFLAGS = \
	-I$(top_srcdir)/src/GLdispatch \
	-I$(top_srcdir)/src/util       \
	-I$(top_srcdir)/include
libpatchentrypoints_la_SOURCES = \
	patchentrypoints.c

libGLX_dummy_la_CFLAGS = \
	-I$(top_srcdir)/src/GLX        \
	-I$(top_srcdir)/src/GLdispatch \
	-I$(top_srcdir)/src/util       \
	-I$(top_srcdir)/include
libGLX_dummy_la_SOURCES = \
	GLX_dummy.c
libGLX_dummy_la_LIBADD = $(top_builddir)/src/util/libtrace.la
libGLX_dummy_la_LIBADD += $(top_builddir)/src/util/libutils_misc.la
libGLX_dummy_la_LIBADD += libpatchentrypoints.la
# The -rpath option forces libtool to create a shared library instead of just a
# static library.
libGLX_dummy_la_LDFLAGS = \
	-shared \
	-rpath /nowhere

EGL_DUMMY_CFLAGS_COMMON = \
	-I$(top_srcdir)/src/util \
	-I$(top_srcdir)/include
EGL_DUMMY_SOURCES_COMMON = EGL_dummy.c
EGL_DUMMY_LIBADD_COMMON = \
	$(top_builddir)/src/util/libglvnd_pthread.la
EGL_DUMMY_LDFLAGS_COMMON = \
	-shared \
	-rpath /nowhere

libEGL_dummy0_la_CFLAGS = \
	$(EGL_DUMMY_CFLAGS_COMMON) \
	-D DUMMY_VENDOR_NAME=\"dummy0\"
libEGL_dummy0_la_SOURCES = $(EGL_DUMMY_SOURCES_COMMON)
libEGL_dummy0_la_LIBADD = $(EGL_DUMMY_LIBADD_COMMON)
libEGL_dummy0_la_LDFLAGS = $(EGL_DUMMY_LDFLAGS_COMMON)

libEGL_dummy1_la_CFLAGS = \
	$(EGL_DUMMY_CFLAGS_COMMON) \
	-D DUMMY_VENDOR_NAME=\"dummy1\"
libEGL_dummy1_la_SOURCES = $(EGL_DUMMY_SOURCES_COMMON)
libEGL_dummy1_la_LIBADD = $(EGL_DUMMY_LIBADD_COMMON)
libEGL_dummy1_la_LDFLAGS = $(EGL_DUMMY_LDFLAGS_COMMON)

