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

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Aug 29 23:56:15 2002 UTC (11 years, 11 months ago) by azarah
Branch: MAIN
CVS Tags: GENTOO_1_4_SNAP_2003010800
Changes since 1.3: +20 -9 lines
small fixor

1 spider 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 azarah 1.4 # $Header: /home/cvsroot/gentoo-x86/eclass/makeedit.eclass,v 1.3 2002/08/04 16:22:34 spider Exp $
4 spider 1.1
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 danarmak 1.2 INHERITED="$INHERITED $ECLASS"
11 spider 1.1
12 spider 1.3 export CFLAGS="${CFLAGS} -Wno-return-type -w"
13     export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w"
14 spider 1.1
15     edit_makefiles () {
16 azarah 1.4 einfo "Parsing Makefiles..."
17     find . -iname makefile | while read MAKEFILE
18     do
19     cp ${MAKEFILE} ${MAKEFILE}.old
20     # We already add "-Wno-return-type -w" to compiler flags, so
21     # no need to replace "-Wall" and "-Wreturn-type" with them.
22     sed -e 's:-Wall::g' \
23     -e 's:-Wreturn-type::g' \
24     -e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE}
25     rm -f ${MAKEFILE}.old
26     done
27     # Mozilla use .mk includes
28     find . -name '*.mk' | while read MAKEFILE
29     do
30     cp ${MAKEFILE} ${MAKEFILE}.old
31     sed -e 's:-Wall::g' \
32     -e 's:-Wreturn-type::g' \
33     -e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE}
34     rm -f ${MAKEFILE}.old
35 spider 1.1 done
36     }

  ViewVC Help
Powered by ViewVC 1.1.20