source: palm/trunk/UTIL/Makefile_utilities @ 4789

Last change on this file since 4789 was 4481, checked in by maronga, 5 years ago

Bugfix for copyright updates in document_changes; copyright update applied to all files

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