3 ## genmf file for the VLC media player
5 ## Copyright (C) 2005-2007 the VideoLAN team
7 ## Authors: Sam Hocevar <sam@zoy.org>
8 ## RĂ©mi Denis-Courmont <rem # videolan # org>
10 cd $(dirname "$0")/.. || exit 1
16 modf="modules/${dir}/Modules.am"
17 makf="modules/${dir}/Makefile.am"
18 basedir="`echo "${dir}" | cut -f1 -d/`"
19 # automake will not recurse for make dist if we don't define SUBDIRS = .
20 subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
21 mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
25 extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
27 rm -f "${makf}" && cat > "${makf}" << EOF
28 # ${makf} automatically generated from ${modf} by bootstrap
29 # DO NOT EDIT - edit Modules.am or \$(top_srcdir)/bootstrap instead
35 EXTRA_LTLIBRARIES = ${extra_ltlibs}
37 include \$(top_srcdir)/modules/common.am
42 cat >> "${makf}" << EOF
44 lib${mod}_plugin_la_SOURCES = \$(SOURCES_${mod})
45 nodist_lib${mod}_plugin_la_SOURCES = \$(nodist_SOURCES_${mod})
46 # Force per-target objects:
47 lib${mod}_plugin_la_CFLAGS = \$(AM_CFLAGS)
48 lib${mod}_plugin_la_CXXFLAGS = \$(AM_CXXFLAGS)
49 lib${mod}_plugin_la_OBJCFLAGS = \$(AM_OBJCFLAGS)
50 # Set LIBADD and DEPENDENCIES manually:
51 lib${mod}_plugin_la_LIBADD = \$(AM_LIBADD)
52 lib${mod}_plugin_la_DEPENDENCIES =