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
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 24
	-shrext $(LIBEXT) \
	 `$(VLC_CONFIG) --ldflags plugin $@`
25 26 27
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@`
if HAVE_WIN32
# Windows does not support undefined symbols
28
AM_LDFLAGS += -no-undefined
29 30
AM_LIBADD += $(LTLIBVLCCORE)
endif
Rémi Denis-Courmont's avatar
Rémi Denis-Courmont committed
31

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

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

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

.PHONY: nice