common.am 1.07 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
AM_CFLAGS = `$(VLC_CONFIG) --cflags $(VLC_DEFAULT_PLUGIN_TYPE) $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags $(VLC_DEFAULT_PLUGIN_TYPE) $@`
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags $(VLC_DEFAULT_PLUGIN_TYPE) $@`
19
AM_LDFLAGS = -rpath '$(libvlcdir)' \
20
	-avoid-version -module \
21
	-export-symbols-regex ^vlc_entry \
22
	-shrext $(LIBEXT) \
23
	-rpath "$(libvlcdir)" \
24
	-no-undefined \
25 26
	 `$(VLC_CONFIG) --ldflags $(VLC_DEFAULT_PLUGIN_TYPE) $@`
AM_LIBADD = `$(VLC_CONFIG) -libs $(VLC_DEFAULT_PLUGIN_TYPE) $@` \
27
	$(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
28

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
29
include $(srcdir)/Modules.am
30 31 32

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