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 = $(vlclibdir)/plugins
13 CLEANFILES = $(BUILT_SOURCES)
15 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
17 # Module name from object or executable file name.
18 MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p="$${p%.lo}"; echo "$$p")
20 AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_NAME)\"
21 if HAVE_DYNAMIC_PLUGINS
22 AM_CPPFLAGS += -D__PLUGIN__
24 AM_CPPFLAGS += -DMODULE_NAME=$(MODULE_NAME)
30 -avoid-version -module \
31 -export-symbols-regex ^vlc_entry \
34 $(top_builddir)/compat/libcompat.la $(LTLIBVLCCORE)
36 AM_LDFLAGS += $(top_builddir)/modules/module.rc.lo
42 $(LIBTOOL) --mode=compile --tag=ASM $(YASM) $(YASMFLAGS) $< -o $@