[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 3499 2018-11-07 10:55:15Z suehring $ |
---|
[3499] | 25 | # Temporarily avoid compilation of post-processing tool for surface output |
---|
| 26 | # until a workaround for compiler-specific intrinsic functions is found. |
---|
| 27 | # |
---|
| 28 | # 3494 2018-11-06 14:51:27Z suehring |
---|
[3494] | 29 | # Added make directive for surface-output post-processing |
---|
| 30 | # |
---|
| 31 | # 3208 2018-08-27 13:10:50Z sward |
---|
[3208] | 32 | # Added make directive for agent_preprocessing tool |
---|
| 33 | # |
---|
| 34 | # 2718 2018-01-02 08:49:38Z maronga |
---|
[2716] | 35 | # Corrected "Former revisions" section |
---|
| 36 | # |
---|
| 37 | # 2696 2017-12-14 17:12:51Z kanani |
---|
| 38 | # Change in file header (GPL part) |
---|
| 39 | # |
---|
| 40 | # 2380 2017-09-01 08:33:46Z raasch |
---|
[2380] | 41 | # file renamed to Makefile_utilities |
---|
| 42 | # executables are created in current working directory |
---|
| 43 | # interpret_config removed |
---|
[1047] | 44 | # |
---|
| 45 | # 1046 2012-11-09 14:38:45Z maronga |
---|
[1046] | 46 | # code put under GPL (PALM 3.9) |
---|
| 47 | # |
---|
[503] | 48 | # utility programs are created separately for each block in the configuration |
---|
| 49 | # file, |
---|
[480] | 50 | # compare_palm_logs added |
---|
[492] | 51 | # added PROG3 in 'all:' statement (line 39, bugfix) |
---|
[22] | 52 | # |
---|
[480] | 53 | # Initial revision somewhere in 2003/04 |
---|
| 54 | # |
---|
[22] | 55 | # Description: |
---|
| 56 | # ------------ |
---|
[2380] | 57 | # Makefile for generating the utility programs required by mrun and palm |
---|
[2696] | 58 | #------------------------------------------------------------------------------# |
---|
[22] | 59 | |
---|
[2380] | 60 | PROG1 = combine_plot_fields.x |
---|
| 61 | PROG2 = compare_palm_logs.x |
---|
[3208] | 62 | PROG3 = agent_preprocessing |
---|
[3499] | 63 | #PROG4 = surface_output_to_vtk |
---|
[22] | 64 | |
---|
| 65 | OBJS1 = combine_plot_fields.o |
---|
[480] | 66 | OBJS2 = compare_palm_logs.o |
---|
[3208] | 67 | OBJS3 = agent_preprocessing.o |
---|
[3499] | 68 | #OBJS4 = surface_output_to_vtk.o |
---|
[22] | 69 | |
---|
| 70 | CC = cc |
---|
| 71 | CFLAGS = -O |
---|
| 72 | |
---|
| 73 | F90 = |
---|
[27] | 74 | F90_SER = |
---|
[22] | 75 | COPT = |
---|
| 76 | F90FLAGS = |
---|
| 77 | LDFLAGS = |
---|
| 78 | |
---|
| 79 | .SUFFIXES: $(SUFFIXES) .f90 |
---|
| 80 | |
---|
| 81 | |
---|
[3494] | 82 | all: $(PROG1) $(PROG2) $(PROG3) $(PROG4) |
---|
[22] | 83 | |
---|
| 84 | $(PROG1): $(OBJS1) |
---|
[27] | 85 | $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS) |
---|
[22] | 86 | |
---|
| 87 | $(PROG2): $(OBJS2) |
---|
[27] | 88 | $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS) |
---|
[22] | 89 | |
---|
[480] | 90 | $(PROG3): $(OBJS3) |
---|
| 91 | $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS) |
---|
| 92 | |
---|
[3499] | 93 | #$(PROG4): $(OBJS4) |
---|
| 94 | # $(F90_SER) -o $(PROG4) $(OBJS4) $(LDFLAGS) |
---|
[3494] | 95 | |
---|
[22] | 96 | .f90.o: |
---|
[27] | 97 | $(F90_SER) $(F90FLAGS) $(COPT) -c $< |
---|
[22] | 98 | |
---|
| 99 | |
---|