X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcommon.am;h=fc29eae530b07d4118874563e50446167db988b9;hb=c8a5d5fc4bfe4a4d0db7ebf9688293974ea58e91;hp=390362797ad9418eff8b2f06f703cf3355868ddf;hpb=ec525f6973f5e5dd4a7015d002f3e8816be4340e;p=vlc diff --git a/modules/common.am b/modules/common.am index 390362797a..fc29eae530 100644 --- a/modules/common.am +++ b/modules/common.am @@ -6,37 +6,30 @@ # Authors: Sam Hocevar NULL = -SUFFIXES = -libvlcdir = $(libdir)/vlc/$(basedir) +libvlcdir = $(vlclibdir)/plugins/$(basedir) EXTRA_DIST = Modules.am BUILT_SOURCES = CLEANFILES = $(BUILT_SOURCES) LTLIBVLCCORE = $(top_builddir)/src/libvlccore.la +AM_CPPFLAGS = -D__PLUGIN__ 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 \ - -export-symbol-regex ^vlc_entry \ + -export-symbols-regex ^vlc_entry \ -shrext $(LIBEXT) \ + -rpath "$(libvlcdir)" \ + -no-undefined \ `$(VLC_CONFIG) --ldflags plugin $@` -AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` -if HAVE_WIN32 -# Windows does not support undefined symbols -AM_LDFLAGS += -no-undefined -AM_LIBADD += $(LTLIBVLCCORE) -endif +AM_LIBADD = `$(VLC_CONFIG) -libs plugin $@` \ + $(LTLIBVLCCORE) $(top_builddir)/compat/libcompat.la 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 - -nice: - $(top_builddir)/compile - -.PHONY: nice