CC=mpicc
F77=mpif77

SRC= hello.c ex1.c ex2.c\
     hello.f ex1.f ex2.f 

ALL= hello_c ex1_c ex2_c\
     hello_f ex1_f ex2_f 

all: $(ALL)

tgz: $(ALL)
	tar czf examples-anf-mpi.tgz $(SRC) Makefile

%_c: %.c
	$(CC) $< -o $@ -lm

%_f: %.f
	$(F77) $< -o $@

clean: 
	/bin/rm -f $(ALL)

