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