#
# BEWARE: this Makefile was automatically generated by Adaptor
#         Adaptor will not overwrite any changes you make here,
#         however this Makefile may become out of date
# Target machine is Sun Solarix 2.x (SPMD prog)
#
# PHOME is Home Directory of Adaptor 
# DALIB is directory of its implementation for this machine
#
PHOME =  /home/adaptor
DALIB  = $(PHOME)/dalib/PVM3
#
# Standard commands
ADAPTOR = $(PHOME)/bin/fadapt
#
#  make_body from .adprc file
#
#
#
#  set compiler/linker and options
#
FC        = f77
OPT       = -O -e -f -w
#
LD        = f77
LD_FLAGS  = 
#
LD1       = $(FC)
LD1_FLAGS = 
#
PVM_ARCH = SUN4SOL2
PVM_ROOT = $(HOME)/pvm3
MP_LIB   = $(PVM_ROOT)/lib/$(PVM_ARCH)/libpvm3.a -lnsl -lsocket
#
XLIB  = $(DALIB)/../libadpx.a
NLIB  = $(DALIB)/dalib.a $(MP_LIB)
LIB1  = $(DALIB)/unilib.a
#
# Object Codes
#
CUBE_OBJ = cube.o
#
OBJ1 = node1.o
#
all: cube
	cp cube $(PVM_ROOT)/bin/$(PVM_ARCH)
#
cube: $(CUBE_OBJ) $(NLIB)
	${LD} -o cube $(CUBE_OBJ) $(NLIB) $(LD_FLAGS)
#
node1: $(OBJ1) $(LIB1)
	${LD1} -o node1 $(OBJ1) $(LIB1) $(LD1_FLAGS)
#
# So that we don't get the default rules
#
.SUFFIXES:
.SUFFIXES: .f .o
# Fortran compilation rule
.f.o:
	$(FC) $(OPT) -c $<
#
clean:
	-rm -f *.o node1 cube core *.trace $(NSRC) $(HSRC) zzz*.f
#
