source: LMDZ6/branches/LMDZ-COSP/libf/phylmd/cospv2/unit_testing/icarus-scops-4.1-bsd/Makefile

Last change on this file was 5917, checked in by idelkadi, 5 hours ago

Nouveau répertoire cospv2 avec la même structure offline

File size: 3.6 KB
Line 
1.SUFFIXES : .f90
2# *****************************COPYRIGHT****************************
3# (c) British Crown Copyright 2009, the Met Office.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the
8# following conditions are met:
9#
10#     * Redistributions of source code must retain the above
11#       copyright  notice, this list of conditions and the following
12#       disclaimer.
13#     * Redistributions in binary form must reproduce the above
14#       copyright notice, this list of conditions and the following
15#       disclaimer in the documentation and/or other materials
16#       provided with the distribution.
17#     * Neither the name of the Met Office nor the names of its
18#       contributors may be used to endorse or promote products
19#       derived from this software without specific prior written
20#       permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
33#
34# *****************************COPYRIGHT*******************************
35# *****************************COPYRIGHT*******************************
36# *****************************COPYRIGHT*******************************
37
38# Compiler and flags
39F90        = ifort
40DEBUG      = #-g #-C
41F90FLAGS   = -O2 -fpp
42
43# Source file location
44ROOT       = /home/dswales/Projects/COSP/COSPv2.0
45SRC        = $(ROOT)/src/simulator/icarus-scops-4.1-bsd
46
47########################################################################
48PROG1 = test_isccp_cloud_types
49OBJS1 = cosp_kinds.o cosp_constants.o isccp_cloud_types.o scops.o \
50        icarus.o cosp_optics.o cosp_stats.o cosp_config.o mo_rng.o\
51        cosp_errorHandling.o
52
53all: $(PROG1)
54
55$(PROG1): $(OBJS1) 
56        $(F90) $(F90FLAGS) $(PROG1).f90 $(OBJS1) \
57        -o $(PROG1)
58
59%.o : %.f90
60        ${F90} ${F90FLAGS} -c $<
61
62$(PROG1).o               : cosp_kinds.o
63cosp_errorHandling.o     : cosp_kinds.o
64isccp_cloud_types.o      : cosp_kinds.o icarus.o mo_rng.o
65scops.o                  : cosp_kinds.o mo_rng.o cosp_errorHandling.o
66icarus.o                 : cosp_kinds.o cosp_constants.o cosp_optics.o \
67                           cosp_stats.o scops.o cosp_config.o
68mo_rng.o                 : cosp_kinds.o
69cosp_stats.o             : cosp_kinds.o cosp_config.o
70
71clean:
72        rm -f *.o test_isccp_cloud_types ftn* test_congvec *.mod
73test:
74        ./test_isccp_cloud_types.ksh
75
76cosp_kinds.o : $(ROOT)/src/hooks/cosp_kinds.f90
77        $(F90) $(F90FLAGS) -c $<
78
79cosp_errorHandling.o : $(ROOT)/src/hooks/cosp_errorHandling.f90
80        $(F90) $(F90FLAGS) -c $<
81
82cosp_constants.o :  $(ROOT)/src/hooks/cosp_constants.f90
83        $(F90) $(F90FLAGS) -c $<
84
85scops.o :  $(ROOT)/src/subcol/scops.f90
86        $(F90) $(F90FLAGS) -c $<
87
88icarus.o :  $(SRC)/icarus.f90
89        $(F90) $(F90FLAGS) -c $<
90
91cosp_optics.o :  $(ROOT)/src/optics/cosp_optics.f90
92        $(F90) $(F90FLAGS) -c $<
93
94cosp_config.o :  $(ROOT)/src/cosp_config.f90
95        $(F90) $(F90FLAGS) -c $<
96
97cosp_stats.o :  $(ROOT)/src/cosp_stats.f90
98        $(F90) $(F90FLAGS) -c $<
99
100mo_rng.o : $(ROOT)/src/rng/mo_rng.f90
101        $(F90) $(F90FLAGS) -c $<
102
103
104
105
106
107
Note: See TracBrowser for help on using the repository browser.