# 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 blank # # 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 BDIR = $(SDIR) XDIR = $(BDIR)/$(PVM_ARCH) OPTIONS = -O CFLAGS = $(OPTIONS) -I/usr/include -I$(PVM_ROOT)/include $(ARCHCFLAGS) LIBS = -lpvm3 $(ARCHLIB) GLIBS = -lgpvm3 #F77 = f77 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) CPROGS = commtest_slave FPROGS = default: commtest.mexsg commtest_slave all: c-all f-all c-all: $(CPROGS) f-all: $(FPROGS) clean: rm -f *.o $(CPROGS) $(FPROGS) $(XDIR): - mkdir $(BDIR) - mkdir $(XDIR) commtest.mexsg: $(SDIR)/commtest.c $(SDIR)/commtest.h $(XDIR) mex -V4 $(CFLAGS) $(SDIR)/commtest.c $(LFLAGS) $(LIBS) commtest_slave: $(SDIR)/commtest_slave.c $(SDIR)/commtest.h $(XDIR) $(CC) $(CFLAGS) -o $@ $(SDIR)/commtest_slave.c $(LFLAGS) $(LIBS) mv $@ $(PVM_ROOT)/bin/$(PVM_ARCH)