From: Gwenole Beauchesne Date: Wed, 20 Jul 2011 11:01:28 +0000 (+0200) Subject: cosmetics: clean up Makefiles. X-Git-Tag: libva-1.0.14~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b3cd9ace91c298e87d5b8100fb3c43f5c428041;p=profile%2Fivi%2Flibva.git cosmetics: clean up Makefiles. --- diff --git a/va/Makefile.am b/va/Makefile.am index 0d955c4..c0498ee 100644 --- a/va/Makefile.am +++ b/va/Makefile.am @@ -20,6 +20,8 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +SUBDIRS = + INCLUDES = \ $(LIBVA_CFLAGS) -I$(top_srcdir)/va/x11 \ -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\"" @@ -27,76 +29,84 @@ INCLUDES = \ LDADD = \ $(LIBVA_LT_LDFLAGS) -libva_la_SOURCES = va.c va_trace.c va_fool.c va_fool_getframe.c -libva_ladir = $(libdir) -libva_la_LDFLAGS = $(LDADD) -no-undefined -libva_la_LIBADD = $(LIBVA_LIBS) -ldl - -libva_tpi_la_SOURCES = va_tpi.c -libva_tpi_ladir = $(libdir) -libva_tpi_la_LDFLAGS = $(LDADD) -no-undefined -libva_tpi_la_LIBADD = $(libvacorelib) -ldl -libva_tpi_la_DEPENDENCIES = $(libvacorelib) - - -libva_x11_backend = libva-x11.la -libva_x11_backenddir = x11 - -libva_x11_la_SOURCES = -libva_x11_la_LIBADD = $(libvacorelib) x11/libva_x11.la $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(DRM_LIBS) $(XFIXES_LIBS) -ldl -libva_x11_la_LDFLAGS = $(LDADD) -libva_x11_la_DEPENDENCIES = $(libvacorelib) x11/libva_x11.la - -if BUILD_DUMMY_BACKEND -libva_dummy_backend = libva-dummy.la -libva_dummy_backenddir = dummy - -libva_dummy_la_SOURCES = -libva_dummy_la_LIBADD = $(libvacorelib) dummy/libva_dummy.la $(LIBVA_LIBS) $(DRM_LIBS) -libva_dummy_la_LDFLAGS = $(LDADD) -libva_dummy_la_DEPENDENCIES = $(libvacorelib) dummy/libva_dummy.la -else -libva_dummy_backend = -libva_dummy_backenddir = -endif +libva_source_c = \ + va.c \ + va_fool.c \ + va_fool_getframe.c \ + va_trace.c \ + $(NULL) + +libva_source_h = \ + va.h \ + va_backend.h \ + va_backend_tpi.h \ + va_dummy.h \ + va_tpi.h \ + va_version.h \ + va_x11.h \ + $(NULL) + +libva_source_h_priv = \ + $(NULL) + +lib_LTLIBRARIES = libva.la +libvaincludedir = ${includedir}/va +libvainclude_HEADERS = $(libva_source_h) +noinst_HEADERS = $(libva_source_h_priv) +libva_la_SOURCES = $(libva_source_c) +libva_la_LDFLAGS = $(LDADD) -no-undefined +libva_la_LIBADD = $(LIBVA_LIBS) -ldl + +lib_LTLIBRARIES += libva-tpi.la +libva_tpi_la_SOURCES = va_tpi.c +libva_tpi_la_LDFLAGS = $(LDADD) -no-undefined +libva_tpi_la_DEPENDENCIES = $(libvacorelib) +libva_tpi_la_LIBADD = $(libvacorelib) -ldl + +SUBDIRS += x11 +lib_LTLIBRARIES += libva-x11.la +libva_x11_la_SOURCES = +libva_x11_la_LDFLAGS = $(LDADD) +libva_x11_la_DEPENDENCIES = $(libvacorelib) x11/libva_x11.la +libva_x11_la_LIBADD = $(libvacorelib) x11/libva_x11.la \ + $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(DRM_LIBS) $(XFIXES_LIBS) -ldl if USE_GLX -libva_glx_backend = libva-glx.la -libva_glx_backenddir = glx - -libva_glx_la_SOURCES = -libva_glx_la_LIBADD = $(libvacorelib) glx/libva_glx.la libva-x11.la $(GL_DEPS_LIBS) -ldl -libva_glx_la_LDFLAGS = $(LDADD) -libva_glx_la_DEPENDENCIES = $(libvacorelib) glx/libva_glx.la libva-x11.la - -else -libva_glx_backend = -libva_glx_backenddir = +SUBDIRS += glx +lib_LTLIBRARIES += libva-glx.la +libva_glx_la_SOURCES = +libva_glx_la_LDFLAGS = $(LDADD) +libva_glx_la_DEPENDENCIES = $(libvacorelib) glx/libva_glx.la libva-x11.la +libva_glx_la_LIBADD = $(libvacorelib) glx/libva_glx.la libva-x11.la \ + $(GL_DEPS_LIBS) -ldl endif if USE_EGL -libva_egl_backend = libva-egl.la -libva_egl_backenddir = egl -libva_egl_la_SOURCES = -libva_egl_la_LIBADD = $(libvacorelib) egl/libva_egl.la libva-x11.la $(GL_DEPS_LIBS) -ldl -libva_egl_la_LDFLAGS = $(LDADD) -libva_egl_la_DEPENDENCIES = $(libvacorelib) egl/libva_egl.la libva-x11.la -else -libva_egl_backend = -libva_egl_backenddir = +SUBDIRS += egl +lib_LTLIBRARIES += libva-egl.la +libva_egl_la_SOURCES = +libva_egl_la_LDFLAGS = $(LDADD) +libva_egl_la_DEPENDENCIES = $(libvacorelib) egl/libva_egl.la libva-x11.la +libva_egl_la_LIBADD = $(libvacorelib) egl/libva_egl.la libva-x11.la \ + $(GL_DEPS_LIBS) -ldl endif -lib_LTLIBRARIES = libva.la libva-tpi.la $(libva_x11_backend) $(libva_dummy_backend) $(libva_glx_backend) $(libva_egl_backend) +if BUILD_DUMMY_BACKEND +SUBDIRS += dummy +lib_LTLIBRARIES += libva-dummy.la +libva_dummy_la_SOURCES = +libva_dummy_la_LDFLAGS = $(LDADD) +libva_dummy_la_DEPENDENCIES = $(libvacorelib) dummy/libva_dummy.la +libva_dummy_la_LIBADD = $(libvacorelib) dummy/libva_dummy.la \ + $(LIBVA_LIBS) $(DRM_LIBS) +endif DIST_SUBDIRS = x11 glx egl dummy -SUBDIRS = $(libva_x11_backenddir) $(libva_dummy_backenddir) $(libva_glx_backenddir) $(libva_egl_backenddir) - -libvaincludedir = ${includedir}/va -libvainclude_HEADERS = va.h va_tpi.h va_x11.h va_backend.h va_dummy.h va_version.h va_backend_tpi.h - DISTCLEANFILES = \ - va_version.h + va_version.h \ + $(NULL) EXTRA_DIST = \ - va_version.h.in + va_version.h.in \ + $(NULL) diff --git a/va/glx/Makefile.am b/va/glx/Makefile.am index 337f34e..c083a70 100644 --- a/va/glx/Makefile.am +++ b/va/glx/Makefile.am @@ -24,18 +24,21 @@ AM_CFLAGS = -DLINUX -I$(top_srcdir)/va -I$(top_srcdir)/va/x11 source_c = \ va_glx.c \ - va_glx_impl.c + va_glx_impl.c \ + $(NULL) source_h = \ + va_backend_glx.h \ va_glx.h \ - va_backend_glx.h + $(NULL) source_h_priv = \ va_glx_impl.h \ - va_glx_private.h + va_glx_private.h \ + $(NULL) -noinst_LTLIBRARIES = libva_glx.la -libva_glxincludedir = ${includedir}/va -libva_glxinclude_HEADERS = $(source_h) -libva_glx_la_SOURCES = $(source_c) -noinst_HEADERS = $(source_h_priv) +noinst_LTLIBRARIES = libva_glx.la +libva_glxincludedir = ${includedir}/va +libva_glxinclude_HEADERS = $(source_h) +libva_glx_la_SOURCES = $(source_c) +noinst_HEADERS = $(source_h_priv) diff --git a/va/x11/Makefile.am b/va/x11/Makefile.am index 31e381e..8052025 100644 --- a/va/x11/Makefile.am +++ b/va/x11/Makefile.am @@ -22,11 +22,33 @@ AM_CFLAGS = -DLINUX -I$(top_srcdir)/va $(DRM_CFLAGS) -noinst_LTLIBRARIES = libva_x11.la +source_c = \ + dri1_util.c \ + dri2_util.c \ + va_dri.c \ + va_dri2.c \ + va_dricommon.c \ + va_fglrx.c \ + va_nvctrl.c \ + va_x11.c \ + $(NULL) -libva_x11includedir = ${includedir}/va -libva_x11include_HEADERS = va_dri.h va_dri2.h va_dricommon.h +source_h = \ + va_dri.h \ + va_dri2.h \ + va_dricommon.h \ + $(NULL) -libva_x11_la_SOURCES = va_x11.c va_dri.c va_dri2.c va_dricommon.c dri2_util.c dri1_util.c va_nvctrl.c va_fglrx.c +source_h_priv = \ + va_dri2str.h \ + va_dri2tokens.h \ + va_dristr.h \ + va_fglrx.h \ + va_nvctrl.h \ + $(NULL) -EXTRA_DIST = va_dristr.h va_dri2str.h va_dri2tokens.h va_nvctrl.h va_fglrx.h +noinst_LTLIBRARIES = libva_x11.la +libva_x11includedir = ${includedir}/va +libva_x11include_HEADERS = $(source_h) +libva_x11_la_SOURCES = $(source_c) +noinst_HEADERS = $(source_h_priv)