############################################################
#  Note that this 'Makefile' assumes that the following
#  environment variables are set:
#
#     F77         ->  name of f77 compiler
#     F77FLAGS    ->  generic f77 flags
#     F77CFLAGS   ->  f77 flags for compilation phase
#     F77LFLAGS   ->  f77 flags for load phase
############################################################
.IGNORE:

F77_COMPILE  = $(F77) $(F77FLAGS) $(F77CFLAGS)
F77_LOAD     = $(F77) $(F77FLAGS) $(F77LFLAGS)

.f.o:
	$(F77_COMPILE) $*.f

EXECUTABLES = fdemo1 

all: $(EXECUTABLES)

fdemo1: fdemo1.o
	$(F77_LOAD) fdemo1.o -o fdemo1

clean:
	rm *.o
	rm $(EXECUTABLES)