Makefile 1.31 KB
Newer Older
dumoda01's avatar
dumoda01 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
#$Id: Makefile,v 1.7 2005-07-06 14:17:31 kbk Exp $
#
# Makefile to build the the Dynamics library - libmeanflow.a
#

include ../Rules.make

LIB	= $(LIBDIR)/libmeanflow$(buildtype).a

DOCSRC	= \
meanflow.F90		\
updategrid.F90		\
coriolis.F90		\
uequation.F90		\
vequation.F90		\
extpressure.F90		\
intpressure.F90		\
friction.F90		\
temperature.F90		\
salinity.F90		\
nitrate.F90		\
ammonium.F90		\
buoyancy.F90		\
shear.F90	\
stratification.F90	\
convectiveadjustment.F90 

MOD	= \
${LIB}(meanflow.o)

OBJ   = \
${LIB}(updategrid.o)		\
${LIB}(coriolis.o)		\
${LIB}(uequation.o)		\
${LIB}(vequation.o)		\
${LIB}(extpressure.o)		\
${LIB}(intpressure.o)		\
${LIB}(friction.o)		\
${LIB}(temperature.o)		\
${LIB}(salinity.o)		\
${LIB}(nitrate.o)		\
${LIB}(ammonium.o)		\
${LIB}(stratification.o)	\
${LIB}(shear.o)	\
${LIB}(buoyancy.o)		\
${LIB}(convectiveadjustment.o)	


all: $(MOD) $(OBJ)
	$(MOVE_MODULES_COMMAND)

$(OBJ): $(MOD)

doc:    $(DOCSRC)
	$(PROTEX) $(DOCSRC) > ../../doc/meanflow.tex 
	touch doc

clean:
	$(RM) -f ${LIB} $(MODDIR)/meanflow.{m,mod} doc

realclean: clean
	$(RM) -f *.o *~

distclean: realclean

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