1 |
edhill |
1.1 |
# |
2 |
|
|
# $Header: /u/gcmpack/MITgcm_contrib/eh3/regrid/regrid/Makefile,v 1.1 2006/08/10 05:00:15 edhill Exp $ |
3 |
|
|
# |
4 |
|
|
# A Makefile for REGRID templates |
5 |
|
|
# |
6 |
|
|
|
7 |
|
|
FC = f77 |
8 |
|
|
CPP = cpp |
9 |
|
|
|
10 |
|
|
.SUFFIXES: |
11 |
|
|
.SUFFIXES: .T .t .F .f .h .o |
12 |
|
|
|
13 |
|
|
.t.h: |
14 |
|
|
cat $< > $@ |
15 |
|
|
.T.F: |
16 |
|
|
cat $< > $@ |
17 |
|
|
.F.f: |
18 |
|
|
$(CPP) $(DEFINES) > $@ |
19 |
|
|
.f.o: |
20 |
|
|
$(FC) -DMNC_TEST -c $< |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
all: templates |
24 |
|
|
|
25 |
|
|
TEMPLATE_FILES = \ |
26 |
|
|
regrid_scalar_out_RS.F \ |
27 |
|
|
regrid_scalar_out_RL.F |
28 |
|
|
TEMPLATE_OBJECTS = $(TEMPLATE_FILES:.F=.o) |
29 |
|
|
|
30 |
|
|
templates: $(TEMPLATE_FILES) |
31 |
|
|
|
32 |
|
|
regrid_scalar_out_RS.F: regrid_scalar_out.template |
33 |
|
|
cat regrid_scalar_out.template | sed -e 's/RX/RS/g' | sed -e 's/__V/_RS/g' > regrid_scalar_out_RS.F |
34 |
|
|
regrid_scalar_out_RL.F: regrid_scalar_out.template |
35 |
|
|
cat regrid_scalar_out.template | sed -e 's/RX/RL/g' | sed -e 's/__V/_RL/g' > regrid_scalar_out_RL.F |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
CLEAN: |
39 |
|
|
@make clean |
40 |
|
|
|
41 |
|
|
Clean: |
42 |
|
|
@make clean |
43 |
|
|
|
44 |
|
|
clean: |
45 |
|
|
-rm -f $(TEMPLATE_FILES) |
46 |
|
|
|