############################################################## # makefile for Lab 1 # Description: # # "make" will compile both programs # To run them type "make run1" for hello1 # "make run2" for hello2 # # Note, these run's will run with 4 nodes. ############################################################## CC = mpicc all: hello1 hello2 hello1: hello1.c hello1.o mpicc -o hello1 hello1.o hello2: hello2.c hello2.o mpicc -o hello2 hello2.o ### Runs the program... run1: make hello1 mpirun -np 4 hello1 run2: make hello2 mpirun -np 4 -machinefile Machines hello2 ### Removes all executables and object code clean: rm -f *.o hello1 hello2