#------------------------------------------------------------------------------
# Generic makefile for PCG for the FORTRAN 77 version on the Intel iPSC860.

#
# This is the location of directory containing the include file "fcube.h".
# Change the value to match your system.
#
LIBDIR = /usr/ipsc/include
FC = if77
CC = icc

all:
	$(FC) -I $(LIBDIR) -c *.f
	$(CC)  -c *.c
	ar q libpcg.a *.o
	ranlib libpcg.a
	rm *.o

real:
	$(FC) -I $(LIBDIR) -c s*.f i*.f x*.f
	$(CC) -c s*.c x*.c
	ar q libpcg.a *.o
	ranlib libpcg.a
	rm *.o

double:
	$(FC) -I $(LIBDIR) -c d*.f i*.f x*.f
	$(CC) -c d*.c x*.c
	ar q libpcg.a *.o
	ranlib libpcg.a
	rm *.o

complex:
	$(FC) -I $(LIBDIR) -c c*.f i*.f x*.f
	$(CC) -c c*.c x*.c
	ar q libpcg.a *.o
	ranlib libpcg.a
	rm *.o

doublecomplex:
	$(FC) -I $(LIBDIR) -c z*.f i*.f x*.f
	$(CC) -c z*.c x*.c
	ar q libpcg.a *.o
	ranlib libpcg.a
	rm *.o

#------------------------------------------------------------------------------
