2008-04-22 01:42:38 +08: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-22 02:54:50 +08:00
|
|
|
SUFFIXES =
|
2009-01-28 02:14:59 +08:00
|
|
|
libvlcdir = $(vlclibdir)/$(basedir)
|
2008-04-22 01:42:38 +08:00
|
|
|
EXTRA_DIST = Modules.am
|
|
|
|
BUILT_SOURCES =
|
2008-04-22 03:12:42 +08:00
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
2008-04-22 01:42:38 +08:00
|
|
|
|
2008-05-16 00:40:44 +08:00
|
|
|
LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la
|
2008-04-22 01:42:38 +08:00
|
|
|
|
2008-04-22 02:48:43 +08:00
|
|
|
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
|
|
|
|
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
|
|
|
|
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
|
2008-04-22 01:42:38 +08:00
|
|
|
AM_LDFLAGS = -rpath '$(libvlcdir)' \
|
2008-10-19 22:10:11 +08:00
|
|
|
-avoid-version -module \
|
2008-05-24 15:39:07 +08:00
|
|
|
-export-symbol-regex ^vlc_entry \
|
2008-04-22 02:48:43 +08:00
|
|
|
-shrext $(LIBEXT) \
|
|
|
|
`$(VLC_CONFIG) --ldflags plugin $@`
|
2008-10-19 22:10:11 +08:00
|
|
|
AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@`
|
|
|
|
if HAVE_WIN32
|
|
|
|
# Windows does not support undefined symbols
|
2008-10-23 01:47:51 +08:00
|
|
|
AM_LDFLAGS += -no-undefined
|
2008-10-19 22:10:11 +08:00
|
|
|
AM_LIBADD += $(LTLIBVLCCORE)
|
|
|
|
endif
|
2008-11-03 02:59:38 +08:00
|
|
|
if HAVE_WINCE
|
|
|
|
# Same for Windows CE
|
|
|
|
AM_LDFLAGS += -no-undefined
|
|
|
|
AM_LIBADD += $(LTLIBVLCCORE)
|
|
|
|
endif
|
2008-04-22 02:48:43 +08:00
|
|
|
|
2008-04-29 03:32:51 +08:00
|
|
|
include $(srcdir)/Modules.am
|
2008-04-22 01:42:38 +08:00
|
|
|
|
|
|
|
if MAINTAINER_MODE
|
|
|
|
$(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf
|
2008-04-22 03:04:35 +08:00
|
|
|
cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir)
|
2008-04-22 01:42:38 +08:00
|
|
|
endif
|
2008-04-29 03:32:51 +08:00
|
|
|
|
|
|
|
nice:
|
|
|
|
$(top_builddir)/compile
|
2008-04-29 03:33:14 +08:00
|
|
|
|
|
|
|
.PHONY: nice
|