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_LIBADD = $(LIBPTHREAD)
30 AM_LDFLAGS = -rpath '$(libvlcdir)' \
31 -avoid-version -module \
32 -export-symbols-regex ^vlc_entry \
35 $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
37 include $(srcdir)/Modules.am
40 $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
41 $(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)