SHELL = /bin/sh
include Make.inc
mydir = ${PWD}

IRunName:
	- rm -f fname.o cname.o xfcnam config.tmp
	$(MAKE) fname.o cname.o
	$(FLINK) $(FLFLAGS) -o ./xfcnam fname.o cname.o
	$(MAKE) atlas_run atldir=$(mydir) exe=xfcnam redir=config.tmp
	- cat config.tmp
	- rm -f fname.o cname.o xfcnam

IRunInt:
	- rm -f ff2cint.o cf2cint.o xfcint
	$(MAKE) ff2cint.o cf2cint.o
	$(FLINK) $(FLFLAGS) -o ./xfcint ff2cint.o cf2cint.o
	$(MAKE) atlas_run atldir=$(mydir) exe=xfcint redir=config.tmp
	cat config.tmp
	- rm -f ff2cint.o cf2cint.o xfcint
	
IRunStr:
	- rm -f ff2cstr.o cf2cstr.o xfcstr
	$(MAKE) ff2cstr.o cf2cstr.o
	$(FLINK) $(FLFLAGS) -o ./xfcstr ff2cstr.o cf2cstr.o
	$(MAKE) atlas_run atldir=$(mydir) exe=xfcstr redir=config.tmp
	cat config.tmp
	- rm -f ff2cstr.o cf2cstr.o xfcstr

IRunSol:
	rm -f SolErr.o xsoltst
	$(CC) $(CCFLAGS) -o xsoltst SolErr.c
	$(MAKE) atlas_run atldir=$(mydir) exe=xsoltst redir=config.tmp
	- rm -f SolErr.o xsoltst
IGetSunVers:
	rm -f config.tmp
	- cc -V > config.tmp 2>&1

IBlasLink :
	$(F77) $(F77FLAGS) -o xtst ./blaslink.f $(BLASlib)
	- rm -f xtst blaslink.o

cTryComp :
	$(COMP) $(FLAGS) -c ./tst.c
	- rm -f tst.o
fTryComp :
	$(COMP) $(FLAGS) -c ./tst.f
	- rm -f tst.o
	
.c.o :
	$(CC) -c $(CCFLAGS) $<
.f.o :
	$(F77) -c $(F77FLAGS) $<
