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

Contents of /eclass/makeedit.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Sun Feb 16 04:26:21 2003 UTC (11 years, 5 months ago) by vapier
Branch: MAIN
Branch point for: RELEASE-1_4
Changes since 1.4: +6 -4 lines
header fixes

1 vapier 1.5 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 spider 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.5 # $Header: $
4     #
5 spider 1.1 # Author: Spider
6 vapier 1.5 #
7     # makeedit eclass, will remove -Wreturn-type and -Wall from compiling,
8     # this will reduce the RAM requirements.
9 spider 1.1
10     # Debug ECLASS
11     ECLASS="makeedit"
12 danarmak 1.2 INHERITED="$INHERITED $ECLASS"
13 spider 1.1
14 spider 1.3 export CFLAGS="${CFLAGS} -Wno-return-type -w"
15     export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w"
16 spider 1.1
17     edit_makefiles () {
18 azarah 1.4 einfo "Parsing Makefiles..."
19     find . -iname makefile | while read MAKEFILE
20     do
21     cp ${MAKEFILE} ${MAKEFILE}.old
22     # We already add "-Wno-return-type -w" to compiler flags, so
23     # no need to replace "-Wall" and "-Wreturn-type" with them.
24     sed -e 's:-Wall::g' \
25     -e 's:-Wreturn-type::g' \
26     -e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE}
27     rm -f ${MAKEFILE}.old
28     done
29     # Mozilla use .mk includes
30     find . -name '*.mk' | while read MAKEFILE
31     do
32     cp ${MAKEFILE} ${MAKEFILE}.old
33     sed -e 's:-Wall::g' \
34     -e 's:-Wreturn-type::g' \
35     -e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE}
36     rm -f ${MAKEFILE}.old
37 spider 1.1 done
38     }

  ViewVC Help
Powered by ViewVC 1.1.20