-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
95 lines (78 loc) · 3.24 KB
/
Makefile
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#
# There exist several targets which are by default empty and which can be
# used for execution of your targets. These targets are usually executed
# before and after some main targets. They are:
#
# .build-pre: called before 'build' target
# .build-post: called after 'build' target
# .clean-pre: called before 'clean' target
# .clean-post: called after 'clean' target
# .clobber-pre: called before 'clobber' target
# .clobber-post: called after 'clobber' target
# .all-pre: called before 'all' target
# .all-post: called after 'all' target
# .help-pre: called before 'help' target
# .help-post: called after 'help' target
#
# Targets beginning with '.' are not intended to be called on their own.
#
# Main targets can be executed directly, and they are:
#
# build build a specific configuration
# clean remove built files from a configuration
# clobber remove all built files
# all build all configurations
# help print help mesage
#
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
# .help-impl are implemented in nbproject/makefile-impl.mk.
#
# Available make variables:
#
# CND_BASEDIR base directory for relative paths
# CND_DISTDIR default top distribution directory (build artifacts)
# CND_BUILDDIR default top build directory (object files, ...)
# CONF name of current configuration
# CND_PLATFORM_${CONF} platform name (current configuration)
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
#
# NOCDDL
# Environment
FC=gfortran
#FC=ifort
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
LSRC=EcosystemCarbonFluxType.F90 EcosystemCarbonStateType.F90 ParameterType.F90 SimulationTimeType.F90 TECO_matrix.F90
.SUFFIXES:
.SUFFIXES: .F90 .o
.F90.o:
$(FC) -c $<
## build
#build:
# all
all: TECO_matrix .all-post
TECO_matrix: TECO_matrix.o
$(FC) -o $@ ${LSRC:.F90=.o}
TECO_matrix.o: TECO_matrix.F90 EcosystemCarbonStateType.o EcosystemCarbonFluxType.o ParameterType.o SimulationTimeType.o
EcosystemCarbonStateType.o: EcosystemCarbonStateType.F90 ParameterType.o
EcosystemCarbonFluxType.o: EcosystemCarbonFluxType.F90 ParameterType.o
ParameterType.o: ParameterType.F90
SimulationTimeType.o: SimulationTimeType.F90
# include project implementation makefile
# include nbproject/Makefile-impl.mk
# include project make variables
# include nbproject/Makefile-variables.mk
.all-pre:
.all-post: .all-impl
clean:
rm -f *.o *.mod
# include project implementation makefile
include nbproject/Makefile-impl.mk
# include project make variables
include nbproject/Makefile-variables.mk