2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# Automake targets and declarations
|
|
|
|
###############################################################################
|
2002-08-26 07:18:05 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
# SUBDIRS stores the directories where a "make" is required when building
|
|
|
|
# something. DIST_SUBDIRS stores the directories where nothing is built but
|
|
|
|
# which have makefiles with distribution information.
|
2011-11-16 05:13:42 +08:00
|
|
|
# - src (libvlccore) is nedeed by modules
|
2017-09-21 01:58:16 +08:00
|
|
|
SUBDIRS = compat doc po share src modules lib bin test
|
|
|
|
DIST_SUBDIRS = m4 $(SUBDIRS)
|
2002-08-26 07:18:05 +08:00
|
|
|
|
2003-03-26 07:32:00 +08:00
|
|
|
EXTRA_DIST = \
|
2016-08-12 04:21:21 +08:00
|
|
|
extras/include/x86/x86inc.asm \
|
|
|
|
extras/include/x86/x86util.asm \
|
2016-11-20 06:35:58 +08:00
|
|
|
extras/package/macosx/package.mak \
|
|
|
|
extras/package/win32/package.mak \
|
|
|
|
extras/package/npapi.am
|
2003-03-26 07:32:00 +08:00
|
|
|
|
2010-08-14 23:43:57 +08:00
|
|
|
dist_noinst_SCRIPTS = bootstrap
|
2008-11-17 08:18:48 +08:00
|
|
|
nodist_noinst_SCRIPTS = compile
|
2007-08-15 23:45:12 +08:00
|
|
|
|
2011-08-19 03:02:21 +08:00
|
|
|
BUILT_SOURCES_distclean =
|
2005-08-20 00:06:54 +08:00
|
|
|
|
2011-11-11 13:50:36 +08:00
|
|
|
BUILT_SOURCES = $(BUILT_SOURCES_distclean)
|
2005-08-22 21:09:25 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
SUFFIXES =
|
|
|
|
|
2008-06-01 16:57:22 +08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = \
|
|
|
|
--enable-fast-install \
|
2010-02-16 04:35:28 +08:00
|
|
|
--disable-a52 \
|
2013-09-16 23:18:17 +08:00
|
|
|
--disable-alsa \
|
2010-02-16 04:35:28 +08:00
|
|
|
--disable-avcodec --disable-avformat \
|
|
|
|
--disable-postproc --disable-swscale \
|
2008-07-02 01:34:57 +08:00
|
|
|
--disable-dbus \
|
2010-02-16 04:35:28 +08:00
|
|
|
--disable-mad --disable-libmpeg2 \
|
|
|
|
--disable-faad --disable-skins2 \
|
2008-08-02 18:16:29 +08:00
|
|
|
--disable-live555 \
|
2012-12-22 22:42:58 +08:00
|
|
|
--disable-lua \
|
2016-06-15 02:30:39 +08:00
|
|
|
--disable-fribidi \
|
2010-10-11 20:35:10 +08:00
|
|
|
--disable-mkv \
|
2010-06-21 07:29:53 +08:00
|
|
|
--with-kde-solid='$${datadir}/kde4/apps'
|
2005-12-06 20:34:02 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2008-02-01 01:20:11 +08:00
|
|
|
AUTOMAKE_OPTIONS = \
|
2010-07-21 23:19:17 +08:00
|
|
|
1.11 \
|
2008-02-01 01:20:11 +08:00
|
|
|
-Wall \
|
|
|
|
check-news \
|
2010-08-09 04:03:22 +08:00
|
|
|
dist-xz \
|
2008-02-01 01:20:11 +08:00
|
|
|
no-dist-gzip
|
2008-02-08 08:20:06 +08:00
|
|
|
# std-options
|
2002-09-30 19:05:42 +08:00
|
|
|
|
2008-03-31 22:39:14 +08:00
|
|
|
ChangeLog: Makefile.am
|
|
|
|
rm -f -- "$@"
|
2008-06-01 15:37:56 +08:00
|
|
|
cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
|
2021-04-05 18:20:58 +08:00
|
|
|
$(LN_S) -f doc/ChangeLog-2021 "$@"
|
2008-03-31 22:39:14 +08:00
|
|
|
|
2008-04-09 06:40:36 +08:00
|
|
|
|
2012-05-05 01:27:11 +08:00
|
|
|
###############################################################################
|
|
|
|
# tools (needed for contrib)
|
|
|
|
##############################################################################
|
|
|
|
EXTRA_DIST += \
|
|
|
|
extras/tools/bootstrap \
|
|
|
|
extras/tools/packages.mak \
|
2014-09-22 00:38:17 +08:00
|
|
|
extras/tools/tools.mak \
|
2017-12-21 17:03:16 +08:00
|
|
|
extras/tools/SHA512SUMS \
|
2019-05-21 18:47:56 +08:00
|
|
|
extras/tools/automake-clang.patch \
|
2017-12-21 17:03:16 +08:00
|
|
|
extras/tools/bison-macOS-7df04f9.patch \
|
|
|
|
extras/tools/bison-macOS-c41f233c.patch \
|
2020-06-11 21:00:49 +08:00
|
|
|
extras/tools/cmake-enable-ALPN-support-on-macOS-10.14.patch \
|
2019-05-21 18:47:56 +08:00
|
|
|
extras/tools/libtool-2.4.6-bitcode.patch \
|
|
|
|
extras/tools/libtool-2.4.6-clang-libs.patch \
|
|
|
|
extras/tools/libtool-2.4.6-response-files.patch \
|
|
|
|
extras/tools/libtool-2.4.6-san.patch \
|
2014-09-22 00:38:17 +08:00
|
|
|
extras/tools/ragel-6.8-javacodegen.patch
|
2006-03-10 22:03:58 +08:00
|
|
|
|
|
|
|
###############################################################################
|
2006-11-20 18:34:33 +08:00
|
|
|
# Various utilities ( editor syntax files, D-Bus controller ... )
|
2006-03-10 22:03:58 +08:00
|
|
|
##############################################################################
|
|
|
|
EXTRA_DIST += \
|
2008-02-11 03:28:36 +08:00
|
|
|
extras/analyser/zsh_completion.sh \
|
2008-02-04 20:03:17 +08:00
|
|
|
extras/analyser/zsh.cpp \
|
|
|
|
extras/analyser/emacs.init \
|
|
|
|
extras/analyser/vlc.vim \
|
|
|
|
extras/analyser/valgrind.suppressions \
|
2008-02-04 21:44:44 +08:00
|
|
|
extras/buildsystem/make.pl \
|
2008-02-04 20:03:17 +08:00
|
|
|
extras/misc/mpris.py \
|
2011-05-22 01:48:01 +08:00
|
|
|
extras/misc/mpris.xml
|
2002-11-10 00:34:53 +08:00
|
|
|
|
2011-07-19 01:54:44 +08:00
|
|
|
###############################################################################
|
|
|
|
# Scripts for building dependencies.
|
|
|
|
##############################################################################
|
|
|
|
EXTRA_DIST += \
|
|
|
|
contrib/bootstrap \
|
2012-03-02 01:06:20 +08:00
|
|
|
contrib/src
|
2011-07-19 01:54:44 +08:00
|
|
|
|
2002-09-30 19:05:42 +08:00
|
|
|
###############################################################################
|
|
|
|
# Building libvlc
|
|
|
|
###############################################################################
|
|
|
|
|
2011-11-11 13:50:36 +08:00
|
|
|
CLEANFILES =
|
2012-09-10 16:50:38 +08:00
|
|
|
DISTCLEANFILES = $(BUILT_SOURCES_distclean) compile doltcompile doltlibtool
|
2009-05-17 01:01:04 +08:00
|
|
|
MAINTAINERCLEANFILES = ChangeLog
|
2005-03-02 05:24:25 +08:00
|
|
|
|
2009-07-09 00:56:28 +08:00
|
|
|
# Shortcut for developers to rebuild the core (libvlc + vlc)
|
2007-12-10 05:36:32 +08:00
|
|
|
# Don't use it if you don't know what it is about.
|
|
|
|
# Don't complain if it doesn't work. -- Courmisch
|
2009-05-23 19:59:26 +08:00
|
|
|
libcompat:
|
|
|
|
cd compat && $(MAKE) $(AM_MAKEFLAGS)
|
|
|
|
|
2011-08-31 04:40:14 +08:00
|
|
|
libvlccore: libcompat
|
|
|
|
cd src && $(MAKE) $(AM_MAKEFLAGS) libvlccore.la
|
|
|
|
|
|
|
|
libvlc: libvlccore
|
|
|
|
cd lib && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2011-04-11 23:21:06 +08:00
|
|
|
core: libvlc vlc$(EXEEXT)
|
2010-04-11 04:21:54 +08:00
|
|
|
cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
|
2006-03-11 02:10:45 +08:00
|
|
|
|
2008-08-14 00:04:54 +08:00
|
|
|
doc:
|
|
|
|
cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
|
|
|
|
|
|
|
|
.PHONY: libvlc core doc
|
2006-02-21 02:00:28 +08:00
|
|
|
|
2007-12-10 05:36:32 +08:00
|
|
|
###############################################################################
|
|
|
|
# Building aliases
|
|
|
|
###############################################################################
|
|
|
|
|
2012-07-26 01:34:45 +08:00
|
|
|
ALL_ALIASES = cvlc rvlc svlc qvlc nvlc
|
2020-06-23 17:06:10 +08:00
|
|
|
if BUILD_VLC
|
2008-05-10 00:12:45 +08:00
|
|
|
bin_SCRIPTS = $(ALIASES)
|
2020-06-23 17:06:10 +08:00
|
|
|
endif
|
2008-06-01 16:57:22 +08:00
|
|
|
CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
|
2007-12-10 05:36:32 +08:00
|
|
|
EXTRA_SCRIPTS = $(ALL_ALIASES)
|
|
|
|
|
|
|
|
dist_noinst_SCRIPTS += make-alias
|
|
|
|
|
2008-05-26 06:11:33 +08:00
|
|
|
MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2008-12-26 17:48:45 +08:00
|
|
|
cvlc: make-alias Makefile
|
2010-02-15 04:22:45 +08:00
|
|
|
$(AM_V_GEN)$(MKALIAS) dummy
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2008-12-26 17:48:45 +08:00
|
|
|
rvlc: make-alias Makefile
|
2010-02-15 04:22:45 +08:00
|
|
|
$(AM_V_GEN)$(MKALIAS) rc
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2008-12-26 17:48:45 +08:00
|
|
|
svlc: make-alias Makefile
|
2010-02-15 04:22:45 +08:00
|
|
|
$(AM_V_GEN)$(MKALIAS) skins2
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2008-12-26 17:48:45 +08:00
|
|
|
qvlc: make-alias Makefile
|
2016-02-28 00:11:20 +08:00
|
|
|
$(AM_V_GEN)$(MKALIAS) qt
|
2007-12-10 05:36:32 +08:00
|
|
|
|
2008-12-26 17:48:45 +08:00
|
|
|
nvlc: make-alias Makefile
|
2010-02-15 04:22:45 +08:00
|
|
|
$(AM_V_GEN)$(MKALIAS) ncurses
|
2005-06-25 13:39:06 +08:00
|
|
|
|
2008-03-19 21:18:09 +08:00
|
|
|
if BUILD_VLC
|
2011-08-19 03:02:21 +08:00
|
|
|
noinst_SCRIPTS = vlc$(EXEEXT)
|
2008-03-19 21:18:09 +08:00
|
|
|
endif
|
2008-02-26 03:52:09 +08:00
|
|
|
|
2009-02-28 22:14:44 +08:00
|
|
|
vlc$(EXEEXT):
|
2015-06-21 23:20:35 +08:00
|
|
|
if HAVE_DARWIN
|
|
|
|
$(AM_V_GEN)$(LN_S) -f bin/vlc-osx-static vlc
|
|
|
|
else
|
2011-03-03 21:05:32 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
|
2015-06-21 23:20:35 +08:00
|
|
|
endif
|
2008-02-26 01:50:59 +08:00
|
|
|
|
2012-05-09 23:58:01 +08:00
|
|
|
TESTS = test/run_vlc.sh
|
2012-05-15 23:44:14 +08:00
|
|
|
dist_noinst_SCRIPTS += test/run_vlc.sh
|
2012-05-09 23:58:01 +08:00
|
|
|
|
2016-07-22 22:48:07 +08:00
|
|
|
if BUILD_VLC
|
2011-09-02 01:07:41 +08:00
|
|
|
###############################################################################
|
|
|
|
# Installing plugins cache
|
|
|
|
###############################################################################
|
|
|
|
install-exec-hook:
|
|
|
|
if test "$(build)" = "$(host)"; then \
|
2011-12-25 11:54:34 +08:00
|
|
|
PATH="$(DESTDIR)$(bindir):$$PATH" \
|
2011-09-02 01:07:41 +08:00
|
|
|
LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
|
2021-10-28 20:59:57 +08:00
|
|
|
DYLD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$DYLD_LIBRARY_PATH" \
|
2018-03-06 05:30:03 +08:00
|
|
|
"$(DESTDIR)$(pkglibexecdir)/vlc-cache-gen$(EXEEXT)" \
|
2018-03-06 05:40:16 +08:00
|
|
|
"$(DESTDIR)$(pkglibdir)/plugins" ; \
|
2011-09-02 01:07:41 +08:00
|
|
|
else \
|
|
|
|
echo "Cross-compilation: cache generation skipped!" ; \
|
|
|
|
fi
|
2016-07-22 22:48:07 +08:00
|
|
|
endif
|
2011-09-02 01:07:41 +08:00
|
|
|
|
2012-01-28 19:14:53 +08:00
|
|
|
uninstall-hook:
|
2018-03-06 05:40:16 +08:00
|
|
|
rm -f -- "$(DESTDIR)$(pkglibdir)/plugins/plugins.dat"
|
2012-01-28 19:14:53 +08:00
|
|
|
|
2015-12-08 00:50:34 +08:00
|
|
|
###############################################################################
|
|
|
|
# Test coverage
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
lcov-raw.out:
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) all
|
|
|
|
lcov -z -d .
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) check
|
|
|
|
lcov -c -d . -o lcov-raw.out
|
|
|
|
|
|
|
|
lcov.out: lcov-raw.out
|
|
|
|
lcov -r lcov-raw.out -o lcov.out \
|
2018-10-03 00:15:15 +08:00
|
|
|
'*test*' 'contrib/*' '/usr/include/*' '*mock*'
|
2015-12-08 00:50:34 +08:00
|
|
|
|
|
|
|
lcov: lcov.out
|
|
|
|
rm -Rf lcov lcov.tmp
|
2016-01-08 05:22:26 +08:00
|
|
|
prefix="$$(cd "$(top_srcdir)" && pwd)" ; \
|
|
|
|
genhtml -p "$$prefix" -o lcov.tmp lcov.out >/dev/null
|
2015-12-08 00:50:34 +08:00
|
|
|
mv lcov.tmp lcov
|
|
|
|
|
|
|
|
.PHONY: lcov-raw.out
|
|
|
|
|
|
|
|
|
2005-08-13 21:14:19 +08:00
|
|
|
###############################################################################
|
|
|
|
# PO translation files update
|
|
|
|
###############################################################################
|
|
|
|
.PHONY: update-po
|
|
|
|
|
|
|
|
update-po:
|
2005-08-22 22:22:41 +08:00
|
|
|
cd po && $(MAKE) POTFILES vlc.pot update-po
|
2011-11-19 12:47:01 +08:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# OS Packaging rules
|
|
|
|
###############################################################################
|
|
|
|
include extras/package/macosx/package.mak
|
|
|
|
include extras/package/win32/package.mak
|
2013-02-09 02:06:32 +08:00
|
|
|
include extras/package/win32/msi.mak
|
2011-11-19 12:47:01 +08:00
|
|
|
|