Changeset e2d69c725e4f1f869a60288364f42b14cb7c3fe0
- Timestamp:
- 01/07/03 18:25:24
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1057076724 +0000
- git-parent:
[c0ec41c709da782bbe8d6b7032887768002f3672]
- git-author:
- Sam Hocevar <sam@videolan.org> 1057076724 +0000
- Message:
- bootstrap:
+ Removed the Modules.am generation. To build module/foo/libfoo.so, you
now need to cd modules/foo and make libfoo.so.
+ Workaround for Solaris sed. Which sucks. Did I mention that before?
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1f4f223 |
re2d69c7 |
|
| 18 | 18 | Makefile.in |
|---|
| 19 | 19 | Makefile |
|---|
| 20 | | Modules.am |
|---|
| 21 | 20 | build-stamp |
|---|
| 22 | 21 | configure-stamp |
|---|
| r1075964 |
re2d69c7 |
|
| 15 | 15 | INSTALL.win32 \ |
|---|
| 16 | 16 | MAINTAINERS \ |
|---|
| 17 | | Modules.am \ |
|---|
| 18 | 17 | README.MacOSX.rtf \ |
|---|
| 19 | 18 | bootstrap \ |
|---|
| … | … | |
| 372 | 371 | install-exec-local: |
|---|
| 373 | 372 | for i in "" `$(VLC_CONFIG) --target plugin` ; do if test -n "$$i" ; then \ |
|---|
| 374 | | $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`" ; \ |
|---|
| | 373 | $(INSTALL) -m 755 "modules/$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f1 -d/`" ; \ |
|---|
| 375 | 374 | fi ; done |
|---|
| 376 | 375 | for i in "" `$(VLC_CONFIG) --target builtin` `$(VLC_CONFIG) --target builtin pic` ; do if test -n "$$i" ; then \ |
|---|
| 377 | | $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc" ; \ |
|---|
| | 376 | $(INSTALL) -m 644 "modules/$$i" "$(DESTDIR)$(libdir)/vlc" ; \ |
|---|
| 378 | 377 | fi ; done |
|---|
| 379 | 378 | for i in "" $(ALIASES) ; do if test -n "$$i" ; then \ |
|---|
| … | … | |
| 394 | 393 | $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules |
|---|
| 395 | 394 | for i in "" `$(VLC_CONFIG) --target plugin` ; do \ |
|---|
| 396 | | if test -n "$$i" ; then $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" \ |
|---|
| | 395 | if test -n "$$i" ; then $(INSTALL) "$(srcdir)/modules/$$i$(LIBEXT)" \ |
|---|
| 397 | 396 | "$(srcdir)/VLC.app/Contents/MacOS/modules" ; \ |
|---|
| 398 | 397 | fi ; done |
|---|
| … | … | |
| 449 | 448 | for i in "" `$(VLC_CONFIG) --target plugin` ; do \ |
|---|
| 450 | 449 | if test -n "$$i" ; then \ |
|---|
| 451 | | $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \ |
|---|
| | 450 | $(INSTALL) "$(srcdir)/modules/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \ |
|---|
| 452 | 451 | fi ; done |
|---|
| 453 | 452 | |
|---|
| … | … | |
| 625 | 624 | |
|---|
| 626 | 625 | ############################################################################### |
|---|
| 627 | | # Modules |
|---|
| 628 | | ############################################################################### |
|---|
| 629 | | include Modules.am |
|---|
| 630 | | |
|---|
| 631 | | ############################################################################### |
|---|
| 632 | 626 | # Force rule |
|---|
| 633 | 627 | ############################################################################### |
|---|
| rd93b2c5 |
re2d69c7 |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## bootstrap file for the VLC media player |
|---|
| 4 | | ## $Id: bootstrap,v 1.55 2003/07/01 14:25:47 sam Exp $ |
|---|
| | 4 | ## $Id: bootstrap,v 1.56 2003/07/01 16:25:24 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Sam Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 37 | 37 | printf "generating modules/**/Makefile.am and m4/private.m4" |
|---|
| 38 | 38 | |
|---|
| 39 | | # Prepare Modules.am and m4/private.m4 |
|---|
| 40 | | rm -f Modules.am && echo > Modules.am |
|---|
| | 39 | # Prepare m4/private.m4 |
|---|
| 41 | 40 | rm -f m4/private.m4 && cat > m4/private.m4 << EOF |
|---|
| 42 | 41 | dnl Private VLC macros - generated by bootstrap |
|---|
| … | … | |
| 73 | 72 | EOF |
|---|
| 74 | 73 | |
|---|
| 75 | | for dir in `sed -ne 's,\(modules/.*\)/Makefile,\1,p' configure.ac` |
|---|
| | 74 | for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac` |
|---|
| 76 | 75 | do |
|---|
| 77 | 76 | printf "." |
|---|
| 78 | | mf="${dir}/Modules.am" |
|---|
| 79 | | basedir="`echo ${dir} | cut -f2 -d/`" |
|---|
| | 77 | mf="modules/${dir}/Modules.am" |
|---|
| | 78 | basedir="`echo ${dir} | cut -f1 -d/`" |
|---|
| 80 | 79 | # automake will not recurse for make dist if we don't define SUBDIRS = . |
|---|
| 81 | | subdirs="`sed -ne 's,'${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`" |
|---|
| | 80 | subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`" |
|---|
| 82 | 81 | #parent=`echo ${dir} | sed -e 's@[^/]*@..@g'` |
|---|
| 83 | | #echo " ${dir}/Makefile" >> m4/private.m4-tmp3 |
|---|
| 84 | | rm -f ${dir}/Makefile.am && cat > ${dir}/Makefile.am << EOF |
|---|
| | 82 | #echo " modules/${dir}/Makefile" >> m4/private.m4-tmp3 |
|---|
| | 83 | rm -f modules/${dir}/Makefile.am && cat > modules/${dir}/Makefile.am << EOF |
|---|
| 85 | 84 | |
|---|
| 86 | 85 | # Autogenerated by bootstrap - DO NOT EDIT - edit Modules.am instead |
|---|
| … | … | |
| 110 | 109 | #dnl AM_CONDITIONAL(${mod}_b, test x\$${mod}_b = xyes) |
|---|
| 111 | 110 | #EOF |
|---|
| 112 | | cat >> Modules.am << EOF |
|---|
| 113 | | ${dir}/lib${mod}_plugin: ${dir}/lib${mod}_plugin\$(LIBEXT) |
|---|
| 114 | | ${dir}/lib${mod}_plugin\$(LIBEXT): include/vlc_symbols.h FORCE |
|---|
| 115 | | cd ${dir} && \$(MAKE) lib${mod}_plugin\$(LIBEXT) |
|---|
| 116 | | ${dir}/lib${mod}.a: include/vlc_symbols.h FORCE |
|---|
| 117 | | cd ${dir} && \$(MAKE) lib${mod}.a |
|---|
| 118 | | ${dir}/lib${mod}_pic.a: include/vlc_symbols.h FORCE |
|---|
| 119 | | cd ${dir} && \$(MAKE) lib${mod}_pic.a |
|---|
| 120 | | |
|---|
| 121 | | EOF |
|---|
| 122 | 111 | cat >> m4/private.m4-tmp4 << EOF |
|---|
| 123 | 112 | ${mod}) list="\\\${list} ${dir}/lib${mod}" ;; |
|---|
| … | … | |
| 130 | 119 | # - *_CFLAGS, *_CXXFLAGS etc. because per-object CPPFLAGS does not seem to |
|---|
| 131 | 120 | # work properly with any automake version I tested. |
|---|
| 132 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 121 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 133 | 122 | # The ${mod} plugin |
|---|
| 134 | 123 | |
|---|
| … | … | |
| 148 | 137 | L${count}pic = lib${mod}_pic.a |
|---|
| 149 | 138 | EOF |
|---|
| 150 | | if [ "${NODIST}" != "#" ]; then cat >> ${dir}/Makefile.am << EOF |
|---|
| | 139 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 151 | 140 | B${count}p = \$(nodist_SOURCES_${mod}) |
|---|
| 152 | 141 | B${count}b = \$(nodist_SOURCES_${mod}) |
|---|
| 153 | 142 | EOF |
|---|
| 154 | 143 | fi |
|---|
| 155 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 144 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 156 | 145 | endif |
|---|
| 157 | 146 | |
|---|
| 158 | 147 | EOF |
|---|
| 159 | | if [ "${NODIST}" != "#" ]; then cat >> ${dir}/Makefile.am << EOF |
|---|
| | 148 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 160 | 149 | ${PRIVATE}BUILT_SOURCES += \$(B${count}p) \$(B${count}b) |
|---|
| 161 | 150 | EOF |
|---|
| 162 | 151 | fi |
|---|
| 163 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 152 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 164 | 153 | ${PRIVATE}lib${mod}_plugin_a_SOURCES = \$(SOURCES_${mod}) |
|---|
| 165 | 154 | EOF |
|---|
| 166 | | if [ "${NODIST}" != "#" ]; then cat >> ${dir}/Makefile.am << EOF |
|---|
| | 155 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 167 | 156 | ${PRIVATE}nodist_lib${mod}_plugin_a_SOURCES = \$(nodist_SOURCES_${mod}) |
|---|
| 168 | 157 | EOF |
|---|
| 169 | 158 | fi |
|---|
| 170 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 159 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 171 | 160 | lib${mod}_plugin_a_CFLAGS = \`\$(VLC_CONFIG) --cflags plugin ${mod}\` |
|---|
| 172 | 161 | lib${mod}_plugin_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags plugin ${mod}\` |
|---|
| … | … | |
| 175 | 164 | lib${mod}_pic_a_SOURCES = ${PRIVATE}\$(SOURCES_${mod}) |
|---|
| 176 | 165 | EOF |
|---|
| 177 | | if [ "${NODIST}" != "#" ]; then cat >> ${dir}/Makefile.am << EOF |
|---|
| | 166 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 178 | 167 | nodist_lib${mod}_pic_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod}) |
|---|
| 179 | 168 | EOF |
|---|
| 180 | 169 | fi |
|---|
| 181 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 170 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 182 | 171 | lib${mod}_pic_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin pic ${mod}\` |
|---|
| 183 | 172 | lib${mod}_pic_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin pic ${mod}\` |
|---|
| … | … | |
| 186 | 175 | lib${mod}_a_SOURCES = ${PRIVATE}\$(SOURCES_${mod}) |
|---|
| 187 | 176 | EOF |
|---|
| 188 | | if [ "${NODIST}" != "#" ]; then cat >> ${dir}/Makefile.am << EOF |
|---|
| | 177 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 189 | 178 | nodist_lib${mod}_a_SOURCES = ${PRIVATE}\$(nodist_SOURCES_${mod}) |
|---|
| 190 | 179 | EOF |
|---|
| 191 | 180 | fi |
|---|
| 192 | | cat >> ${dir}/Makefile.am << EOF |
|---|
| | 181 | cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 193 | 182 | lib${mod}_a_CFLAGS = \`\$(VLC_CONFIG) --cflags builtin ${mod}\` |
|---|
| 194 | 183 | lib${mod}_a_CXXFLAGS = \`\$(VLC_CONFIG) --cxxflags builtin ${mod}\` |
|---|
| … | … | |
| 239 | 228 | |
|---|
| 240 | 229 | # remove autotools cruft |
|---|
| 241 | | rm -f aclocal.m4 configure configure.ac.in config.log |
|---|
| | 230 | rm -f aclocal.m4 configure configure.ac.in config.log Modules.am |
|---|
| 242 | 231 | # remove old autotools extra cruft |
|---|
| 243 | 232 | rm -f config.guess config.sub missing mkinstalldirs compile depcomp install-sh |
|---|