aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/Makefile.am')
-rw-r--r--src/glx/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am
index 3c0cb5f04d6..5884e33f802 100644
--- a/src/glx/Makefile.am
+++ b/src/glx/Makefile.am
@@ -145,6 +145,16 @@ SUBDIRS += apple
libglx_la_LIBADD += $(builddir)/apple/libappleglx.la
endif
+if HAVE_WINDOWSDRI
+libglx_la_SOURCES += \
+ driwindows_glx.c
+
+SUBDIRS += windows
+libglx_la_LIBADD += \
+ $(builddir)/windows/libwindowsdri.la \
+ $(builddir)/windows/libwindowsglx.la
+endif
+
if USE_LIBGLVND_GLX
AM_CFLAGS += \
-DGL_LIB_NAME=\"lib@[email protected]\" \
@@ -181,6 +191,10 @@ lib@GL_LIB@_la_SOURCES =
lib@GL_LIB@_la_LIBADD = $(GL_LIBS)
lib@GL_LIB@_la_LDFLAGS = $(GL_LDFLAGS)
+if HAVE_WINDOWSDRI
+lib@GL_LIB@_la_LDFLAGS += -lgdi32 -lopengl32 -Wl,--disable-stdcall-fixup
+endif
+
SUBDIRS += . tests
include $(top_srcdir)/install-lib-links.mk