1 | #------------------------------------------------------------------------------# |
---|
2 | # This file is part of the PALM model system. |
---|
3 | # |
---|
4 | # PALM is free software: you can redistribute it and/or modify it under the terms |
---|
5 | # of the GNU General Public License as published by the Free Software Foundation, |
---|
6 | # either version 3 of the License, or (at your option) any later version. |
---|
7 | # |
---|
8 | # PALM is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
9 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
---|
10 | # A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
---|
11 | # |
---|
12 | # You should have received a copy of the GNU General Public License along with |
---|
13 | # PALM. If not, see <http://www.gnu.org/licenses/>. |
---|
14 | # |
---|
15 | # Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
16 | #------------------------------------------------------------------------------# |
---|
17 | # |
---|
18 | # Current revisions: |
---|
19 | # ----------------- |
---|
20 | # |
---|
21 | # |
---|
22 | # Former revisions: |
---|
23 | # ----------------- |
---|
24 | # $Id: Makefile_utilities 2718 2018-01-02 08:49:38Z raasch $ |
---|
25 | # Corrected "Former revisions" section |
---|
26 | # |
---|
27 | # 2696 2017-12-14 17:12:51Z kanani |
---|
28 | # Change in file header (GPL part) |
---|
29 | # |
---|
30 | # 2380 2017-09-01 08:33:46Z raasch |
---|
31 | # file renamed to Makefile_utilities |
---|
32 | # executables are created in current working directory |
---|
33 | # interpret_config removed |
---|
34 | # |
---|
35 | # 1046 2012-11-09 14:38:45Z maronga |
---|
36 | # code put under GPL (PALM 3.9) |
---|
37 | # |
---|
38 | # utility programs are created separately for each block in the configuration |
---|
39 | # file, |
---|
40 | # compare_palm_logs added |
---|
41 | # added PROG3 in 'all:' statement (line 39, bugfix) |
---|
42 | # |
---|
43 | # Initial revision somewhere in 2003/04 |
---|
44 | # |
---|
45 | # Description: |
---|
46 | # ------------ |
---|
47 | # Makefile for generating the utility programs required by mrun and palm |
---|
48 | #------------------------------------------------------------------------------# |
---|
49 | |
---|
50 | PROG1 = combine_plot_fields.x |
---|
51 | PROG2 = compare_palm_logs.x |
---|
52 | |
---|
53 | OBJS1 = combine_plot_fields.o |
---|
54 | OBJS2 = compare_palm_logs.o |
---|
55 | |
---|
56 | CC = cc |
---|
57 | CFLAGS = -O |
---|
58 | |
---|
59 | F90 = |
---|
60 | F90_SER = |
---|
61 | COPT = |
---|
62 | F90FLAGS = |
---|
63 | LDFLAGS = |
---|
64 | |
---|
65 | .SUFFIXES: $(SUFFIXES) .f90 |
---|
66 | |
---|
67 | |
---|
68 | all: $(PROG1) $(PROG2) $(PROG3) |
---|
69 | |
---|
70 | $(PROG1): $(OBJS1) |
---|
71 | $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS) |
---|
72 | |
---|
73 | $(PROG2): $(OBJS2) |
---|
74 | $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS) |
---|
75 | |
---|
76 | $(PROG3): $(OBJS3) |
---|
77 | $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS) |
---|
78 | |
---|
79 | .f90.o: |
---|
80 | $(F90_SER) $(F90FLAGS) $(COPT) -c $< |
---|
81 | |
---|
82 | |
---|