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 |
---|
8 | COMPILE = f90 |
---|
9 | FLAGS = -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 |
---|
11 | LIB = -lnetcdf |
---|
12 | INCLUDE = |
---|
13 | SRCDIR = . |
---|
14 | EXEDIR = .. |
---|
15 | OBJSET = \ |
---|
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 | |
---|
30 | OBJTEST = \ |
---|
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 | |
---|
41 | all: $(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 | |
---|
50 | scrip_test_repeat: $(OBJTEST) scrip_test_repeat.o |
---|
51 | $(COMPILE) $(FLAGS) $(OBJTEST) scrip_test_repeat.o $(LIB) \ |
---|
52 | -o $(EXEDIR)/scrip_test_repeat |
---|
53 | |
---|
54 | kinds_mod.o: $(SRCDIR)/kinds_mod.f $(INCLUDE) |
---|
55 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/kinds_mod.f |
---|
56 | |
---|
57 | constants.o: $(SRCDIR)/constants.f kinds_mod.o $(INCLUDE) |
---|
58 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/constants.f |
---|
59 | |
---|
60 | iounits.o: $(SRCDIR)/iounits.f kinds_mod.o $(INCLUDE) |
---|
61 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/iounits.f |
---|
62 | |
---|
63 | netcdf.o: $(SRCDIR)/netcdf.f kinds_mod.o constants.o $(INCLUDE) |
---|
64 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/netcdf.f |
---|
65 | |
---|
66 | grids.o: $(SRCDIR)/grids.f kinds_mod.o constants.o iounits.o netcdf.o \ |
---|
67 | $(INCLUDE) |
---|
68 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/grids.f |
---|
69 | |
---|
70 | remap_vars.o: $(SRCDIR)/remap_vars.f kinds_mod.o constants.o grids.o \ |
---|
71 | $(INCLUDE) |
---|
72 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap_vars.f |
---|
73 | |
---|
74 | remap_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 | |
---|
78 | remap_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 | |
---|
82 | remap_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 | |
---|
86 | remap_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 | |
---|
90 | timers.o: $(SRCDIR)/timers.f kinds_mod.o constants.o $(INCLUDE) |
---|
91 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/timers.f |
---|
92 | |
---|
93 | remap_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 | |
---|
97 | remap_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 | |
---|
101 | remap.o: $(SRCDIR)/remap.f kinds_mod.o constants.o |
---|
102 | $(COMPILE) $(FLAGS) -c $(SRCDIR)/remap.f |
---|
103 | |
---|
104 | scrip.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 | |
---|
110 | scrip_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 | |
---|
115 | scrip_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 | |
---|
120 | clean: |
---|
121 | /bin/rm *.o *.mod |
---|
122 | |
---|