The Queen's University of Belfast
Parallel Computer Centre

[Next] [Previous] [Top]

Makefiles


Makefiles

EXAMPLE Makefile.aimk

PVMLIB = $(PVM_ROOT)/lib/$(PVM_ARCH)/libpvm3.a

SDIR = ..

BDIR = $(HOME)/pvm3/bin

XDIR = $(BDIR)/$(PVM_ARCH)

F77 = f77

FFLAGS = -g

FLIBS = $(PVM_ROOT)/lib/$(PVM_ARCH)/libfpvm3.a

default: fmaster fslave

$(XDIR):

- mkdir $(BDIR)

- mkdir $(XDIR)

clean:

rm -f *.o fmaster fslave testall

fmaster: $(SDIR)/master1.f $(XDIR)

$(F77) $(FFLAGS) -o master1 $(SDIR)/master1.f $(FLIBS) $(LIBS)

mv master1 $(XDIR)

fslave: $(SDIR)/slave1.f $(XDIR)

$(F77) $(FFLAGS) -o slave1 $(SDIR)/slave1.f $(FLIBS) $(LIBS)

mv slave1 $(XDIR)

testall: $(SDIR)/testall.f $(XDIR)

$(F77) $(FFLAGS) -o testall $(SDIR)/testall.f $(FLIBS) $(LIBS)

mv testall $(XDIR)

Practical


[Next] [Previous] [Top]
All documents are the responsibility of, and copyright, © their authors and do not represent the views of The Parallel Computer Centre, nor of The Queen's University of Belfast.
Maintained by Alan Rea, email A.Rea@qub.ac.uk
Generated with CERN WebMaker