BUILT_SOURCES = $(DISTCLEANFILES) $(CLEANFILES)
DISTCLEANFILES = stamp-api
-CLEANFILES = misc/modules_builtin.h stamp-version misc/version.c
+CLEANFILES = misc/modules_builtin.h
MOSTLYCLEANFILES = $(DATA_noinst_libvlc) stamp-builtins
TOOLBOX = srcdir=$(top_srcdir) builddir=$(top_builddir) $(top_srcdir)/toolbox
misc/modules.c: misc/modules_builtin.h
-misc/version.c:
- $(TOOLBOX) --update-version
-
-stamp-version: misc/version.c
- $(TOOLBOX) --update-version
- touch $@
-
-.PHONY: stamp-version
-
###############################################################################
# Building builtin modules
###############################################################################
misc/vlm.c \
misc/xml.c \
misc/hashtables.c \
- misc/version.c \
extras/libc.c \
control/core.c \
control/playlist.c \
$(OPT_SOURCES_libvlc_getopt) \
$(NULL)
+
if !USE_LIBTOOL
+if !BUILD_SHARED
+SOURCES_libvlc += misc/version.c
+CLEANFILES += misc/version.c
+
+misc/version.c:
+ $(TOOLBOX) --update-version
+endif
+
# Install shared libvlc
install-exec-local:
test -z "$(DATA_noinst_libvlc)" || $(INSTALL_PROGRAM) "$(DATA_noinst_libvlc)" "$(DESTDIR)$(libdir)"
DECLARE_VLC_VERSION( CompileDomain, COMPILE_DOMAIN );
DECLARE_VLC_VERSION( Compiler, COMPILER );
+#ifndef HAVE_SHARED_LIBVLC
extern const char psz_vlc_changeset[];
char const * VLC_Changeset( void )
{
return psz_vlc_changeset;
}
+#endif
/*****************************************************************************
* VLC_Error: strerror() equivalent
utf8_fprintf( stdout, _("Compiled by %s@%s.%s\n"),
VLC_CompileBy(), VLC_CompileHost(), VLC_CompileDomain() );
utf8_fprintf( stdout, _("Compiler: %s\n"), VLC_Compiler() );
+#ifndef HAVE_SHARED_LIBVLC
if( strcmp( VLC_Changeset(), "exported" ) )
utf8_fprintf( stdout, _("Based upon svn changeset [%s]\n"),
VLC_Changeset() );
+#endif
utf8_fprintf( stdout, LICENSE_MSG );
#ifdef WIN32 /* Pause the console because it's destroyed when we exit */