# makefile for Flow
# Companion to Floppy - J.J.Bunn/CERN

.SUFFIXES	: 	.for

F77 = f77
FFLAGS = -c
FFLAGSO = -w

OBJECTS = unixflow.o caschg.o chtbox.o chtlin.o extern.o grinit.o \
          iniarr.o procht.o procom.o prodes.o proqry.o protre.o \
          proarg.o rdflop.o search.o tabent.o lenocc.o gtx.o touppr.o
INCLUDES = *.h

.for.o:	
	$(F77) $(FFLAGS) $<


# If the compiler only accepts .f files, use the following three lines
# instead of the suffix rule above
#.for.o:
#       cp $< $*.f
#       $(F77) $(FFLAGS) $*.f

flow:	$(OBJECTS) $(INCLUDES)
	$(F77) -o $@ $(FFLAGSO) $(OBJECTS)

 
caschg.o:	caschg.for params.h
chtbox.o:	chtbox.for lunits.h
chtlin.o:	chtlin.for lunits.h
extern.o:	extern.for params.h tables.h lunits.h
grinit.o:	grinit.for jobcom.h lunits.h
gtx.o:		gtx.for lunits.h
iniarr.o:	iniarr.for params.h tables.h
proarg.o:       proarg.for params.h tables.h lunits.h ignore.h trecom.h
procht.o:	procht.for jobcom.h lunits.h trecom.h tables.h hashnm.h
procom.o:	procom.for jobcom.h lunits.h trecom.h tables.h hashnm.h
prodes.o:	prodes.for jobcom.h lunits.h
proqry.o:	proqry.for params.h tables.h floppy.h lunits.h trecom.h
protre.o:	protre.for params.h tables.h ignore.h lunits.h trecom.h
rdflop.o:	rdflop.for params.h lunits.h jobcom.h floppy.h
search.o:	search.for params.h tables.h
tabent.o:	tabent.for params.h floppy.h lunits.h tables.h
lenocc.o:	lenocc.for
unixflow.o:	unixflow.for lunits.h params.h jobcom.h ignore.h trecom.h
touppr.o:       touppr.for

