LIBS = -L$(PVM_ROOT)/lib/$(PVM_ARCH) -I$(PVM_ROOT)/include -lpvm3 GLIBS = ${LIBS} -lgpvm3 all: hello hello_other hello_combined hello_combined_swarm hello_combined_hosts hello_clean neighbours-1 neighbours-2 murderer hello: hello.c gcc -Wall hello.c $(LIBS) -o hello hello_other: hello_other.c gcc -Wall hello_other.c $(LIBS) -o hello_other hello_combined: hello_combined.c gcc -Wall hello_combined.c $(LIBS) -o hello_combined hello_combined_swarm: hello_combined_swarm.c gcc -Wall hello_combined_swarm.c $(LIBS) -o hello_combined_swarm hello_combined_hosts: hello_combined_hosts.c gcc -Wall hello_combined_hosts.c $(LIBS) -o hello_combined_hosts hello_clean: hello_clean.c pvm_lib.o gcc -Wall hello_clean.c $(LIBS) pvm_lib.o -o hello_clean neighbours-1: neighbours-1.c pvm_lib.o gcc -Wall neighbours-1.c $(LIBS) pvm_lib.o -o neighbours-1 neighbours-2: neighbours-2.c gcc -Wall neighbours-2.c $(GLIBS) pvm_lib.o -o neighbours-2 murderer: murderer.c pvm_lib.o gcc -Wall murderer.c $(GLIBS) pvm_lib.o -o murderer pvm_lib.o: pvm_lib.c pvm_lib.h gcc -Wall -c $(LIBS) pvm_lib.c host: cp -f hello ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f hello_other ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f hello_combined ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f hello_combined_swarm ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f hello_combined_hosts ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f hello_clean ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f neighbours-1 ${HOME}/pvm3/bin/$(PVM_ARCH)/ cp -f neighbours-2 ${HOME}/pvm3/bin/$(PVM_ARCH)/ clean: rm -f hello hello_other hello_combined hello_combined_swarm hello_combined_hosts hello_clean neighbours-1 neighbours-2 murderer pvm_lib.o