1 | # $Id: Makefile.athena,v 1.12 2005-09-14 20:05:32 rbasch Exp $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | MOZLIB=/usr/athena/lib/mozilla |
---|
5 | ATHINCDIR=/usr/athena/include |
---|
6 | NSSINCDIR=${ATHINCDIR}/mozilla/nss |
---|
7 | ATHSHAREDIR=/usr/athena/share |
---|
8 | ACLOCALDIR=${ATHSHAREDIR}/aclocal |
---|
9 | common_options=--enable-crypto --disable-debug --disable-tests --enable-xft \ |
---|
10 | --enable-default-toolkit=gtk2 --with-gssapi=/usr/athena |
---|
11 | |
---|
12 | dist: |
---|
13 | cp "$$CONFIG_SITE" config.site.athena |
---|
14 | |
---|
15 | prepare: |
---|
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 | |
---|
36 | clean: |
---|
37 | ${MAKE} clean |
---|
38 | |
---|
39 | all: |
---|
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 | |
---|
49 | install: |
---|
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 |
---|