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