Makefile (408B)
1 CXX = mpic++ 2 CXXFLAGS = -O1 -Wall -Wextra -Wpedantic -DOMPI_SKIP_MPICXX 3 .PHONY: clean 4 5 all: mpi_pi mpi_pi_reduction mpi_pi_reduction_inplace 6 7 mpi_pi: mpi_pi.cpp 8 $(CXX) $(CXXFLAGS) -o $@ $< 9 10 mpi_pi_reduction: mpi_pi_reduction.cpp 11 $(CXX) $(CXXFLAGS) -o $@ $< 12 13 mpi_pi_reduction_inplace: mpi_pi_reduction_inplace.cpp 14 $(CXX) $(CXXFLAGS) -o $@ $< 15 16 clean: 17 rm -f mpi_pi mpi_pi_reduction mpi_pi_reduction_inplace