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>
9 libvlcdir = $(vlclibdir)/plugins/$(basedir)
10 EXTRA_DIST = Modules.am
12 CLEANFILES = $(BUILT_SOURCES)
14 LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
16 AM_CPPFLAGS = -D__PLUGIN__
17 AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
18 AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
19 AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
20 AM_LDFLAGS = -rpath '$(libvlcdir)' \
21 -avoid-version -module \
22 -export-symbols-regex ^vlc_entry \
24 -rpath "$(libvlcdir)" \
26 `$(VLC_CONFIG) --ldflags plugin $@`
27 AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \
28 $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
30 include $(srcdir)/Modules.am
33 $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
34 $(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)