vlc/Makefile.am

222 lines
6.4 KiB
Makefile
Raw Normal View History

###############################################################################
# Automake targets and declarations
###############################################################################
# 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
SUBDIRS = compat po share src modules lib doc bin test
DIST_SUBDIRS = m4 $(SUBDIRS)
EXTRA_DIST = \
buildsystem/check_qml_module.py \
extras/include/x86/x86inc.asm \
extras/include/x86/x86util.asm \
extras/package/macosx/package.mak \
extras/package/win32/package.mak \
extras/package/npapi.am
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
BUILT_SOURCES = $(BUILT_SOURCES_distclean)
SUFFIXES =
AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-fast-install \
2010-02-15 21:35:28 +01:00
--disable-a52 \
--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 \
--disable-live555 \
2012-12-22 15:42:58 +01:00
--disable-lua \
2016-06-14 20:30:39 +02:00
--disable-fribidi \
--with-kde-solid='$${datadir}/kde4/apps'
2005-12-06 13:34:02 +01:00
2008-01-31 18:20:11 +01:00
AUTOMAKE_OPTIONS = \
1.11 \
2008-01-31 18:20:11 +01:00
-Wall \
check-news \
dist-xz \
2008-01-31 18:20:11 +01:00
no-dist-gzip
# std-options
ChangeLog: Makefile.am
rm -f -- "$@"
2008-06-01 09:37:56 +02:00
cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
$(LN_S) -f doc/ChangeLog-2024 "$@"
###############################################################################
# tools (needed for contrib)
##############################################################################
EXTRA_DIST += \
extras/tools/bootstrap \
extras/tools/packages.mak \
extras/tools/tools.mak \
extras/tools/SHA512SUMS \
2019-05-21 12:47:56 +02:00
extras/tools/automake-clang.patch \
extras/tools/cmake-enable-ALPN-support-on-macOS-10.14.patch \
extras/tools/libtool-2.4.7-bitcode.patch \
extras/tools/libtool-2.4.7-clang-libs.patch \
extras/tools/libtool-2.4.7-response-files.patch \
extras/tools/libtool-2.4.7-lpthread.patch \
extras/tools/libtool-2.4.7-embed-bitcode.patch
###############################################################################
2006-11-20 11:34:33 +01:00
# Various utilities ( editor syntax files, D-Bus controller ... )
##############################################################################
EXTRA_DIST += \
extras/analyser/zsh_completion.sh \
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 \
extras/misc/mpris.py \
2011-05-21 19:48:01 +02:00
extras/misc/mpris.xml
###############################################################################
# Scripts for building dependencies.
##############################################################################
EXTRA_DIST += \
contrib/bootstrap \
contrib/src
###############################################################################
# Building libvlc
###############################################################################
CLEANFILES =
2012-09-10 10:50:38 +02:00
DISTCLEANFILES = $(BUILT_SOURCES_distclean) compile doltcompile doltlibtool
MAINTAINERCLEANFILES = ChangeLog
2009-07-08 18:56:28 +02:00
# Shortcut for developers to rebuild the core (libvlc + vlc)
# 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
2011-04-11 17:21:06 +02:00
core: libvlc vlc$(EXEEXT)
cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
doc:
cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
.PHONY: libvlc core doc
###############################################################################
# Building aliases
###############################################################################
ALL_ALIASES = cvlc rvlc svlc qvlc nvlc
if BUILD_VLC
2008-05-09 18:12:45 +02:00
bin_SCRIPTS = $(ALIASES)
endif
CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
EXTRA_SCRIPTS = $(ALL_ALIASES)
dist_noinst_SCRIPTS += make-alias
MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
cvlc: make-alias Makefile
2010-02-14 21:22:45 +01:00
$(AM_V_GEN)$(MKALIAS) dummy
rvlc: make-alias Makefile
2010-02-14 21:22:45 +01:00
$(AM_V_GEN)$(MKALIAS) rc
svlc: make-alias Makefile
2010-02-14 21:22:45 +01:00
$(AM_V_GEN)$(MKALIAS) skins2
qvlc: make-alias Makefile
2016-02-27 17:11:20 +01:00
$(AM_V_GEN)$(MKALIAS) qt
nvlc: make-alias Makefile
2010-02-14 21:22:45 +01:00
$(AM_V_GEN)$(MKALIAS) ncurses
if BUILD_VLC
2011-08-18 21:02:21 +02:00
noinst_SCRIPTS = vlc$(EXEEXT)
endif
vlc$(EXEEXT):
if HAVE_DARWIN
$(AM_V_GEN)$(LN_S) -f bin/vlc-osx-static vlc
else
$(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
endif
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
if BUILD_VLC
###############################################################################
# Installing plugins cache
###############################################################################
install-exec-hook:
if test "$(build)" = "$(host)"; then \
PATH="$(DESTDIR)$(bindir):$$PATH" \
LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
DYLD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$DYLD_LIBRARY_PATH" \
"$(DESTDIR)$(pkglibexecdir)/vlc-cache-gen$(EXEEXT)" \
"$(DESTDIR)$(pkglibdir)/plugins" ; \
else \
echo "Cross-compilation: cache generation skipped!" ; \
fi
endif
2012-01-28 12:14:53 +01:00
uninstall-hook:
rm -f -- "$(DESTDIR)$(pkglibdir)/plugins/plugins.dat"
2012-01-28 12:14:53 +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 \
'*test*' 'contrib/*' '/usr/include/*' '*mock*'
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
mv lcov.tmp lcov
.PHONY: lcov-raw.out
###############################################################################
# PO translation files update
###############################################################################
.PHONY: update-po
update-po:
cd po && $(MAKE) POTFILES vlc.pot update-po
###############################################################################
# OS Packaging rules
###############################################################################
include extras/package/macosx/package.mak
include extras/package/win32/package.mak
include extras/package/win32/msi.mak