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>
10 libvlcdir = $(libdir)/vlc/$(basedir)
11 EXTRA_DIST = Modules.am
13 CLEANFILES = $(BUILT_SOURCES)
15 include $(srcdir)/Modules.am
18 LTLIBVLC = $(top_builddir)/src/libvlc.la
20 AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
21 AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
22 AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
23 AM_LDFLAGS = -rpath '$(libvlcdir)' \
24 -avoid-version -module -no-undefined \
26 `$(VLC_CONFIG) --ldflags plugin $@`
27 AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLC)
29 if HAVE_COMPILER_EXPORT
30 AM_LDFLAGS += -export-dynamic
32 AM_LDFLAGS += -export-symbol-regex ^vlc_entry
37 $(top_builddir)/compile
40 $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
41 cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)