source: trunk/third/mozilla/Makefile.athena @ 22262

Revision 22262, 1.6 KB checked in by rbasch, 19 years ago (diff)
Install Mozilla's patch for bug 307259 (temporarily disables IDN); see https://addons.mozilla.org/messages/307259.html.
Line 
1# $Id: Makefile.athena,v 1.12 2005-09-14 20:05:32 rbasch Exp $
2
3SHELL=/bin/sh
4MOZLIB=/usr/athena/lib/mozilla
5ATHINCDIR=/usr/athena/include
6NSSINCDIR=${ATHINCDIR}/mozilla/nss
7ATHSHAREDIR=/usr/athena/share
8ACLOCALDIR=${ATHSHAREDIR}/aclocal
9common_options=--enable-crypto --disable-debug --disable-tests --enable-xft \
10               --enable-default-toolkit=gtk2 --with-gssapi=/usr/athena
11
12dist:
13        cp "$$CONFIG_SITE" config.site.athena
14
15prepare:
16        rm -f config.cache
17        case $$ATHENA_HOSTTYPE in \
18        linux) \
19            CONFIG_SITE=`pwd`/config.site.athena \
20            CPPFLAGS=-D_REENTRANT \
21            ./configure --enable-optimize=-O2 ${common_options} \
22            ;; \
23        sun4) \
24            CONFIG_SITE=`pwd`/config.site.athena \
25            PATH=${sprobin}:${PATH} \
26            CC=cc \
27            CXX=CC \
28            CFLAGS="-xlibmil" \
29            CXXFLAGS="-xlibmil -xlibmopt" \
30            CPPFLAGS=-D_REENTRANT \
31            LDFLAGS="-L/usr/athena/lib -R/usr/athena/lib" \
32            ./configure --enable-optimize=-xO2 ${common_options} \
33            ;; \
34        esac
35
36clean:
37        ${MAKE} clean
38
39all:
40        case $$ATHENA_HOSTTYPE in \
41        linux) \
42            ${MAKE} \
43            ;; \
44        sun4) \
45            LD_RUN_PATH=/usr/athena/lib ${MAKE} PATH=${sprobin}:${PATH} \
46            ;; \
47        esac
48
49install:
50        case $$ATHENA_HOSTTYPE in \
51        linux) \
52            ${MAKE} install DESTDIR="$$SRVD" \
53            ;; \
54        sun4) \
55            LD_RUN_PATH=/usr/athena/lib \
56              ${MAKE} install DESTDIR="$$SRVD" PATH=${sprobin}:${PATH} \
57            ;; \
58        esac
59        mkdir -p "$$SRVD${NSSINCDIR}"
60        find security/nss/lib/ -name '*.h' -type f -exec install -m 644 {} \
61          "$$SRVD${NSSINCDIR}" \;
62        rm -f "$$SRVD${ACLOCALDIR}/nspr.m4"
63        -rmdir "$$SRVD${ACLOCALDIR}" 2>/dev/null
64        install -m 644 bug307259.js $$SRVD${MOZLIB}/defaults/pref
Note: See TracBrowser for help on using the repository browser.