/[gentoo-x86]/eclass/makeedit.eclass
Gentoo

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jul 24 23:57:00 2002 UTC (12 years, 1 month ago) by spider
Branch: MAIN
Experimental makefile changer eclass. will do some nice memory optimizations

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 # Author: Spider
6 # makeedit eclass, will remove -Wreturn-type and -Wall from compiling, this will reduce the RAM requirements.
7
8 # Debug ECLASS
9 ECLASS="makeedit"
10
11 INHERITED="$INHERITED $ECLASS"
12 export CFLAGS="${CFLAGS} -Wno-return-type"
13 export CXXFLAGS="${CXXFLAGS} -Wno-return-type"
14
15 edit_makefiles () {
16 find . -iname makefile |while read MAKEFILE
17 do einfo "parsing ${MAKEFILE}"
18 cp ${MAKEFILE} ${MAKEFILE}.old
19 sed -e "s:-Wall:-Wall -Wno-return-type:g" \
20 -e "s:-Wreturn-type:-Wno-return-type:g" \
21 -e "s:-pedantic::g" ${MAKEFILE}.old > ${MAKEFILE}
22 done
23
24 }

  ViewVC Help
Powered by ViewVC 1.1.20