diff --git a/glx/Makefile.am b/glx/Makefile.am index 39b96d75c..0214295ea 100644 --- a/glx/Makefile.am +++ b/glx/Makefile.am @@ -45,9 +45,13 @@ glapi_sources = \ glthread.h \ glprocs.h +if DRI2 +GLXDRI_SOURCE = glxdri2.c +endif + libglxdri_la_SOURCES = \ glxdri.c \ - glxdri2.c \ + $(GLXDRI2_SOURCE) \ glxdricommon.h \ extension_string.c \ extension_string.h