
# Note - important blank line on top of file - prevents csh problems

# create all of the S functions used by QPE
# use $M/qpe.list to determine which are internal, which external
# use $M/stop.list to determine things that shouldn't be made for this version

cd $F

# create (only GRZ) support libraries first
for i in graphlib
do
	cd $i
	MAKE || exit 1
done

# make internal functions
for i in `cat $M/qpe.list`
do
	cd $F/$i
	MAKE internal || exit 1
done


cd $M

# loop through all directories on the list making the internal routines
# and collecting the list of object file names
# for use when loading QPE

(
	for i in `cat $M/qpe.list`
	do
		cd $F/$i
		echo DIRECTORY $i
		$C/MAKE internal || exit 1
	done
) 2>&1 |
awk '
/DIRECTORY/ { dir = $2 }
/INTERNALS/ { for(i=2; i<=NF; i++) print(dir "/" $i) } ' |
sort -u |
sed '/macro.dotmp/d' >$M/load.qpe	# macro/dotmp.o replaced by qpe/dotmp.o
