1 # Common code for VLC modules/.../Makefile.am
3 # Copyright (C) 2005-2007 the VideoLAN team
4 # Copyright (C) 2005-2008 RĂ©mi Denis-Courmont
6 # Authors: Sam Hocevar <sam@zoy.org>
9 libvlcdir = $(vlclibdir)/plugins/$(basedir)
10 EXTRA_DIST = Modules.am
12 CLEANFILES = $(BUILT_SOURCES)
14 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
16 # Module name from object or executable file name.
17 MODULE_NAME = `p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; echo "$${p%_plugin*}"`
20 -DMODULE_NAME=$(MODULE_NAME) \
21 -DMODULE_NAME_IS_$(MODULE_NAME) \
22 -DMODULE_STRING=\"$(MODULE_NAME)\"
23 if HAVE_DYNAMIC_PLUGINS
24 AM_CPPFLAGS += -D__PLUGIN__
29 AM_LDFLAGS = -rpath '$(libvlcdir)' \
30 -avoid-version -module \
31 -export-symbols-regex ^vlc_entry \
34 AM_LIBADD = $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la $(LIBS_plugin)
36 include $(srcdir)/Modules.am
39 $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
40 $(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)