# # Makefile.aimk for PVM programs hey.c and hey_you.c # # Set PVM_ROOT to the path where PVM includes and libraries are installed. # Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.) # Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, etc.) # otherwise leave ARCHLIB blink # # PVM_ARCH and ARCHLIB are set for you if you use "$PVM_ROOT/lib/aimk" # instead of "make". # # aimk also creates a $PVM_ARCH directory below this one and will cd to it # before invoking make - this allows building in parallel on different arches. # SDIR = .. BDIR = $(HOME)/pvm3/bin XDIR = $(BDIR)/$(PVM_ARCH) CC = acc #CC = gcc -Wall # useful when debugging OPTIONS = -O CFLAGS = $(OPTIONS) -I$(PVM_ROOT)/include $(ARCHCFLAGS) LIBS = -lpvm3 $(ARCHLIB) -lm GLIBS = -lgpvm3 FORT = `case "$(FC)@$(F77)" in *@) echo $(FC) ;; @*) echo $(F77) ;; *) echo f77;; esac` FFLAGS = -g $(ARCHFFLAGS) FLIBS = -lfpvm3 LFLAGS = $(LOPT) -L$(PVM_ROOT)/lib/$(PVM_ARCH) default: hey hey_you clean: rm -f *.o $(XDIR): - mkdir $(XDIR) hey: $(SDIR)/hey.c $(XDIR) $(CC) $(CFLAGS) -o $@ $(SDIR)/hey.c $(LFLAGS) $(LIBS) mv $@ $(XDIR) hey_you: $(SDIR)/hey_you.c $(XDIR) $(CC) $(CFLAGS) -o $@ $(SDIR)/hey_you.c $(LFLAGS) $(LIBS) mv $@ $(XDIR)