#!/bin/csh

f77 -o asd2asc asd2asc.f

cat har_main.f har_libd.f har_libm.f har_libo.f har_libs.f>har_full.tmp
mkdir tmpcmpl
chdir tmpcmpl
cp ../*.inc .
cp ../har_libt.c .
cc -c har_libt.c
fsplit ../har_full.tmp
rm ../har_full.tmp
f77 -c *.f -O4
f77 *.o -o ../harness
rm *
chdir ..
rmdir tmpcmpl

if (-x harness) then
	if (-x asd2asc) then
		echo .
		echo . Executables "harness" and "asd2asc" created successfully.
		echo .
	else
		echo .
		echo . Unable to create executable "asd2asc".
		echo .
	endif
else
	echo .
	echo . Unable to create executable "harness".
	echo .
endif
