1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
5 # SUBDIRS stores the directories where a "make" is required when building
6 # something. DIST_SUBDIRS stores the directories where nothing is built but
7 # which have makefiles with distribution information.
8 # - src (libvlccore) is nedeed by modules
9 SUBDIRS = compat doc po share src modules lib bin test
10 DIST_SUBDIRS = m4 $(SUBDIRS)
13 extras/include/x86/x86inc.asm \
14 extras/include/x86/x86util.asm \
15 extras/package/macosx/package.mak \
16 extras/package/win32/package.mak \
17 extras/package/npapi.am
19 dist_noinst_SCRIPTS = bootstrap
20 nodist_noinst_SCRIPTS = compile
22 BUILT_SOURCES_distclean =
24 BUILT_SOURCES = $(BUILT_SOURCES_distclean)
28 DISTCHECK_CONFIGURE_FLAGS = \
29 --enable-fast-install \
32 --disable-avcodec --disable-avformat \
33 --disable-postproc --disable-swscale \
35 --disable-mad --disable-libmpeg2 \
36 --disable-faad --disable-skins2 \
41 --with-kde-solid='$${datadir}/kde4/apps'
43 ACLOCAL_AMFLAGS = -I m4
52 ChangeLog: Makefile.am
54 cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
55 $(LN_S) -f doc/ChangeLog-2015 "$@"
58 ###############################################################################
59 # tools (needed for contrib)
60 ##############################################################################
62 extras/tools/bootstrap \
63 extras/tools/packages.mak \
64 extras/tools/tools.mak \
65 extras/tools/SHA512SUMS \
66 extras/tools/automake-clang.patch \
67 extras/tools/bison-macOS-7df04f9.patch \
68 extras/tools/bison-macOS-c41f233c.patch \
69 extras/tools/libtool-2.4.6-bitcode.patch \
70 extras/tools/libtool-2.4.6-clang-libs.patch \
71 extras/tools/libtool-2.4.6-response-files.patch \
72 extras/tools/libtool-2.4.6-san.patch \
73 extras/tools/ragel-6.8-javacodegen.patch
75 ###############################################################################
76 # Various utilities ( editor syntax files, D-Bus controller ... )
77 ##############################################################################
79 extras/analyser/zsh_completion.sh \
80 extras/analyser/zsh.cpp \
81 extras/analyser/emacs.init \
82 extras/analyser/vlc.vim \
83 extras/analyser/valgrind.suppressions \
84 extras/buildsystem/make.pl \
85 extras/misc/mpris.py \
88 ###############################################################################
89 # Scripts for building dependencies.
90 ##############################################################################
95 ###############################################################################
97 ###############################################################################
100 DISTCLEANFILES = $(BUILT_SOURCES_distclean) compile doltcompile doltlibtool
101 MAINTAINERCLEANFILES = ChangeLog
103 # Shortcut for developers to rebuild the core (libvlc + vlc)
104 # Don't use it if you don't know what it is about.
105 # Don't complain if it doesn't work. -- Courmisch
107 cd compat && $(MAKE) $(AM_MAKEFLAGS)
109 libvlccore: libcompat
110 cd src && $(MAKE) $(AM_MAKEFLAGS) libvlccore.la
113 cd lib && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
115 core: libvlc vlc$(EXEEXT)
116 cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
119 cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
121 .PHONY: libvlc core doc
123 ###############################################################################
125 ###############################################################################
127 ALL_ALIASES = cvlc rvlc svlc qvlc nvlc
128 bin_SCRIPTS = $(ALIASES)
129 CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
130 EXTRA_SCRIPTS = $(ALL_ALIASES)
132 dist_noinst_SCRIPTS += make-alias
134 MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
136 cvlc: make-alias Makefile
137 $(AM_V_GEN)$(MKALIAS) dummy
139 rvlc: make-alias Makefile
140 $(AM_V_GEN)$(MKALIAS) rc
142 svlc: make-alias Makefile
143 $(AM_V_GEN)$(MKALIAS) skins2
145 qvlc: make-alias Makefile
146 $(AM_V_GEN)$(MKALIAS) qt
148 nvlc: make-alias Makefile
149 $(AM_V_GEN)$(MKALIAS) ncurses
152 noinst_SCRIPTS = vlc$(EXEEXT)
157 $(AM_V_GEN)$(LN_S) -f bin/vlc-osx-static vlc
159 $(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
162 TESTS = test/run_vlc.sh
163 dist_noinst_SCRIPTS += test/run_vlc.sh
166 ###############################################################################
167 # Installing plugins cache
168 ###############################################################################
170 if test "$(build)" = "$(host)"; then \
171 PATH="$(DESTDIR)$(bindir):$$PATH" \
172 LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
173 "$(DESTDIR)$(pkglibexecdir)/vlc-cache-gen$(EXEEXT)" \
174 "$(DESTDIR)$(pkglibdir)/plugins" ; \
176 echo "Cross-compilation: cache generation skipped!" ; \
181 rm -f -- "$(DESTDIR)$(pkglibdir)/plugins/plugins.dat"
183 ###############################################################################
185 ###############################################################################
188 $(MAKE) $(AM_MAKEFLAGS) all
190 $(MAKE) $(AM_MAKEFLAGS) check
191 lcov -c -d . -o lcov-raw.out
193 lcov.out: lcov-raw.out
194 lcov -r lcov-raw.out -o lcov.out \
195 '*test*' 'contrib/*' '/usr/include/*' '*mock*'
199 prefix="$$(cd "$(top_srcdir)" && pwd)" ; \
200 genhtml -p "$$prefix" -o lcov.tmp lcov.out >/dev/null
206 ###############################################################################
207 # PO translation files update
208 ###############################################################################
212 cd po && $(MAKE) POTFILES vlc.pot update-po
214 ###############################################################################
216 ###############################################################################
217 include extras/package/macosx/package.mak
218 include extras/package/win32/package.mak
219 include extras/package/win32/msi.mak