]> git.sesse.net Git - vlc/blob - modules/common.am
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / common.am
1 # Common code for VLC modules/.../Makefile.am
2 #
3 # Copyright (C) 2005-2007 the VideoLAN team
4 # Copyright (C) 2005-2008 RĂ©mi Denis-Courmont
5 #
6 # Authors: Sam Hocevar <sam@zoy.org>
7
8 NULL =
9 libvlcdir = $(vlclibdir)/plugins/$(basedir)
10 EXTRA_DIST = Modules.am
11 BUILT_SOURCES =
12 CLEANFILES = $(BUILT_SOURCES)
13
14 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
15
16 AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
17 AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
18 AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
19 AM_LDFLAGS = -rpath '$(libvlcdir)' \
20         -avoid-version -module \
21         -export-symbol-regex ^vlc_entry \
22         -shrext $(LIBEXT) \
23         -rpath "$(libvlcdir)" \
24         -no-undefined \
25          `$(VLC_CONFIG) --ldflags plugin $@`
26 AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \
27         $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
28
29 include $(srcdir)/Modules.am
30
31 if MAINTAINER_MODE
32 $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
33         $(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)
34 endif