[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 2718 2018-01-02 08:49:38Z suehring $ |
---|
[2716] | 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 |
---|
[2380] | 31 | # file renamed to Makefile_utilities |
---|
| 32 | # executables are created in current working directory |
---|
| 33 | # interpret_config removed |
---|
[1047] | 34 | # |
---|
| 35 | # 1046 2012-11-09 14:38:45Z maronga |
---|
[1046] | 36 | # code put under GPL (PALM 3.9) |
---|
| 37 | # |
---|
[503] | 38 | # utility programs are created separately for each block in the configuration |
---|
| 39 | # file, |
---|
[480] | 40 | # compare_palm_logs added |
---|
[492] | 41 | # added PROG3 in 'all:' statement (line 39, bugfix) |
---|
[22] | 42 | # |
---|
[480] | 43 | # Initial revision somewhere in 2003/04 |
---|
| 44 | # |
---|
[22] | 45 | # Description: |
---|
| 46 | # ------------ |
---|
[2380] | 47 | # Makefile for generating the utility programs required by mrun and palm |
---|
[2696] | 48 | #------------------------------------------------------------------------------# |
---|
[22] | 49 | |
---|
[2380] | 50 | PROG1 = combine_plot_fields.x |
---|
| 51 | PROG2 = compare_palm_logs.x |
---|
[22] | 52 | |
---|
| 53 | OBJS1 = combine_plot_fields.o |
---|
[480] | 54 | OBJS2 = compare_palm_logs.o |
---|
[22] | 55 | |
---|
| 56 | CC = cc |
---|
| 57 | CFLAGS = -O |
---|
| 58 | |
---|
| 59 | F90 = |
---|
[27] | 60 | F90_SER = |
---|
[22] | 61 | COPT = |
---|
| 62 | F90FLAGS = |
---|
| 63 | LDFLAGS = |
---|
| 64 | |
---|
| 65 | .SUFFIXES: $(SUFFIXES) .f90 |
---|
| 66 | |
---|
| 67 | |
---|
[492] | 68 | all: $(PROG1) $(PROG2) $(PROG3) |
---|
[22] | 69 | |
---|
| 70 | $(PROG1): $(OBJS1) |
---|
[27] | 71 | $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS) |
---|
[22] | 72 | |
---|
| 73 | $(PROG2): $(OBJS2) |
---|
[27] | 74 | $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS) |
---|
[22] | 75 | |
---|
[480] | 76 | $(PROG3): $(OBJS3) |
---|
| 77 | $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS) |
---|
| 78 | |
---|
[22] | 79 | .f90.o: |
---|
[27] | 80 | $(F90_SER) $(F90FLAGS) $(COPT) -c $< |
---|
[22] | 81 | |
---|
| 82 | |
---|