source: palm/trunk/UTIL/Makefile_utilities @ 3538

Last change on this file since 3538 was 3534, checked in by raasch, 6 years ago

inifor integrated in build mechanism, some bugfixes in inifor to avoid compile time errors, batch_scp for sending back the job protocol file is called via login-node if a login-node has been set in the config-file, ssh-calls rearranged to avoid output of system/user-profile messages

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