COMPILER = mpicc CFLAGS = -Wall EXES = treeGlobalSum butterflyGlobalSum getMatrix mkIdentityMatrix mkRandomMatrix mpimm abbreviated-mpimm mpi_memerror all: ${EXES} treeGlobalSum: treeGlobalSum.c ${COMPILER} ${CFLAGS} treeGlobalSum.c -o treeGlobalSum butterflyGlobalSum: butterflyGlobalSum.c ${COMPILER} ${CFLAGS} butterflyGlobalSum.c -o butterflyGlobalSum getMatrix: getMatrix.c matrix.o gcc ${CFLAGS} getMatrix.c matrix.o -o getMatrix mkIdentityMatrix: mkIdentityMatrix.c matrix.o gcc ${CFLAGS} mkIdentityMatrix.c matrix.o -o mkIdentityMatrix mkRandomMatrix: mkRandomMatrix.c matrix.o gcc ${CFLAGS} mkRandomMatrix.c matrix.o -o mkRandomMatrix matrix.o: matrix.c ${COMPILER} ${CFLAGS} -c matrix.c mm.o: mm.c ${COMPILER} ${CFLAGS} -c mm.c bourbaki: ${EXES} cp -f ${EXES} /projects/bourbaki${HOME} mpimm: mpimm.c matrix.o mm.o ${COMPILER} ${CFLAGS} mpimm.c matrix.o mm.o -o mpimm abbreviated-mpimm: abbreviated-mpimm.c matrix.o mm.o ${COMPILER} ${CFLAGS} abbreviated-mpimm.c matrix.o mm.o -o abbreviated-mpimm mpi_memerror: mpi_memerror.c $(COMPILER) -g -Wall mpi_memerror.c -o mpi_memerror %.o: %.c %.h makefile ${COMPILER} ${CFLAGS} $< -c clean: rm -f *.o ${EXES}