File: Makefile

package info (click to toggle)
oasis3 3.mct%2Bdfsg.121022-13
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 61,660 kB
  • sloc: f90: 40,319; fortran: 5,859; ansic: 2,780; sh: 728; makefile: 702; perl: 552; xml: 278; awk: 25; csh: 7
file content (114 lines) | stat: -rwxr-xr-x 3,842 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114

SRCS1 =  $(shell LC_ALL=C ls $(COUPLE)/lib/scrip/src/*.F90)
OBJS1 =  $(patsubst $(COUPLE)/lib/scrip/src/%.F90, %.o, $(SRCS1))
POBJS1 =  $(patsubst $(COUPLE)/lib/scrip/src/%.F90, %.o.pic, $(SRCS1))

SRCS3   = $(shell LC_ALL=C ls $(COUPLE)/lib/scrip/src/*.F)
OBJS3   = $(patsubst $(COUPLE)/lib/scrip/src/%.F, %.o, $(SRCS3))
POBJS3   = $(patsubst $(COUPLE)/lib/scrip/src/%.F, %.o.pic, $(SRCS3))

SRCS4 =  $(shell LC_ALL=C ls $(COUPLE)/lib/scrip/src/*.f)
OBJS4 =  $(patsubst $(COUPLE)/lib/scrip/src/%.f, %.o, $(SRCS4))
POBJS4 =  $(patsubst $(COUPLE)/lib/scrip/src/%.f, %.o.pic, $(SRCS4))

VPATH =	.:$(COUPLE)/lib/scrip/src:$(COUPLE)/src

LIBRARY	= $(ARCHDIR)/lib/libscrip.a
SHLIB	= $(ARCHDIR)/lib/libscrip.so
SONAME  = libscrip.so.0d

LDSHARED = ld -shared $(LDFLAGS)

clean:
	rm -f i.* *.o *.mod *.o.pic

all:	$(LIBRARY) $(SHLIB)

$(LIBRARY): $(OBJS1)  $(OBJS3) $(OBJS4)
	$(AR) $(ARFLAGS) $(LIBRARY) $(OBJS1) $(OBJS3) $(OBJS4)

$(SHLIB): $(POBJS1) $(POBJS3) $(POBJS4)
	$(LDSHARED) -o $(SHLIB) $(POBJS1) $(POBJS3) $(POBJS4) --soname $(SONAME) -lnetcdff -lnetcdf -lc

.SUFFIXES:
.SUFFIXES: .o .f .F .f90 .F90 .c

%.o: %.F90
	$(F90) $(F90FLAGS) -c   $<

%.o: %.f90
	$(f90) $(f90FLAGS) -c   $<

%.o: %.F
	$(F) $(FFLAGS) -c   $<

%.o: %.f
	$(f) $(fFLAGS) -c   $<

%.o: %.c
	$(CC) $(CCFLAGS) -c   $<

%.o.pic: %.F90
	$(F90) $(F90FLAGS)  -o $@ -c  -fPIC $<

%.o.pic: %.f90
	$(f90) $(f90FLAGS) -o $@ -c -fPIC  $<

%.o.pic: %.F
	$(F) $(FFLAGS)  -o $@ -c -fPIC  $<

%.o.pic: %.f
	$(f) $(fFLAGS)  -o $@ -c  -fPIC $<

%.o.pic: %.c
	$(CC) $(CCFLAGS) -o $@ -c  -fPIC $<

#
# ALL dependencies ...
mod_oasis_flush.o : kinds_mod.o
remap_bicubic_reduced.o: constants.o grids.o remap_vars.o
netcdf.o: constants.o kinds_mod.o 
remap_conserv.o: constants.o grids.o kinds_mod.o remap_vars.o timers.o
remap_distwgt.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_vars.o: constants.o grids.o kinds_mod.o
scrip.o: constants.o grids.o iounits.o kinds_mod.o remap_bicubic.o \
	remap_bicubic_reduced.o remap_bilinear.o remap_bilinear_reduced.o \
	remap_conserv.o remap_distwgt.o remap_gauswgt.o remap_vars.o \
	remap_write.o timers.o
constants.o: kinds_mod.o
distance.o: constants.o kinds_mod.o
fracnnei.o: constants.o grids.o kinds_mod.o remap_vars.o 
gradient_bicubic.o: constants.o kinds_mod.o 
grids.o: constants.o iounits.o kinds_mod.o 
iounits.o: kinds_mod.o 
kinds_mod.o: 
remap_bicubic.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_bilinear.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_bilinear_reduced.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_gauswgt.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_write.o: constants.o grids.o kinds_mod.o netcdf.o remap_vars.o 
timers.o: kinds_mod.o
#
mod_oasis_flush.o : kinds_mod.o
remap_bicubic_reduced.o: constants.o grids.o remap_vars.o
netcdf.o: constants.o kinds_mod.o 
remap_conserv.o: constants.o grids.o kinds_mod.o remap_vars.o timers.o
remap_distwgt.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_vars.o: constants.o grids.o kinds_mod.o
scrip.o: constants.o grids.o iounits.o kinds_mod.o remap_bicubic.o \
	remap_bicubic_reduced.o remap_bilinear.o remap_bilinear_reduced.o \
	remap_conserv.o remap_distwgt.o remap_gauswgt.o remap_vars.o \
	remap_write.o timers.o
constants.o: kinds_mod.o
distance.o: constants.o kinds_mod.o
fracnnei.o: constants.o grids.o kinds_mod.o remap_vars.o 
gradient_bicubic.o: constants.o kinds_mod.o 
grids.o: constants.o iounits.o kinds_mod.o 
iounits.o: kinds_mod.o 
kinds_mod.o: 
remap_bicubic.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_bilinear.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_bilinear_reduced.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_gauswgt.o: constants.o grids.o kinds_mod.o remap_vars.o
remap_write.o: constants.o grids.o kinds_mod.o netcdf.o remap_vars.o 
timers.o.pic: kinds_mod.o.pic