Commit ab799a3a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Makefile factorization

parent c106ef79
...@@ -19,15 +19,20 @@ include $(srcdir)/Modules.am ...@@ -19,15 +19,20 @@ include $(srcdir)/Modules.am
if HAVE_PLUGINS if HAVE_PLUGINS
LTLIBVLC = $(top_builddir)/src/libvlc.la LTLIBVLC = $(top_builddir)/src/libvlc.la
AM_CFLAGS = `$(VLC_CONFIG) --cflags plugin $@`
AM_CXXFLAGS = `$(VLC_CONFIG) --cxxflags plugin $@`
AM_OBJCFLAGS = `$(VLC_CONFIG) --objcflags plugin $@`
AM_LDFLAGS = -rpath '$(libvlcdir)' \ AM_LDFLAGS = -rpath '$(libvlcdir)' \
-avoid-version -module -no-undefined \ -avoid-version -module -no-undefined \
-shrext $(LIBEXT) -shrext $(LIBEXT) \
`$(VLC_CONFIG) --ldflags plugin $@`
AM_LIBADD = $(LTLIBVLC)
if HAVE_COMPILER_EXPORT if HAVE_COMPILER_EXPORT
AM_LDFLAGS += -export-dynamic AM_LDFLAGS += -export-dynamic
else else
AM_LDFLAGS += -export-symbol-regex ^vlc_entry AM_LDFLAGS += -export-symbol-regex ^vlc_entry
endif endif
AM_LIBADD = $(LTLIBVLC)
endif endif
all: all-modules all: all-modules
......
...@@ -64,11 +64,9 @@ BUILT_SOURCES += \$(B${mod}) ...@@ -64,11 +64,9 @@ BUILT_SOURCES += \$(B${mod})
EOF EOF
fi fi
cat >> "${makf}" << EOF cat >> "${makf}" << EOF
lib${mod}_plugin_la_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\` lib${mod}_plugin_la_CFLAGS = \$(AM_CFLAGS)
lib${mod}_plugin_la_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\` lib${mod}_plugin_la_CXXFLAGS = \$(AM_CXXFLAGS)
lib${mod}_plugin_la_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags plugin ${mod}\` lib${mod}_plugin_la_OBJCFLAGS = \$(AM_OBJCFLAGS)
lib${mod}_plugin_la_LDFLAGS = \$(AM_LDFLAGS) \\
\`\$(VLC_CONFIG) --ldflags plugin ${mod}\`
lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD) \\ lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD) \\
\`\$(VLC_CONFIG) -libs plugin ${mod}\` \`\$(VLC_CONFIG) -libs plugin ${mod}\`
# Automake does not understand \`...\` very well inside LIBADD... # Automake does not understand \`...\` very well inside LIBADD...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment