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>
8 AUTOMAKE_OPTIONS = subdir-objects
11 pluginsdir = $(pkglibdir)/plugins
13 CLEANFILES = $(BUILT_SOURCES)
15 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
17 # Module name from object or executable file name.
18 MODULE_STRING = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/-/_/g'); p="$${p%.lo}"; echo "$$p")
19 MODULE_NAME = $$(p="$@"; p=$$(echo "$$p"|sed 's/lib//g'); p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/[-\/]/_/g'); p="$${p%.lo}"; echo "$$p")
21 AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_STRING)\"
22 if HAVE_DYNAMIC_PLUGINS
23 AM_CPPFLAGS += -D__PLUGIN__
25 AM_CPPFLAGS += -DMODULE_NAME=$(MODULE_NAME)
31 -avoid-version -module \
32 -export-symbols-regex ^vlc_entry \
35 $(top_builddir)/compat/libcompat.la $(LTLIBVLCCORE)
37 AM_LDFLAGS += $(top_builddir)/modules/module.rc.lo -Wc,-static
44 $(LIBTOOL) --mode=compile --tag=ASM $(X86ASM) $(X86ASMFLAGS) $(X86ASMDEFS) -I$(top_srcdir)/extras/include/x86/ $< -o $@