vlc/modules/common.am

35 lines
995 B
Plaintext
Raw Normal View History

# 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 =
libvlcdir = $(vlclibdir)/plugins/$(basedir)
EXTRA_DIST = Modules.am
BUILT_SOURCES =
2008-04-21 21:12:42 +02:00
CLEANFILES = $(BUILT_SOURCES)
2008-05-15 18:40:44 +02:00
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
AM_CPPFLAGS = -D__PLUGIN__
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
AM_LDFLAGS = -rpath '$(libvlcdir)' \
-avoid-version -module \
-export-symbols-regex ^vlc_entry \
2008-04-21 20:48:43 +02:00
-shrext $(LIBEXT) \
-no-undefined \
`$(VLC_CONFIG) --ldflags plugin $@`
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \
$(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
2008-04-21 20:48:43 +02:00
2008-04-28 21:32:51 +02:00
include $(srcdir)/Modules.am
if MAINTAINER_MODE
$(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
2010-02-14 21:26:02 +01:00
$(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)
endif