2 |
|
|
3 |
# This makefile builds LMDZE. |
# This makefile builds LMDZE. |
4 |
|
|
|
# Suffixes are: |
|
|
# "f90" for free format, no preprocessing |
|
|
# "f" for fixed format, no preprocessing |
|
|
|
|
5 |
# 1. Source files |
# 1. Source files |
6 |
|
|
7 |
src_root = . |
src_root = . |
30 |
# 4. Rules |
# 4. Rules |
31 |
|
|
32 |
SHELL = bash |
SHELL = bash |
|
COMPILE.f90 = $(FC) $(F90FLAGS) $(TARGET_ARCH) -c |
|
|
|
|
|
%.o: %.f90 |
|
|
$(COMPILE.f90) $(OUTPUT_OPTION) $< |
|
|
|
|
33 |
.DELETE_ON_ERROR: |
.DELETE_ON_ERROR: |
34 |
.PHONY: all clean clobber depend |
.PHONY: all clean clobber depend |
35 |
all: ${execut} log |
all: ${execut} log |
41 |
gcm: ${obj_gcm} |
gcm: ${obj_gcm} |
42 |
|
|
43 |
depend ${src_root}/depend.mk: |
depend ${src_root}/depend.mk: |
44 |
makedepf90 -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${src_root}/depend.mk |
makedepf90 -free -Wmissing -Wconfused $(addprefix -I, ${VPATH}) -nosrc $(addprefix -u , netcdf numer_rec_95 netcdf95 nr_util jumble) ${sources} >${src_root}/depend.mk |
45 |
|
|
46 |
${src_root}/TAGS: ${sources} |
${src_root}/TAGS: ${sources} |
47 |
ctags -e --language-force=fortran -f $@ $^ |
ctags -e --language-force=fortran -f $@ $^ |