[2696] | 1 | #------------------------------------------------------------------------------# |
---|
| 2 | # This file is part of the PALM model system. |
---|
[22] | 3 | # |
---|
[1046] | 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 | # |
---|
[2718] | 15 | # Copyright 1997-2018 Leibniz Universitaet Hannover |
---|
[2696] | 16 | #------------------------------------------------------------------------------# |
---|
[1046] | 17 | # |
---|
| 18 | # Current revisions: |
---|
[22] | 19 | # ----------------- |
---|
[2410] | 20 | # |
---|
| 21 | # |
---|
| 22 | # Former revisions: |
---|
| 23 | # ----------------- |
---|
| 24 | # $Id: Makefile_utilities 3795 2019-03-15 09:40:05Z monakurppa $ |
---|
[3795] | 25 | # Upated inifor build dependencies |
---|
| 26 | # |
---|
| 27 | # 3793 2019-03-15 08:31:37Z raasch |
---|
[3793] | 28 | # bugfix for suffix setting |
---|
| 29 | # |
---|
| 30 | # 3757 2019-02-20 11:40:34Z suehring |
---|
[3757] | 31 | # Disable build of surface-output processing tool |
---|
| 32 | # |
---|
| 33 | # 3534 2018-11-19 15:35:16Z raasch |
---|
[3534] | 34 | # inifor build added |
---|
| 35 | # |
---|
| 36 | # 3523 2018-11-13 16:09:31Z suehring |
---|
[3523] | 37 | # Enable compilation of post-processing tool for surface output - interface |
---|
| 38 | # for posix conform sytemcalls is implemented. |
---|
| 39 | # |
---|
| 40 | # 3499 2018-11-07 10:55:15Z suehring |
---|
[3499] | 41 | # Temporarily avoid compilation of post-processing tool for surface output |
---|
| 42 | # until a workaround for compiler-specific intrinsic functions is found. |
---|
| 43 | # |
---|
| 44 | # 3494 2018-11-06 14:51:27Z suehring |
---|
[3494] | 45 | # Added make directive for surface-output post-processing |
---|
| 46 | # |
---|
| 47 | # 3208 2018-08-27 13:10:50Z sward |
---|
[3208] | 48 | # Added make directive for agent_preprocessing tool |
---|
| 49 | # |
---|
| 50 | # 2718 2018-01-02 08:49:38Z maronga |
---|
[2716] | 51 | # Corrected "Former revisions" section |
---|
| 52 | # |
---|
| 53 | # 2696 2017-12-14 17:12:51Z kanani |
---|
| 54 | # Change in file header (GPL part) |
---|
| 55 | # |
---|
| 56 | # 2380 2017-09-01 08:33:46Z raasch |
---|
[2380] | 57 | # file renamed to Makefile_utilities |
---|
| 58 | # executables are created in current working directory |
---|
| 59 | # interpret_config removed |
---|
[1047] | 60 | # |
---|
| 61 | # 1046 2012-11-09 14:38:45Z maronga |
---|
[1046] | 62 | # code put under GPL (PALM 3.9) |
---|
| 63 | # |
---|
[503] | 64 | # utility programs are created separately for each block in the configuration |
---|
| 65 | # file, |
---|
[480] | 66 | # compare_palm_logs added |
---|
[492] | 67 | # added PROG3 in 'all:' statement (line 39, bugfix) |
---|
[22] | 68 | # |
---|
[480] | 69 | # Initial revision somewhere in 2003/04 |
---|
| 70 | # |
---|
[22] | 71 | # Description: |
---|
| 72 | # ------------ |
---|
[2380] | 73 | # Makefile for generating the utility programs required by mrun and palm |
---|
[2696] | 74 | #------------------------------------------------------------------------------# |
---|
[22] | 75 | |
---|
[2380] | 76 | PROG1 = combine_plot_fields.x |
---|
| 77 | PROG2 = compare_palm_logs.x |
---|
[3208] | 78 | PROG3 = agent_preprocessing |
---|
[3757] | 79 | #PROG4 = surface_output_to_vtk |
---|
[3534] | 80 | PROG5 = inifor |
---|
[22] | 81 | |
---|
[3534] | 82 | SOURCES5 = \ |
---|
[3793] | 83 | inifor.f90 \ |
---|
| 84 | inifor_control.f90 \ |
---|
| 85 | inifor_defs.f90 \ |
---|
| 86 | inifor_grid.f90 \ |
---|
| 87 | inifor_io.f90 \ |
---|
| 88 | inifor_transform.f90 \ |
---|
| 89 | inifor_types.f90 \ |
---|
| 90 | inifor_util.f90 |
---|
[3534] | 91 | |
---|
| 92 | |
---|
[22] | 93 | OBJS1 = combine_plot_fields.o |
---|
[480] | 94 | OBJS2 = compare_palm_logs.o |
---|
[3208] | 95 | OBJS3 = agent_preprocessing.o |
---|
[3757] | 96 | #OBJS4 = surface_output_to_vtk.o |
---|
[3534] | 97 | OBJS5=$(SOURCES5:.f90=.o) |
---|
[22] | 98 | |
---|
| 99 | CC = cc |
---|
| 100 | CFLAGS = -O |
---|
| 101 | |
---|
| 102 | F90 = |
---|
[27] | 103 | F90_SER = |
---|
[22] | 104 | COPT = |
---|
| 105 | F90FLAGS = |
---|
| 106 | LDFLAGS = |
---|
| 107 | |
---|
[3793] | 108 | .SUFFIXES: |
---|
| 109 | .SUFFIXES: .o .f90 |
---|
[22] | 110 | |
---|
| 111 | |
---|
[3534] | 112 | all: $(PROG1) $(PROG2) $(PROG3) $(PROG4) $(PROG5) |
---|
[22] | 113 | |
---|
| 114 | $(PROG1): $(OBJS1) |
---|
[27] | 115 | $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS) |
---|
[22] | 116 | |
---|
| 117 | $(PROG2): $(OBJS2) |
---|
[27] | 118 | $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS) |
---|
[22] | 119 | |
---|
[480] | 120 | $(PROG3): $(OBJS3) |
---|
| 121 | $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS) |
---|
| 122 | |
---|
[3523] | 123 | $(PROG4): $(OBJS4) |
---|
| 124 | $(F90_SER) -o $(PROG4) $(OBJS4) $(LDFLAGS) |
---|
[3494] | 125 | |
---|
[3534] | 126 | $(PROG5): $(OBJS5) |
---|
| 127 | $(F90_SER) -o $(PROG5) $(OBJS5) $(LDFLAGS) |
---|
| 128 | |
---|
[22] | 129 | .f90.o: |
---|
[27] | 130 | $(F90_SER) $(F90FLAGS) $(COPT) -c $< |
---|
[22] | 131 | |
---|
| 132 | |
---|
[3534] | 133 | inifor.o: \ |
---|
[3793] | 134 | inifor_control.o \ |
---|
| 135 | inifor_defs.o \ |
---|
| 136 | inifor_grid.o \ |
---|
| 137 | inifor_io.o \ |
---|
| 138 | inifor_transform.o \ |
---|
| 139 | inifor_types.o |
---|
[3534] | 140 | inifor_control.o: \ |
---|
[3793] | 141 | inifor_defs.o \ |
---|
| 142 | inifor_util.o |
---|
[3534] | 143 | inifor_grid.o: \ |
---|
[3793] | 144 | inifor_control.o \ |
---|
| 145 | inifor_defs.o \ |
---|
| 146 | inifor_io.o \ |
---|
| 147 | inifor_transform.o \ |
---|
| 148 | inifor_types.o \ |
---|
| 149 | inifor_util.o |
---|
[3534] | 150 | inifor_io.o: \ |
---|
[3793] | 151 | inifor_control.o \ |
---|
| 152 | inifor_defs.o \ |
---|
| 153 | inifor_types.o \ |
---|
| 154 | inifor_util.o |
---|
[3534] | 155 | inifor_transform.o: \ |
---|
[3793] | 156 | inifor_control.o \ |
---|
| 157 | inifor_defs.o \ |
---|
| 158 | inifor_types.o \ |
---|
| 159 | inifor_util.o |
---|
[3534] | 160 | inifor_types.o: \ |
---|
[3793] | 161 | inifor_defs.o |
---|
[3534] | 162 | inifor_util.o: \ |
---|
[3795] | 163 | inifor_defs.o \ |
---|
[3793] | 164 | inifor_types.o |
---|