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

Last change on this file since 2352 was 2352, checked in by sga, 11 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: 1.6 KB
Line 
1#
2# Makefile for interpolation code
3# CVS:$Id: makefile,v 1.3 2000/04/19 22:05:59 pwjones Exp $
4#
5#COMP = xlf
6COMP = f90
7FLAGS = -O3 -64 -r10000 -I/usr/local/include
8#FLAGS = -g
9LIB  = -lnetcdf
10INCL = 
11SRCDIR  = ../source
12EXEDIR  = .
13OBJ  = \
14   kinds_mod.o \
15   constants.o \
16   iounits.o \
17   netcdf.o
18
19all: convertPOPT convertgauss create_latlon
20
21convertold: $(OBJ) convert_old.o
22   $(COMP) $(FLAGS) $(OBJ) convert_old.o $(LIB) -o $(EXEDIR)/convertold
23
24convertPOPT: $(OBJ) convertPOPT.o
25   $(COMP) $(FLAGS) $(OBJ) convertPOPT.o $(LIB) -o $(EXEDIR)/convertPOPT
26
27convertgauss: $(OBJ) convertgauss.o
28   $(COMP) $(FLAGS) $(OBJ) convertgauss.o $(LIB) -o $(EXEDIR)/convertgauss
29
30create_latlon: $(OBJ) create_latlon.o
31   $(COMP) $(FLAGS) $(OBJ) create_latlon.o $(LIB) -o $(EXEDIR)/create_latlon
32
33kinds_mod.o: $(SRCDIR)/kinds_mod.f $(INCL)
34   $(COMP) $(FLAGS) -c $(SRCDIR)/kinds_mod.f
35
36constants.o: $(SRCDIR)/constants.f kinds_mod.o $(INCL)
37   $(COMP) $(FLAGS) -c $(SRCDIR)/constants.f
38
39iounits.o: $(SRCDIR)/iounits.f kinds_mod.o constants.o $(INCL)
40   $(COMP) $(FLAGS) -c $(SRCDIR)/iounits.f
41
42netcdf.o: $(SRCDIR)/netcdf.f kinds_mod.o constants.o $(INCL)
43   $(COMP) $(FLAGS) -c $(SRCDIR)/netcdf.f
44
45convert_old.o: convert_old.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL)
46   $(COMP) $(FLAGS) -c convert_old.f
47
48convertPOPT.o: convertPOPT.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL)
49   $(COMP) $(FLAGS) -c convertPOPT.f
50
51convertgauss.o: convertgauss.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL)
52   $(COMP) $(FLAGS) -c convertgauss.f
53
54create_latlon.o: create_latlon.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL)
55   $(COMP) $(FLAGS) -c create_latlon.f
56
57clean: 
58   /bin/rm *.o *.mod
59
Note: See TracBrowser for help on using the repository browser.