#!/bin/sh # $XFree86: xc/programs/Xserver/hw/xfree86/LinkKit/mkmf.cpp,v 3.1 1995/07/12 15:33:11 dawes Exp $ # # Build Makefile for LinkKit # if [ ! -x ./mkmf ]; then echo "mkmf cannot be executed from this directory" exit 1 fi if [ -d ./config ]; then CONFIG_DIR_SPEC=-I./config/cf IMAKE_COMMAND=./config/imake/imake elif [ x"$XWINHOME" != x ]; then CONFIG_DIR_SPEC=-I$XWINHOME/lib/X11/config IMAKE_COMMAND="imake -DUseInstalled" else CONFIG_DIR_SPEC=-I/usr/X11R6/lib/X11/config IMAKE_COMMAND="imake -DUseInstalled" fi if [ -f Makefile ]; then (set -x rm -f Makefile.bak mv Makefile Makefile.bak ) fi rm -f Makefile (set -x $IMAKE_COMMAND -I. $CONFIG_DIR_SPEC -DXF86LinkKit=1 -DTOPDIR=. -DCURDIR=. make Makefiles # make clean make depend )