home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.freefriends.org
/
ftp.freefriends.org.tar
/
ftp.freefriends.org
/
arnold
/
Source
/
gwm-dist.tar.gz
/
gwm-dist.tar
/
README.build-gwm
< prev
next >
Wrap
Text File
|
1993-07-08
|
3KB
|
64 lines
Building gwm.
Follow Colas's instructions, but there are two traps to watch out for
besides what he mentions in there.
Firstly, with many X clients where there is a choice between an Imakefile
and a Makefile, I find it is usually best to just type "xmkmf" and "make".
(Especially if, as so often, the supplied Makefile is what imake generated
on the author's machine.) Watch out with gwm; this is not the case.
The Imakefile always gets things wrong; I have never managed to use
it successfully. The Makefile is a real, hand-written, customisable
Makefile. Modify it as needed for your system and compile without
fear; you won't regret it.
Secondly, when you _are_ modifying the Makefile, you need to do something
special if you have a MIPS compiler (say, actual MIPS RISC/os, or cc on
Ultrix RISC DECstations): you need to make sure that all the compiles
and the link are done with a "-G 0" flag. Don't ask me why; all I know
is, if you do that it works, and if you don't do that it won't link, and
gives obscure messages that might mean something if you understood the
MIPS architecture in intimate detail. If you are using other compilers
and a MIPS CPU, good luck (I've never tried that).
Easy build instructions, taking the above into account (Colas's README
is fairly involved):
[Note: These instructions are for rc/es. Users of other shells should
change to rc. 1/2 :) ]
here = `pwd
mach = <short name for this gwm build; say, "dec" or "sparc" or such>
cd /gwm/source/directory
zcat $here ^ /gwm-1.7i.tar.Z | tar xvpf -
cd gwm
patch <$here/PATCH
make 'DIR=' ^ $mach dir
cd ../ ^ $mach
sam Make. ^ $mach &
[Edit the make template as required: set XDIR, XLIBDIR if needed. Add
"-G 0" to FLAGS and LFLAGS if needed, see above. Set C_COMPILER if you
will. Set -DX11R4; don't worry, that means "R4 or later", not "R4 precisely".
(If you are pre-R4, good luck, though you don't deserve it.) You can
probably leave DEFINES set the way it comes out of the box; in particular,
Colas's comments about "decstations" either relate to versions of
Ultrix prior to 4.1 or are incorrect or refer to VAX DECstations --
what he suggests is not needed on RISC Ultrix 4.1 or above.
Set INSTALL_GWM, like to /usr/local/bin, and INSTALL_DIR, like
to /usr/local/lib/gwm. Best leave INSTALL_PATH as is.]
make
make install
cd ../gwm
[Install gwm.man by hand as appropriate for your local manual entries.
If you want to build the (rather large) reference manual, "cd doc"
and go for it; you need latex.]
John Mackin <john@civil.su.oz.au>, or <john@physiol.su.oz.au>
8 July 1993