New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
makefile in branches/nemo_v3_3_beta/NEMOGCM/TOOLS/WEIGHTS/SCRIP1.4/source – NEMO

source: branches/nemo_v3_3_beta/NEMOGCM/TOOLS/WEIGHTS/SCRIP1.4/source/makefile @ 2352

Last change on this file since 2352 was 2352, checked in by sga, 13 years ago

NEMO branch nemo_v3_3_beta
Add NOCS tools based on SCRIP package for creating weights for interpolation on the fly
These now should build with the maketools script in the TOOLS directory using the same
architecture configuration file as the model (hopefully)

File size: 3.5 KB
Line 
1#!/bin/csh
2#
3# Makefile for interpolation code
4#
5# CVS:$Id: makefile,v 1.7 2000/04/19 21:46:44 pwjones Exp $
6#
7#COMPILE = xlf
8COMPILE = f90
9FLAGS = -O3 -r10000 -64 -I/usr/local/include
10#FLAGS = -g -DEBUG:div_check=3:subscript_check=ON:trap_uninitialized=ON:verbose_runtime=ON -r10000 -64 -I/usr/local/include
11LIB  =  -lnetcdf
12INCLUDE = 
13SRCDIR  = .
14EXEDIR  = ..
15OBJSET  = \
16   kinds_mod.o \
17   constants.o \
18   iounits.o \
19   netcdf.o \
20   grids.o \
21   remap_vars.o \
22   remap_distwgt.o \
23   remap_conserv.o \
24   remap_bilinear.o \
25   remap_bicubic.o \
26   timers.o \
27   remap_write.o \
28   scrip.o
29
30OBJTEST  = \
31   kinds_mod.o \
32   constants.o \
33   iounits.o \
34   netcdf.o \
35   grids.o \
36   timers.o \
37   remap_vars.o \
38   remap_read.o \
39   remap.o
40
41all: $(EXEDIR)/scrip $(EXEDIR)/scrip_test
42
43$(EXEDIR)/scrip: $(OBJSET)
44   $(COMPILE) $(FLAGS) $(OBJSET) $(LIB) -o $(EXEDIR)/scrip
45
46$(EXEDIR)/scrip_test: $(OBJTEST) scrip_test.o
47   $(COMPILE) $(FLAGS) $(OBJTEST) scrip_test.o $(LIB) \
48   -o $(EXEDIR)/scrip_test
49
50scrip_test_repeat: $(OBJTEST) scrip_test_repeat.o
51   $(COMPILE) $(FLAGS) $(OBJTEST) scrip_test_repeat.o $(LIB) \
52   -o $(EXEDIR)/scrip_test_repeat
53
54kinds_mod.o: $(SRCDIR)/kinds_mod.f $(INCLUDE)
55   $(COMPILE) $(FLAGS) -c $(SRCDIR)/kinds_mod.f
56
57constants.o: $(SRCDIR)/constants.f kinds_mod.o $(INCLUDE)
58   $(COMPILE) $(FLAGS) -c $(SRCDIR)/constants.f
59
60iounits.o: $(SRCDIR)/iounits.f kinds_mod.o $(INCLUDE)
61   $(COMPILE) $(FLAGS) -c $(SRCDIR)/iounits.f
62
63netcdf.o: $(SRCDIR)/netcdf.f kinds_mod.o constants.o $(INCLUDE)
64   $(COMPILE) $(FLAGS) -c $(SRCDIR)/netcdf.f
65
66grids.o: $(SRCDIR)/grids.f kinds_mod.o constants.o iounits.o netcdf.o \
67   $(INCLUDE)
68   $(COMPILE) $(FLAGS) -c $(SRCDIR)/grids.f
69
70remap_vars.o: $(SRCDIR)/remap_vars.f kinds_mod.o constants.o grids.o \
71   $(INCLUDE)
72   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_vars.f
73
74remap_conserv.o: $(SRCDIR)/remap_conserv.f kinds_mod.o constants.o \
75      timers.o remap_vars.o grids.o $(INCLUDE)
76   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_conserv.f
77
78remap_distwgt.o: $(SRCDIR)/remap_distwgt.f kinds_mod.o constants.o \
79      remap_vars.o grids.o $(INCLUDE)
80   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_distwgt.f
81
82remap_bilinear.o: $(SRCDIR)/remap_bilinear.f kinds_mod.o constants.o \
83      remap_vars.o grids.o timers.o $(INCLUDE)
84   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_bilinear.f
85
86remap_bicubic.o: $(SRCDIR)/remap_bicubic.f kinds_mod.o constants.o \
87      remap_vars.o grids.o $(INCLUDE)
88   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_bicubic.f
89
90timers.o: $(SRCDIR)/timers.f kinds_mod.o constants.o $(INCLUDE)
91   $(COMPILE) $(FLAGS) -c $(SRCDIR)/timers.f
92
93remap_write.o: $(SRCDIR)/remap_write.f kinds_mod.o constants.o \
94      netcdf.o remap_vars.o grids.o $(INCLUDE)
95   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_write.f
96
97remap_read.o: $(SRCDIR)/remap_read.f kinds_mod.o constants.o netcdf.o \
98      remap_vars.o grids.o $(INCLUDE)
99   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_read.f
100
101remap.o: $(SRCDIR)/remap.f kinds_mod.o constants.o
102   $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap.f
103
104scrip.o: $(SRCDIR)/scrip.f kinds_mod.o constants.o iounits.o timers.o \
105      remap_vars.o grids.o remap_conserv.o remap_distwgt.o \
106      remap_bilinear.o remap_bicubic.o remap_write.o \
107      $(INCLUDE)
108   $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip.f
109
110scrip_test.o: $(SRCDIR)/scrip_test.f kinds_mod.o constants.o iounits.o \
111      netcdf.o remap_vars.o grids.o remap.o remap_read.o \
112      $(INCLUDE)
113   $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_test.f
114
115scrip_test_repeat.o: $(SRCDIR)/scrip_test_repeat.f kinds_mod.o \
116      constants.o netcdf.o \
117      iounits.o remap_vars.o grids.o $(INCLUDE)
118   $(COMPILE) $(FLAGS) -c $(SRCDIR)/scrip_test_repeat.f
119
120clean:
121   /bin/rm *.o *.mod
122
Note: See TracBrowser for help on using the repository browser.