1 |
# $Header: /magellan-cvs/smage/include/mozilla.sminc,v 1.2 2006/06/12 21:16:04 niro Exp $ |
# $Id$ |
2 |
# mozilla global smage2 functions |
# mozilla global smage2 functions |
3 |
|
|
4 |
mozconf_add() |
mozconf_add() |
19 |
|
|
20 |
mozilla_remove_cflags() |
mozilla_remove_cflags() |
21 |
{ |
{ |
22 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
# this removes extraneous CFLAGS from the Makefiles to reduce RAM |
23 |
# requirements while compiling (gentoo) |
# requirements while compiling (gentoo) |
24 |
export CFLAGS="${CFLAGS} -Wno-return-type -w" |
export CFLAGS="${CFLAGS} -Wno-return-type -w" |
25 |
export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w" |
export CXXFLAGS="${CXXFLAGS} -Wno-return-type -w" |
35 |
-e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE} |
-e 's:-pedantic::g' ${MAKEFILE}.old > ${MAKEFILE} |
36 |
rm -f ${MAKEFILE}.old |
rm -f ${MAKEFILE}.old |
37 |
done |
done |
38 |
# Mozilla use .mk includes |
# mozilla use .mk includes |
39 |
find . -name '*.mk' | while read MAKEFILE |
find . -name '*.mk' | while read MAKEFILE |
40 |
do |
do |
41 |
cp ${MAKEFILE} ${MAKEFILE}.old |
cp ${MAKEFILE} ${MAKEFILE}.old |
47 |
} |
} |
48 |
|
|
49 |
# simulate the csh makemake script (gentoo) |
# simulate the csh makemake script (gentoo) |
50 |
makemake() { |
makemake() |
51 |
|
{ |
52 |
typeset m topdir |
typeset m topdir |
53 |
for m in $(find . -name Makefile.in); do |
for m in $(find . -name Makefile.in); do |
54 |
topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') |
topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') |
57 |
done |
done |
58 |
} |
} |
59 |
|
|
60 |
makemake2() { |
makemake2() |
61 |
|
{ |
62 |
typeset m topdir |
typeset m topdir |
63 |
for m in $(find ../ -name Makefile.in); do |
for m in $(find ../ -name Makefile.in); do |
64 |
topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') |
topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') |