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 3208 2018-08-27 13:10:50Z knoop $ |
---|
25 | # Added make directive for agent_preprocessing tool |
---|
26 | # |
---|
27 | # 2718 2018-01-02 08:49:38Z maronga |
---|
28 | # Corrected "Former revisions" section |
---|
29 | # |
---|
30 | # 2696 2017-12-14 17:12:51Z kanani |
---|
31 | # Change in file header (GPL part) |
---|
32 | # |
---|
33 | # 2380 2017-09-01 08:33:46Z raasch |
---|
34 | # file renamed to Makefile_utilities |
---|
35 | # executables are created in current working directory |
---|
36 | # interpret_config removed |
---|
37 | # |
---|
38 | # 1046 2012-11-09 14:38:45Z maronga |
---|
39 | # code put under GPL (PALM 3.9) |
---|
40 | # |
---|
41 | # utility programs are created separately for each block in the configuration |
---|
42 | # file, |
---|
43 | # compare_palm_logs added |
---|
44 | # added PROG3 in 'all:' statement (line 39, bugfix) |
---|
45 | # |
---|
46 | # Initial revision somewhere in 2003/04 |
---|
47 | # |
---|
48 | # Description: |
---|
49 | # ------------ |
---|
50 | # Makefile for generating the utility programs required by mrun and palm |
---|
51 | #------------------------------------------------------------------------------# |
---|
52 | |
---|
53 | PROG1 = combine_plot_fields.x |
---|
54 | PROG2 = compare_palm_logs.x |
---|
55 | PROG3 = agent_preprocessing |
---|
56 | |
---|
57 | OBJS1 = combine_plot_fields.o |
---|
58 | OBJS2 = compare_palm_logs.o |
---|
59 | OBJS3 = agent_preprocessing.o |
---|
60 | |
---|
61 | CC = cc |
---|
62 | CFLAGS = -O |
---|
63 | |
---|
64 | F90 = |
---|
65 | F90_SER = |
---|
66 | COPT = |
---|
67 | F90FLAGS = |
---|
68 | LDFLAGS = |
---|
69 | |
---|
70 | .SUFFIXES: $(SUFFIXES) .f90 |
---|
71 | |
---|
72 | |
---|
73 | all: $(PROG1) $(PROG2) $(PROG3) |
---|
74 | |
---|
75 | $(PROG1): $(OBJS1) |
---|
76 | $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS) |
---|
77 | |
---|
78 | $(PROG2): $(OBJS2) |
---|
79 | $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS) |
---|
80 | |
---|
81 | $(PROG3): $(OBJS3) |
---|
82 | $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS) |
---|
83 | |
---|
84 | .f90.o: |
---|
85 | $(F90_SER) $(F90FLAGS) $(COPT) -c $< |
---|
86 | |
---|
87 | |
---|