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 |
---|
6 | COMP = f90 |
---|
7 | FLAGS = -O3 -64 -r10000 -I/usr/local/include |
---|
8 | #FLAGS = -g |
---|
9 | LIB = -lnetcdf |
---|
10 | INCL = |
---|
11 | SRCDIR = ../source |
---|
12 | EXEDIR = . |
---|
13 | OBJ = \ |
---|
14 | kinds_mod.o \ |
---|
15 | constants.o \ |
---|
16 | iounits.o \ |
---|
17 | netcdf.o |
---|
18 | |
---|
19 | all: convertPOPT convertgauss create_latlon |
---|
20 | |
---|
21 | convertold: $(OBJ) convert_old.o |
---|
22 | $(COMP) $(FLAGS) $(OBJ) convert_old.o $(LIB) -o $(EXEDIR)/convertold |
---|
23 | |
---|
24 | convertPOPT: $(OBJ) convertPOPT.o |
---|
25 | $(COMP) $(FLAGS) $(OBJ) convertPOPT.o $(LIB) -o $(EXEDIR)/convertPOPT |
---|
26 | |
---|
27 | convertgauss: $(OBJ) convertgauss.o |
---|
28 | $(COMP) $(FLAGS) $(OBJ) convertgauss.o $(LIB) -o $(EXEDIR)/convertgauss |
---|
29 | |
---|
30 | create_latlon: $(OBJ) create_latlon.o |
---|
31 | $(COMP) $(FLAGS) $(OBJ) create_latlon.o $(LIB) -o $(EXEDIR)/create_latlon |
---|
32 | |
---|
33 | kinds_mod.o: $(SRCDIR)/kinds_mod.f $(INCL) |
---|
34 | $(COMP) $(FLAGS) -c $(SRCDIR)/kinds_mod.f |
---|
35 | |
---|
36 | constants.o: $(SRCDIR)/constants.f kinds_mod.o $(INCL) |
---|
37 | $(COMP) $(FLAGS) -c $(SRCDIR)/constants.f |
---|
38 | |
---|
39 | iounits.o: $(SRCDIR)/iounits.f kinds_mod.o constants.o $(INCL) |
---|
40 | $(COMP) $(FLAGS) -c $(SRCDIR)/iounits.f |
---|
41 | |
---|
42 | netcdf.o: $(SRCDIR)/netcdf.f kinds_mod.o constants.o $(INCL) |
---|
43 | $(COMP) $(FLAGS) -c $(SRCDIR)/netcdf.f |
---|
44 | |
---|
45 | convert_old.o: convert_old.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL) |
---|
46 | $(COMP) $(FLAGS) -c convert_old.f |
---|
47 | |
---|
48 | convertPOPT.o: convertPOPT.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL) |
---|
49 | $(COMP) $(FLAGS) -c convertPOPT.f |
---|
50 | |
---|
51 | convertgauss.o: convertgauss.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL) |
---|
52 | $(COMP) $(FLAGS) -c convertgauss.f |
---|
53 | |
---|
54 | create_latlon.o: create_latlon.f kinds_mod.o constants.o iounits.o netcdf.o $(INCL) |
---|
55 | $(COMP) $(FLAGS) -c create_latlon.f |
---|
56 | |
---|
57 | clean: |
---|
58 | /bin/rm *.o *.mod |
---|
59 | |
---|