From xemacs-m  Tue Sep  2 05:13:15 1997
Received: from frege.math.ethz.ch (root@frege-d-math-north-g-west.math.ethz.ch [129.132.145.3])
	by xemacs.org (8.8.5/8.8.5) with SMTP id FAA21901
	for <xemacs-beta@xemacs.org>; Tue, 2 Sep 1997 05:13:09 -0500 (CDT)
Received: from midget (vroonhof@midget [129.132.145.4]) by frege.math.ethz.ch (8.6.12/Main-STAT-mailer) with ESMTP id MAA08455 for <xemacs-beta@xemacs.org>; Tue, 2 Sep 1997 12:13:04 +0200
Received: (vroonhof@localhost) by midget (SMI-8.6/D-MATH-client) id MAA04658; Tue, 2 Sep 1997 12:13:03 +0200
To: xemacs-beta@xemacs.org
Subject: Re: [Q] The best way to build/install XEmacs for different binaries?
References: <199709020743.KAA24937@merlin.ornet.co.il>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Jan Vroonhof <vroonhof@math.ethz.ch>
Date: 02 Sep 1997 12:13:03 +0200
In-Reply-To: Ricardo Marek's message of Tue, 2 Sep 1997 10:43:03 +0300 (IDT)
Message-ID: <bylo1gxbv4.fsf@midget.math.ethz.ch>
Lines: 66
X-Mailer: Gnus v5.4.55/XEmacs 19.15

Ricardo Marek <ricky@ornet.co.il> writes:

> Assuming that I have already compiled/installed the sources for
> SunOS:

BEEEEEEEEEEEEEEEP! Inefficient assumption detected.

If you want to compile for multiple architectures you should use the
SRC dir option. It makes life much much easier. Even if it involves a
recompile of your sunos binaires.

Go to your fastest machine:

make distclean (cleanout old stuff)
mkdir bin.archtype1
cd bin.archtype1
../configure --all-the-right-options
make (wait till the buildprocess starts dumping, such that the dump
      elc's have been compiled)
cd ..
mkdir bin.archtype2
cd bin.archtype2
../configure --all-the-right-options
make arch-dep

cd ..
mkdir bin.archtype3
cd bin.archtype3
../configure --all-the-right-options
make arch-dep

etc..

After testing

cd  bin.archtype1
make install

cd  ../bin.archtype2
make install-arch-dep

cd  ../bin.archtype1
make install-arch-dep

> Q1) What are the correct way to re-compile the sources for Solaris?

Use source dirs...

> Q2) Installing using a common prefix: 
>     - Does exist some makefile target that can be used only to
>       install the OS dependent stuff? (Remember, the common stuff is
>       already installed...)

make arch-dep ; make install-arch-dep

>     - What about common stuff.. Is influenced by the configure
>       differences? (SunOS without CDE, Solaris without NAS, etc.)

Not really. There are propably some differences if you compile one
with mule and one without it. As far as I know all .elc are compiled
always (except for mule).

There is a danger this may change because of compile time featurep
checking becoming more and more prevalent.

Jan

