| 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 |
|---|
| 39 | F90 = ifort |
|---|
| 40 | DEBUG = #-g #-C |
|---|
| 41 | F90FLAGS = -O2 -fpp |
|---|
| 42 | |
|---|
| 43 | # Source file location |
|---|
| 44 | ROOT = /home/dswales/Projects/COSP/COSPv2.0 |
|---|
| 45 | SRC = $(ROOT)/src/simulator/icarus-scops-4.1-bsd |
|---|
| 46 | |
|---|
| 47 | ######################################################################## |
|---|
| 48 | PROG1 = test_isccp_cloud_types |
|---|
| 49 | OBJS1 = 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 | |
|---|
| 53 | all: $(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 |
|---|
| 63 | cosp_errorHandling.o : cosp_kinds.o |
|---|
| 64 | isccp_cloud_types.o : cosp_kinds.o icarus.o mo_rng.o |
|---|
| 65 | scops.o : cosp_kinds.o mo_rng.o cosp_errorHandling.o |
|---|
| 66 | icarus.o : cosp_kinds.o cosp_constants.o cosp_optics.o \ |
|---|
| 67 | cosp_stats.o scops.o cosp_config.o |
|---|
| 68 | mo_rng.o : cosp_kinds.o |
|---|
| 69 | cosp_stats.o : cosp_kinds.o cosp_config.o |
|---|
| 70 | |
|---|
| 71 | clean: |
|---|
| 72 | rm -f *.o test_isccp_cloud_types ftn* test_congvec *.mod |
|---|
| 73 | test: |
|---|
| 74 | ./test_isccp_cloud_types.ksh |
|---|
| 75 | |
|---|
| 76 | cosp_kinds.o : $(ROOT)/src/hooks/cosp_kinds.f90 |
|---|
| 77 | $(F90) $(F90FLAGS) -c $< |
|---|
| 78 | |
|---|
| 79 | cosp_errorHandling.o : $(ROOT)/src/hooks/cosp_errorHandling.f90 |
|---|
| 80 | $(F90) $(F90FLAGS) -c $< |
|---|
| 81 | |
|---|
| 82 | cosp_constants.o : $(ROOT)/src/hooks/cosp_constants.f90 |
|---|
| 83 | $(F90) $(F90FLAGS) -c $< |
|---|
| 84 | |
|---|
| 85 | scops.o : $(ROOT)/src/subcol/scops.f90 |
|---|
| 86 | $(F90) $(F90FLAGS) -c $< |
|---|
| 87 | |
|---|
| 88 | icarus.o : $(SRC)/icarus.f90 |
|---|
| 89 | $(F90) $(F90FLAGS) -c $< |
|---|
| 90 | |
|---|
| 91 | cosp_optics.o : $(ROOT)/src/optics/cosp_optics.f90 |
|---|
| 92 | $(F90) $(F90FLAGS) -c $< |
|---|
| 93 | |
|---|
| 94 | cosp_config.o : $(ROOT)/src/cosp_config.f90 |
|---|
| 95 | $(F90) $(F90FLAGS) -c $< |
|---|
| 96 | |
|---|
| 97 | cosp_stats.o : $(ROOT)/src/cosp_stats.f90 |
|---|
| 98 | $(F90) $(F90FLAGS) -c $< |
|---|
| 99 | |
|---|
| 100 | mo_rng.o : $(ROOT)/src/rng/mo_rng.f90 |
|---|
| 101 | $(F90) $(F90FLAGS) -c $< |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | |
|---|
| 107 | |
|---|