Makefile 910 Bytes
Newer Older
gotm's avatar
gotm committed
1 2 3 4 5 6 7 8
#
# Makefile to build the main getm library - libmgetm.a
#

include ../Rules.make

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

9
SRC	= main.F90 initialise.F90 integration.F90 cleanup.F90 \
10
   	  compilation_options.F90 print_version.F90
gotm's avatar
gotm committed
11 12

MOD   = \
13
${LIB}(register_all_variables.o) \
gotm's avatar
gotm committed
14 15 16 17
${LIB}(integration.o)		\
${LIB}(initialise.o)

OBJ   = \
18
${LIB}(cleanup.o) \
19
${LIB}(compilation_options.o) \
20
${LIB}(print_version.o)
gotm's avatar
gotm committed
21 22 23 24 25 26 27

all: modules objects

modules: $(MOD)

objects: $(OBJ)

kbk's avatar
kbk committed
28
doc: $(SRC)
gotm's avatar
gotm committed
29
	$(PROTEX) $(SRC) > $(DOCDIR)/getm.tex
kbk's avatar
kbk committed
30
	touch doc
gotm's avatar
gotm committed
31 32

clean:
33
	$(RM) ${LIB} $(MODDIR)/{register_all_variables,integration,initialise}.{m.mod}
gotm's avatar
gotm committed
34 35

realclean: clean
kbk's avatar
kbk committed
36
	$(RM) *.o doc
gotm's avatar
gotm committed
37 38

distclean: realclean
39
	$(RM) work.pc *.d
gotm's avatar
gotm committed
40 41 42 43

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