#! /bin/sh

CONFIG=${1-sun4.config}
DEPTH=${2-}
HERE=${3-}
MFLAGS=${4-}

# CONFIG = name of machine specific configuration file
# DEPTH = location of top level directory (see makefile.awk for desciption )
# HERE =  used to keep track of current directory
# MFLAGS = any standard 'make' arguements you may want to use 

( 	echo DEPTH = ${DEPTH} ;
	echo CONFIG = ${CONFIG} ;
	echo HERE = ${HERE} ;
	cat ${CONFIG} ${DEPTH}makefile.hdr makefile.src ${DEPTH}makefile.tlr
) | awk -f ${DEPTH}makedef.awk >Makefile

make config-subdirs DEPTH=../${DEPTH} CONFIG=../${CONFIG} HERE=${HERE} \
                MFLAGS=${MFLAGS}


