#**********************************************************************
#
#     Copyright (C) 1992  Roland W. Freund and Noel M. Nachtigal
#     All rights reserved.
#
#**********************************************************************
#
#  Makefile for the coupled two-term QMR (no look-ahead) subdirectory.
#

#
#  Files in this directory:
#
OBJ = cucpx.o ducpx.o sucpx.o zucpx.o
SRC = d2s.sed z2c.sed z2d.sed cucpx.doc ducpx.doc sucpx.doc \
cucpx.src ducpx.src sucpx.src cucpxcof.src ducpxcof.src sucpxcof.src \
cucpx.f ducpx.f sucpx.f zucpx.f

#
#  Makefile include files.
#
include ../../header.mak
include ../../incl/local.mak

#
#  This is the local help target.
#
help::
	@echo "   make ucpx    - coupled two-term QMR (no look-ahead) routines"

#
#  Dependencies for files in this directory.
#
cucpx.doc:	z2c.sed zucpx.doc
	@echo Making $@
	@sed -f z2c.sed zucpx.doc > $@
ducpx.doc:	z2d.sed zucpx.doc
	@echo Making $@
	@sed -f z2d.sed zucpx.doc > $@
sucpx.doc:	ducpx.doc d2s.sed
	@echo Making $@
	@sed -f d2s.sed ducpx.doc > $@
cucpx.src:	z2c.sed cucpx.doc zucpx.src
	@echo Making $@
	@sed -f z2c.sed zucpx.src > $@
ducpx.src:	z2d.sed ducpx.doc zucpx.src
	@echo Making $@
	@sed -f z2d.sed zucpx.src > $@
sucpx.src:	d2s.sed ducpx.src sucpx.doc
	@echo Making $@
	@sed -f d2s.sed ducpx.src > $@
cucpxcof.src:	z2c.sed zucpxcof.src
	@echo Making $@
	@sed -f z2c.sed zucpxcof.src > $@
ducpxcof.src:	z2d.sed zucpxcof.src
	@echo Making $@
	@sed -f z2d.sed zucpxcof.src > $@
sucpxcof.src:	d2s.sed ducpxcof.src
	@echo Making $@
	@sed -f d2s.sed ducpxcof.src > $@
cucpx.f:	cucpx.src cucpxcof.src
ducpx.f:	ducpx.src ducpxcof.src
sucpx.f:	sucpx.src sucpxcof.src
zucpx.f:	zucpx.src zucpxcof.src
d2s.sed:	../../incl/d2s.sed Makefile
	@echo Making conversion script $@
	@echo 's/ducpx/sucpx/g'  > $@
	@echo 's/DUCPX/SUCPX/g' >> $@
	@cat ../../incl/d2s.sed >> $@
z2c.sed:	../../incl/z2c.sed Makefile
	@echo Making conversion script $@
	@echo 's/zucpx/cucpx/g'  > $@
	@echo 's/ZUCPX/CUCPX/g' >> $@
	@cat ../../incl/z2c.sed >> $@
z2d.sed:	../../incl/z2d.sed Makefile
	@echo Making conversion script $@
	@echo '/DOUBLE COMPLEX ZONE/d'	 > $@
	@echo '/PARAMETER (ZONE/d'	>> $@
	@echo 's/zucpx/ducpx/g'		>> $@
	@echo 's/ZUCPX/DUCPX/g'		>> $@
	@cat ../../incl/z2d.sed		>> $@

#
#  Algorithm target.
#
ucpx:	$(OBJ)
	@true
