common.am 1005 Bytes
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
libvlcdir = $(vlclibdir)/$(basedir)
11 12
EXTRA_DIST = Modules.am
BUILT_SOURCES =
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
13
CLEANFILES = $(BUILT_SOURCES)
14

15
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
16

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
17 18 19
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
20
AM_LDFLAGS = -rpath '$(libvlcdir)' \
21
	-avoid-version -module \
22
	-export-symbol-regex ^vlc_entry \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
23
	-shrext $(LIBEXT) \
24
	-no-undefined \
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
25
	 `$(VLC_CONFIG) --ldflags plugin $@`
26 27
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \
	$(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
28

Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
29
include $(srcdir)/Modules.am
30 31 32

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

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

.PHONY: nice