common.am 1.04 KB
Newer Older
1 2 3 4 5 6 7 8
# 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 <sam@zoy.org>

NULL =
9
libvlcdir = $(vlclibdir)/plugins/$(basedir)
10 11
EXTRA_DIST = Modules.am
BUILT_SOURCES =
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
12
CLEANFILES = $(BUILT_SOURCES)
13

14
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
15

16 17 18 19 20 21
# Module name from object or executable file name.
MODULE_NAME = `p="$@"; p="$${p\#\#*/}"; p="$${p\#lib}"; echo "$${p%_plugin*}"`

AM_CPPFLAGS = \
	-DMODULE_NAME=$(MODULE_NAME) \
	-DMODULE_NAME_IS_$(MODULE_NAME) \
22
	-DMODULE_STRING=\"$(MODULE_NAME)\" \
23
	-D__PLUGIN__
24 25 26
AM_CFLAGS =
AM_CXXFLAGS =
AM_OBJCFLAGS =
27
AM_LDFLAGS = -rpath '$(libvlcdir)' \
28
	-avoid-version -module \
29
	-export-symbols-regex ^vlc_entry \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
30
	-shrext $(LIBEXT) \
31 32
	-no-undefined
AM_LIBADD = $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la $(LIBS_plugin)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
33

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
34
include $(srcdir)/Modules.am
35 36 37

if MAINTAINER_MODE
$(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
38
	$(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)
39
endif