gui: macos: use float for rate
[vlc.git] / Makefile.am
bloba5543b8376de96912c628d87388b8ecb8a65264f
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)
12 EXTRA_DIST = \
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)
26 SUFFIXES = 
28 DISTCHECK_CONFIGURE_FLAGS = \
29         --enable-fast-install \
30         --disable-a52 \
31         --disable-alsa \
32         --disable-avcodec --disable-avformat \
33         --disable-postproc --disable-swscale \
34         --disable-dbus \
35         --disable-mad --disable-libmpeg2 \
36         --disable-faad --disable-skins2 \
37         --disable-live555 \
38         --disable-lua \
39         --disable-fribidi \
40         --disable-mkv \
41         --with-kde-solid='$${datadir}/kde4/apps'
43 ACLOCAL_AMFLAGS = -I m4
44 AUTOMAKE_OPTIONS = \
45         1.11 \
46         -Wall \
47         check-news \
48         dist-xz \
49         no-dist-gzip
50 #       std-options
52 ChangeLog: Makefile.am
53         rm -f -- "$@"
54         cd doc && $(MAKE) $(AM_MAKEFLAGS) changelogs
55         $(LN_S) -f doc/ChangeLog-2015 "$@"
58 ###############################################################################
59 # tools (needed for contrib)
60 ##############################################################################
61 EXTRA_DIST += \
62         extras/tools/bootstrap \
63         extras/tools/packages.mak \
64         extras/tools/tools.mak \
65         extras/tools/SHA512SUMS \
66         extras/tools/bison-macOS-7df04f9.patch \
67         extras/tools/bison-macOS-c41f233c.patch \
68         extras/tools/libtool-2.4.2-bitcode.patch \
69         extras/tools/libtool-2.4.2-san.patch \
70         extras/tools/ragel-6.8-javacodegen.patch
72 ###############################################################################
73 # Various utilities ( editor syntax files, D-Bus controller ... )
74 ##############################################################################
75 EXTRA_DIST += \
76         extras/analyser/zsh_completion.sh \
77         extras/analyser/zsh.cpp \
78         extras/analyser/emacs.init \
79         extras/analyser/vlc.vim \
80         extras/analyser/valgrind.suppressions \
81         extras/buildsystem/make.pl \
82         extras/misc/mpris.py \
83         extras/misc/mpris.xml
85 ###############################################################################
86 # Scripts for building dependencies.
87 ##############################################################################
88 EXTRA_DIST += \
89         contrib/bootstrap \
90         contrib/src
92 ###############################################################################
93 # Building libvlc
94 ###############################################################################
96 CLEANFILES =
97 DISTCLEANFILES = $(BUILT_SOURCES_distclean) compile doltcompile doltlibtool
98 MAINTAINERCLEANFILES = ChangeLog
100 # Shortcut for developers to rebuild the core (libvlc + vlc)
101 # Don't use it if you don't know what it is about.
102 # Don't complain if it doesn't work. -- Courmisch
103 libcompat:
104         cd compat && $(MAKE) $(AM_MAKEFLAGS)
106 libvlccore: libcompat
107         cd src && $(MAKE) $(AM_MAKEFLAGS) libvlccore.la
109 libvlc: libvlccore
110         cd lib && $(MAKE) $(AM_MAKEFLAGS) libvlc.la
112 core: libvlc vlc$(EXEEXT)
113         cd bin && $(MAKE) $(AM_MAKEFLAGS) vlc$(EXEEXT) vlc-static$(EXEEXT)
115 doc:
116         cd doc && $(MAKE) $(AM_MAKEFLAGS) doc
118 .PHONY: libvlc core doc
120 ###############################################################################
121 # Building aliases
122 ###############################################################################
124 ALL_ALIASES = cvlc rvlc svlc qvlc nvlc
125 bin_SCRIPTS = $(ALIASES)
126 CLEANFILES += $(ALIASES) $(noinst_SCRIPTS)
127 EXTRA_SCRIPTS = $(ALL_ALIASES)
129 dist_noinst_SCRIPTS += make-alias
131 MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
133 cvlc: make-alias Makefile
134         $(AM_V_GEN)$(MKALIAS) dummy
136 rvlc: make-alias Makefile
137         $(AM_V_GEN)$(MKALIAS) rc
139 svlc: make-alias Makefile
140         $(AM_V_GEN)$(MKALIAS) skins2
142 qvlc: make-alias Makefile
143         $(AM_V_GEN)$(MKALIAS) qt
145 nvlc: make-alias Makefile
146         $(AM_V_GEN)$(MKALIAS) ncurses
148 if BUILD_VLC
149 noinst_SCRIPTS = vlc$(EXEEXT)
150 endif
152 vlc$(EXEEXT):
153 if HAVE_DARWIN
154         $(AM_V_GEN)$(LN_S) -f bin/vlc-osx-static vlc
155 else
156         $(AM_V_GEN)$(LN_S) -f bin/vlc-static$(EXEEXT) vlc$(EXEEXT)
157 endif
159 TESTS = test/run_vlc.sh
160 dist_noinst_SCRIPTS += test/run_vlc.sh
162 if BUILD_VLC
163 ###############################################################################
164 # Installing plugins cache
165 ###############################################################################
166 install-exec-hook:
167         if test "$(build)" = "$(host)"; then \
168                 PATH="$(DESTDIR)$(bindir):$$PATH" \
169                 LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
170                 "$(DESTDIR)$(pkglibexecdir)/vlc-cache-gen$(EXEEXT)" \
171                          "$(DESTDIR)$(pkglibdir)/plugins" ; \
172         else \
173                 echo "Cross-compilation: cache generation skipped!" ; \
174         fi
175 endif
177 uninstall-hook:
178         rm -f -- "$(DESTDIR)$(pkglibdir)/plugins/plugins.dat"
180 ###############################################################################
181 # Test coverage
182 ###############################################################################
184 lcov-raw.out:
185         $(MAKE) $(AM_MAKEFLAGS) all
186         lcov -z -d .
187         $(MAKE) $(AM_MAKEFLAGS) check
188         lcov -c -d . -o lcov-raw.out
190 lcov.out: lcov-raw.out
191         lcov -r lcov-raw.out -o lcov.out \
192                 '*test*' 'contrib/*' '/usr/include/*' '*mock*'
194 lcov: lcov.out
195         rm -Rf lcov lcov.tmp
196         prefix="$$(cd "$(top_srcdir)" && pwd)" ; \
197         genhtml -p "$$prefix" -o lcov.tmp lcov.out >/dev/null
198         mv lcov.tmp lcov
200 .PHONY: lcov-raw.out
203 ###############################################################################
204 # PO translation files update
205 ###############################################################################
206 .PHONY: update-po
208 update-po:
209         cd po && $(MAKE) POTFILES vlc.pot update-po
211 ###############################################################################
212 # OS Packaging rules
213 ###############################################################################
214 include extras/package/macosx/package.mak
215 include extras/package/win32/package.mak
216 include extras/package/win32/msi.mak