# Makefile for bruce 2.8

# Fortran compiler & flags - comment in the
# appropriate part
#
# Alpha (DEC FORTRAN)
#
FC = f77
FFLAGS = -O4 -warn noinformational
RANLIB = ranlib
#
# Linux (GNU g77)
#
#FC = g77
#FFLAGS = -O3
#RANLIB = ranlib
#

# Subdirectories

SUBDIRS = lsdlib bruce

# Rules

all:
	for i in $(SUBDIRS); do \
          if (cd ./$$i; \
	         $(MAKE)  FC="${FC}" FFLAGS="${FFLAGS}" \
                 RANLIB="$(RANLIB)" all) \
	    then true; else exit 1; fi; \
        done

clean:
	for i in $(SUBDIRS); do \
          if (cd ./$$i; \
	         $(MAKE) clean) \
	    then true; else exit 1; fi; \
        done








