ARCH = LINUX PROG = testmpi TESTOBJ = testmpi.o sub1.o sub2.o FC_SUN = mpif77 FC_ALPHA = f77 FC_NCUBE = ncc FC_LINUX = mpif77 FFLAGS_SUN = -fast -O4 -I/usr/local/include FFLAGS_ALPHA = -fast -O4 -I/usr/local/include FFLAGS_NCUBE = -O FFLAGS_LINUX = -O -I/usr/local/include LDFLAGS_SUN = -fast -O4 LDFLAGS_ALPHA = -fast -O4 LDFLAGS_NCUBE = -O -Ncomm 3000000 LDFLAGS_LINUX = -O LIB_SUN = -laztec -lmpich -lf77blas -latlas #LIB_SUN = -laztec -lmpich -xlic_lib=sunperf LIB_ALPHA = -laztec.mpi -lmpi -lrt -lpthread LIB_NCUBE = -laztec -lmpi -lblasn -lf -lm LIB_LINUX = -laztec.atlas -lf77blas -latlas -lmpi #LIB_LINUX = -laztec -lblas -lmpi F77 = $(FC_${ARCH}) FFLAGS = $(FFLAGS_${ARCH}) LIBS = $(LIB_${ARCH}) LDFLAGS = $(LDFLAGS_${ARCH}) INCLUDE = -I/usr/local/include -I/usr/local/mpi/include all: exe exe: $(TESTOBJ) ${F77} ${LDFLAGS} -o $(PROG)_${ARCH} ${TESTOBJ} ${LIBS} clean : rm -f *.o .f.o : ; $(F77) -c ${FFLAGS} $*.f .c.o : ; $(CC) -c $(CCFLAGS) $(CDEFS) $*.c