# Common code for VLC modules/.../Makefile.am # # Copyright (C) 2005-2007 the VideoLAN team # Copyright (C) 2005-2008 RĂ©mi Denis-Courmont # # Authors: Sam Hocevar AUTOMAKE_OPTIONS = subdir-objects NULL = pluginsdir = $(vlclibdir)/plugins BUILT_SOURCES = CLEANFILES = $(BUILT_SOURCES) LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la # Module name from object or executable file name. MODULE_NAME = $$(p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; p="$${p%_plugin*}"; p=$$(echo "$$p"|sed 's/-/_/g'); p="$${p%.lo}"; echo "$$p") AM_CPPFLAGS = -DMODULE_STRING=\"$(MODULE_NAME)\" if HAVE_DYNAMIC_PLUGINS AM_CPPFLAGS += -D__PLUGIN__ else AM_CPPFLAGS += -DMODULE_NAME=$(MODULE_NAME) endif AM_CFLAGS = AM_CXXFLAGS = AM_OBJCFLAGS = AM_LDFLAGS = \ -avoid-version -module \ -export-symbols-regex ^vlc_entry \ -shrext $(LIBEXT) \ -no-undefined \ $(top_builddir)/compat/libcompat.la $(LTLIBVLCCORE) if HAVE_WIN32 AM_LDFLAGS += $(top_builddir)/modules/module.rc.lo -Wc,-static endif AM_YFLAGS = -d SUFFIXES = .l .y