diff options
Diffstat (limited to 'src/glx/Makefile.am')
-rw-r--r-- | src/glx/Makefile.am | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index 0cf65e50732..4553de01a17 100644 --- a/src/glx/Makefile.am +++ b/src/glx/Makefile.am @@ -82,24 +82,40 @@ libglx_la_SOURCES = \ single2.c \ singlepix.c \ vertarr.c \ - xfont.c \ glx_pbuffer.c \ glx_query.c \ - drisw_glx.c \ - dri_common.c \ + glxhash.c + +if HAVE_DRISW +libglx_la_SOURCES += \ + drisw_glx.c +endif + +if HAVE_DRICOMMON +libglx_la_SOURCES += \ + xfont.c \ + dri_common.c +endif + +if HAVE_DRI2 +libglx_la_SOURCES += \ dri_glx.c \ XF86dri.c \ - glxhash.c \ dri2_glx.c \ dri2.c \ - dri2_query_renderer.c \ - applegl_glx.c + dri2_query_renderer.c +endif if HAVE_DRI3 libglx_la_SOURCES += \ dri3_glx.c endif +if HAVE_APPLEDRI +libglx_la_SOURCES += \ + applegl_glx.c +endif + libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.la GL_LIBS = \ |