Changeset 32396b1 in freewrt
- Timestamp:
- Mar 21, 2007, 11:01:31 PM (19 years ago)
- Children:
- 919947c
- Parents:
- 934494c
- Files:
-
- 5 edited
-
Makefile (modified) (2 diffs)
-
scripts/scan-tools.sh (modified) (4 diffs)
-
tools/gmake/Makefile.in (modified) (6 diffs)
-
tools/gmake/configure (modified) (2 diffs)
-
tools/gmake/glob/Makefile.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r934494c r32396b1 84 84 ln -s $$(which which) lbin/which; \ 85 85 fi 86 @if lbin/which gmake >/dev/null 2>&1; then \87 ln -s $$(lbin/which gmake) lbin/gmake; \88 else \89 ln -s $$(lbin/which make) lbin/gmake; \90 fi91 86 @if ! lbin/which md5sum >/dev/null 2>&1; then \ 92 87 cp scripts/md5sum.bsd lbin/md5sum; \ … … 126 121 printf '%s\n%s\nwq\n' ",g#$$TOPDIR#s##\$${TOPDIR}#g" \ 127 122 "1s#^.*\$$#TOPDIR:=$$TOPDIR#" | ed -s lbin/prereq.mk 128 @env NO_ERROR=${NO_ERROR} bash scripts/scan-tools.sh 123 @env NO_ERROR=${NO_ERROR} BASH="$$(lbin/which bash)" \ 124 CC='${CC}' CPPFLAGS='${CPPFLAGS}' \ 125 bash ${_PX} scripts/scan-tools.sh 129 126 @cc='${CC}'; if test x"$$cc" = x"gcc"; then \ 130 127 ln -s $$(lbin/which "$$cc") lbin/gcc; \ -
scripts/scan-tools.sh
r934494c r32396b1 38 38 shopt -s extglob 39 39 topdir=$(pwd) 40 export PATH=$topdir/lbin:$PATH40 opath=$PATH 41 41 out=0 42 42 … … 100 100 101 101 set +e 102 103 if [[ ! -e $topdir/lbin/gmake ]]; then 104 for f in $topdir/tools_build/gmake/make \ 105 "$($topdir/lbin/which gmake)" "$($topdir/lbin/which make)"; do 106 [[ -e $f ]] || continue 107 if [[ $f = $topdir/tools_build/gmake/make ]]; then 108 install -c -s -m 555 $f $topdir/lbin/gmake 109 else 110 ln -s "$f" $topdir/lbin/gmake 111 fi 112 break 113 done 114 fi 115 X=$($topdir/lbin/gmake --version 2>&1 | grep '^GNU Make' | \ 116 sed -e 's/GNU Make //' -e 's/version //' -e 's/, by.*$//') 117 [[ $X = +([0-9]).+([0-9]).+([0-9]) ]] && X=${X%.*} 118 if [[ $X = +([0-9]).+([0-9]) ]]; then 119 let major=${X%.*} 120 let minor=${X#*.} 121 elif [[ $X = +([0-9]).+([0-9])beta* ]]; then 122 # Beta version is not "the real thing" 123 let major=${X%.*} 124 X=${X%beta*} 125 let minor=${X#*.}-1 126 else 127 let major=0 128 fi 129 if (( (major < 3) || ((major == 3) && (minor < 81)) )); then 130 echo "---> building GNU make 3.81" 131 rm -rf $topdir/tools_build/gmake $topdir/lbin/gmake 132 set -e 133 mkdir -p $topdir/tools_build/gmake 134 cd $topdir/tools_build/gmake 135 env CPPFLAGS="$CPPFLAGS -Dstrcmpi=strcasecmp" \ 136 CFLAGS="$(grep '^HOSTCFLAGS' $topdir/lbin/prereq.mk | \ 137 sed 's/HOSTCFLAGS:=//')" \ 138 $BASH $topdir/tools/gmake/configure \ 139 --program-prefix=g \ 140 --disable-dependency-tracking \ 141 --disable-nls \ 142 --without-libiconv-prefix \ 143 --without-libintl-prefix 144 make all 145 install -c -s -m 555 make $topdir/lbin/gmake 146 set +e 147 cd $topdir/lbin; ls -l gmake 148 cd $topdir/lbin/tmp 149 fi 150 export PATH=$topdir/lbin:$PATH 151 102 152 cat >Makefile <<'EOF' 103 153 include ${TOPDIR}/lbin/prereq.mk … … 124 174 echo "$X" | sed 's/^/| /' 125 175 echo Cannot compile a simple test programme. 126 echo You must install GNU make and a hostC compiler,176 echo You must install a host make and C compiler, 127 177 echo usually GCC, to proceed. 128 178 echo … … 182 232 printf '/^HOSTCFLAGS/s/$/ -fno-tree-vrp/\nwq\n' | ed -s ../prereq.mk 183 233 184 X=$(gmake --version 2>&1 | grep '^GNU Make' | \185 sed -e 's/GNU Make //' -e 's/version //' -e 's/, by.*$//')186 [[ $X = +([0-9]).+([0-9]).+([0-9]) ]] && X=${X%.*}187 if [[ $X = +([0-9]).+([0-9]) ]]; then188 let major=${X%.*}189 let minor=${X#*.}190 elif [[ $X = +([0-9]).+([0-9])beta* ]]; then191 # Beta version is not "the real thing"192 let major=${X%.*}193 X=${X%beta*}194 let minor=${X#*.}-1195 else196 echo Cannot determine GNU make version number.197 echo198 out=1199 fi200 if (( (major < 3) || ((major == 3) && (minor < 81)) )); then201 echo GNU make $major.$minor too old.202 echo Please install GNU make 3.81 or higher to continue.203 echo204 out=1205 fi206 207 234 if ! which flex >/dev/null 2>&1; then 208 235 echo You must install flex to continue. -
tools/gmake/Makefile.in
r934494c r32396b1 133 133 ETAGS = etags 134 134 CTAGS = ctags 135 DIST_SUBDIRS = glob config po doc w32135 DIST_SUBDIRS = glob #config po doc w32 136 136 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 137 137 distdir = $(PACKAGE)-$(VERSION) … … 262 262 @WINDOWSENV_TRUE@W32INC = -I $(top_srcdir)/w32/include 263 263 @WINDOWSENV_TRUE@W32LIB = -Lw32 -lw32 264 SUBDIRS = glob config po doc $(MAYBE_W32)264 SUBDIRS = glob #config po doc $(MAYBE_W32) 265 265 @USE_CUSTOMS_FALSE@remote = remote-stub.c 266 266 @USE_CUSTOMS_TRUE@remote = remote-cstms.c … … 276 276 make_LDADD = @LIBOBJS@ @ALLOCA@ $(GLOBLIB) @GETLOADAVG_LIBS@ @LIBINTL@ \ 277 277 $(am__append_1) 278 man_MANS = make.1278 man_MANS = #make.1 279 279 AM_CPPFLAGS = $(GLOBINC) $(am__append_2) 280 280 … … 330 330 am--refresh: 331 331 @: 332 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)333 @for dep in $?; do \334 case '$(am__configure_deps)' in \335 *$$dep*) \336 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \337 cd $(srcdir) && $(AUTOMAKE) --gnu \338 && exit 0; \339 exit 1;; \340 esac; \341 done; \342 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \343 cd $(top_srcdir) && \344 $(AUTOMAKE) --gnu Makefile345 332 .PRECIOUS: Makefile 346 333 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 357 344 $(SHELL) ./config.status --recheck 358 345 359 $(top_srcdir)/configure: $(am__configure_deps)360 cd $(srcdir) && $(AUTOCONF)361 $(ACLOCAL_M4): $(am__aclocal_m4_deps)362 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)363 364 346 config.h: stamp-h1 365 347 @if test ! -f $@; then \ … … 371 353 @rm -f stamp-h1 372 354 cd $(top_builddir) && $(SHELL) ./config.status config.h 373 $(srcdir)/config.h.in: $(am__configure_deps)374 cd $(top_srcdir) && $(AUTOHEADER)375 rm -f stamp-h1376 touch $@377 355 378 356 distclean-hdr: -
tools/gmake/configure
r934494c r32396b1 13787 13787 13788 13788 # Specify what files are to be created. 13789 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"13789 ac_config_files="$ac_config_files Makefile glob/Makefile" 13790 13790 13791 13791 … … 14378 14378 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14379 14379 "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;; 14380 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;14381 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;14382 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;14383 "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;14384 14380 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14385 14381 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; -
tools/gmake/glob/Makefile.in
r934494c r32396b1 210 210 .SUFFIXES: 211 211 .SUFFIXES: .c .o .obj 212 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)213 @for dep in $?; do \214 case '$(am__configure_deps)' in \215 *$$dep*) \216 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \217 && exit 0; \218 exit 1;; \219 esac; \220 done; \221 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign glob/Makefile'; \222 cd $(top_srcdir) && \223 $(AUTOMAKE) --foreign glob/Makefile224 212 .PRECIOUS: Makefile 225 213 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 233 221 234 222 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 235 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh236 237 $(top_srcdir)/configure: $(am__configure_deps)238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh239 $(ACLOCAL_M4): $(am__aclocal_m4_deps)240 223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 241 224
Note:
See TracChangeset
for help on using the changeset viewer.
