common.am 1.03 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

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

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

27 28 29 30 31 32 33
if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic
else
AM_LDFLAGS += -export-symbol-regex ^vlc_entry
endif
endif

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
34
include $(srcdir)/Modules.am
35 36 37

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

nice:
	$(top_builddir)/compile
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
43 44

.PHONY: nice