#
# Makefile to build the ICE specific library - libice.a
#

include ../Rules.make

INCS	=
LIB	= $(LIBDIR)/libice${buildtype}.a

MODSRC	= ice.F90 glacial_ice.F90

LIBSRC	= 

SRC	= $(MODSRC) $(LIBSRC)

MOD   = \
${LIB}(parameters_ice.o)	\
${LIB}(glacial_ice.o)	\
${LIB}(ice.o)

OBJ   =	\
${LIB}(fluxes_under_ice.o)


all: modules objects

modules: $(MOD)

objects: $(OBJ)

doc: $(SRC)
	$(PROTEX) $(SRC) > $(DOCDIR)/ice.tex
	touch doc

clean:
	$(RM) $(LIB) $(MODDIR)/{ice,glacial_ice}.{m,mod}

realclean: clean
	$(RM) *.o  doc

distclean: realclean

#-----------------------------------------------------------------------
# Copyright (C) 2013 - Hans Burchard and Karsten Bolding (BBH)         !
#-----------------------------------------------------------------------
