# Get proper include files/libraries from motif1.2 and x11r5 lockers
attach -q wcl motif1.2 x11r5

# Be sure to get x11r5 xmkmf/imake
if ("$PATH" !~ "/mit/x11/${bindir}:*") then
	setenv PATH /mit/x11/${bindir}:$PATH
endif

# On rsaix, use gcc
if ("$hosttype" == "rsaix") then
	add cygnus
endif

# Make build tree
set newdir=/mit/wcl/build/`machtype`
mkdirhier $newdir
/usr/athena/etc/synctree -q -s /mit/wcl/src -d $newdir

# Build
pushd $newdir
if ("$hosttype" == "sun4") then
	extend PATH /usr/gcc/lib
	extend PATH /usr/gcc/bin
endif
xmkmf
(make World && date) |& tee World.log
