# Makefile tail for building ipmosflm on any UNIX box...
# This must be "inc"'d by a header Makefile

FCOMP = $(FC) $(FFLAGS) -c
CCOMP = $(CC) $(CFLAGS) -c
FLINK = $(FC) $(FLDFLAGS)

DPSLIB = ${DPS}/lib

OBJS   = mosflm_all_ip_inc.o pck.o chelp.o
LOCALLIBS   = ${DPSLIB}/DPSLIB.a ../cbf/lib/libcbf.a

.SUFFIXES: .for
.for.o:
	${FCOMP} -o $@ $<

.c.o:
	${CCOMP} -o $@ $<

ipmosflm:	${OBJS}
		${FLINK} ${OBJS} ${LOCALLIBS} ${LIBS} \
                        -o ../bin/ipmosflm

clean:
	rm -f ${OBJS}

check:
# This only checks the syntax of this Makefile!
	cat -v -t -e Makefile|more

