common.am 1.01 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
SUFFIXES =
10 11 12
libvlcdir = $(libdir)/vlc/$(basedir)
EXTRA_DIST = Modules.am
BUILT_SOURCES =
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
13
CLEANFILES = $(BUILT_SOURCES)
14 15 16 17 18 19

include $(srcdir)/Modules.am

if HAVE_PLUGINS
LTLIBVLC = $(top_builddir)/src/libvlc.la

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
20 21 22
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
23 24
AM_LDFLAGS = -rpath '$(libvlcdir)' \
	-avoid-version -module -no-undefined \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
25 26
	-shrext $(LIBEXT) \
	 `$(VLC_CONFIG) --ldflags plugin $@`
27
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLC)
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
28

29 30 31 32 33 34 35 36 37 38 39 40
if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic
else
AM_LDFLAGS += -export-symbol-regex ^vlc_entry
endif
endif

nice:
	$(top_builddir)/compile

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