source: palm/trunk/UTIL/Makefile_utilities @ 3793

Last change on this file since 3793 was 3793, checked in by raasch, 3 years ago

bugfix for suffix setting in utility makefile

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