3
XCOMM $XFree86: xc/config/util/xmkmf.cpp,v 1.4 2001/01/17 16:39:02 dawes Exp $
5
XCOMM make a Makefile from an Imakefile from inside or outside the sources
7
XCOMM $Xorg: xmkmf.cpp,v 1.3 2000/08/17 19:41:53 cpqbld Exp $
9
usage="usage: $0 [-a] [top_of_sources_pathname [current_directory]]"
11
configdirspec=CONFIGDIRSPEC
21
imake_defines="$imake_defines $1"
37
2) topdir=$1 curdir=$2 ;;
38
*) echo "$usage" 1>&2; exit 1 ;;
42
-*) echo "$usage" 1>&2; exit 1 ;;
45
if [ -f Makefile ]; then
46
echo mv -f Makefile Makefile.bak
47
mv -f Makefile Makefile.bak
50
if [ "$topdir" = "" ]; then
51
args="-DUseInstalled "$configdirspec
53
args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir"
56
echo imake $imake_defines $args
59
imake $imake_defines $args &&
60
echo "make Makefiles" &&
62
echo "make includes" &&
68
imake $imake_defines $args