2008-04-21 19:42:38 +02:00
|
|
|
# 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 =
|
2008-04-21 20:54:50 +02:00
|
|
|
SUFFIXES =
|
2008-04-21 19:42:38 +02:00
|
|
|
libvlcdir = $(libdir)/vlc/$(basedir)
|
|
|
|
EXTRA_DIST = Modules.am
|
|
|
|
BUILT_SOURCES =
|
2008-04-21 21:12:42 +02:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2008-04-21 19:42:38 +02:00
|
|
|
|
2008-05-15 18:40:44 +02:00
|
|
|
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
|
2008-04-21 19:42:38 +02:00
|
|
|
|
2008-04-21 20:48:43 +02:00
|
|
|
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
|
|
|
|
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
|
|
|
|
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
|
2008-04-21 19:42:38 +02:00
|
|
|
AM_LDFLAGS = -rpath '$(libvlcdir)' \
|
|
|
|
-avoid-version -module -no-undefined \
|
2008-05-24 09:39:07 +02:00
|
|
|
-export-symbol-regex ^vlc_entry \
|
2008-04-21 20:48:43 +02:00
|
|
|
-shrext $(LIBEXT) \
|
|
|
|
`$(VLC_CONFIG) --ldflags plugin $@`
|
2008-05-15 18:40:44 +02:00
|
|
|
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLCCORE)
|
2008-04-21 20:48:43 +02:00
|
|
|
|
2008-04-28 21:32:51 +02:00
|
|
|
include $(srcdir)/Modules.am
|
2008-04-21 19:42:38 +02:00
|
|
|
|
|
|
|
if MAINTAINER_MODE
|
|
|
|
$(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
|
2008-04-21 21:04:35 +02:00
|
|
|
cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)
|
2008-04-21 19:42:38 +02:00
|
|
|
endif
|
2008-04-28 21:32:51 +02:00
|
|
|
|
|
|
|
nice:
|
|
|
|
$(top_builddir)/compile
|
2008-04-28 21:33:14 +02:00
|
|
|
|
|
|
|
.PHONY: nice
|