X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcommon.am;h=5e4d65f57e381b811050e6e620243e813e526b06;hb=c60652e38ac6afd74bd8225e9dae5406f13aaa4f;hp=1036b8e448836b8191c0d8d2e808d75bc492fb31;hpb=3e82c0f591561f29fcfbf7c6f35d08f79cfd8f4e;p=vlc diff --git a/modules/common.am b/modules/common.am index 1036b8e448..5e4d65f57e 100644 --- a/modules/common.am +++ b/modules/common.am @@ -6,37 +6,29 @@ # Authors: Sam Hocevar NULL = -SUFFIXES = -libvlcdir = $(libdir)/vlc/$(basedir) +libvlcdir = $(vlclibdir)/plugins/$(basedir) EXTRA_DIST = Modules.am BUILT_SOURCES = CLEANFILES = $(BUILT_SOURCES) -include $(srcdir)/Modules.am - -if HAVE_PLUGINS -LTLIBVLC = $(top_builddir)/src/libvlc.la +LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@` AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@` AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@` AM_LDFLAGS = -rpath '$(libvlcdir)' \ - -avoid-version -module -no-undefined \ + -avoid-version -module \ + -export-symbol-regex ^vlc_entry \ -shrext $(LIBEXT) \ + -rpath "$(libvlcdir)" \ + -no-undefined \ `$(VLC_CONFIG) --ldflags plugin $@` -AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` $(LTLIBVLC) - -if HAVE_COMPILER_EXPORT -AM_LDFLAGS += -export-dynamic -else -AM_LDFLAGS += -export-symbol-regex ^vlc_entry -endif -endif +AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \ + $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la -nice: - $(top_builddir)/compile +include $(srcdir)/Modules.am if MAINTAINER_MODE $(srcdir)/Makefile.am: $(srcdir)/Modules.am $(top_srcdir)/modules/genmf - cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir) + $(AM_V_GEN)cd \$(top_srcdir) && \$(SHELL) modules/genmf $(dir) endif