# file: Makefile		G. Moody	23 August 1995
#				Last revised:	15 April 1997
# UNIX 'make' description file for compiling the Fortran example program

# This file is used with the UNIX `make' command to compile the example
# program in this directory.  Since this program is intended for instruction
# rather than `production' use, this `makefile' does not include a procedure
# for installing it.  To compile the example, just type `make' (from within
# this directory);  the executable file will be left in this directory.  Type
# `make clean' to remove it.

example:	example.f dbf.c
	f77 -o example example.f dbf.c -ldb

# If you have `f2c', but not `f77', use `make example-alt' instead of `make'.
example-alt:	example.f dbf.c
	f2c example.f
	cc -o example example.c dbf.c -lf2c -lm -ldb

clean:
	rm -f example example.c *.o *~
