CC=gcc
OPTDBG=-O3 -fomit-frame-pointer
CFLAGS=-Wall -ansi -pedantic $(OPTDBG)
RM=rm -f

# Use these for g77
# FC=g77
# FFLAGS=-Wall -pedantic -fno-f77 -Wno-uninitialized $(OPTDBG)

# Use these for gfortran
FC=gfortran
FFLAGS=
CPPFLAGS=-DGFORTRAN4

UTILSRC  = iunixc.c iunix.f
ICOOLOBJ = icool.o idiag.o ifld.o iint.o imath.o iunix.o iunixc.o

.SUFFIXES: .for

.for.o:
	$(FC) $(FFLAGS) -c $<

icool : $(ICOOLOBJ) icommon.inc
	$(FC) $(FFLAGS) $(ICOOLOBJ) $(LDFLAGS) $(LIBS) -o $@

clean :
	$(RM) *.o icool *~
