I have a C MPI program that runs well but my challenge is to compile it with a Makefile. The C file is named frequencyMPI.c and I have drafted the Make file named makefile.frequencyMPI. The makefile successfully compiled on Linux terminal but I don't know how to run it. My problem is how to run it and whether it is correct. The content of the Makefile is given below:
all: program
program: frequencyMPI.o
mpicc frequencyMPI.o -o program
frequencyMPI.o: frequencyMPI.c
mpicc -c frequencyMPI.c -o frequencyMPI.o
clean:
rm -f frequencyMPI.o program core *~