source: palm/trunk/UTIL/Makefile_utilities @ 3525

Last change on this file since 3525 was 3523, checked in by suehring, 6 years ago

Implement interface for posix conform C-systemcalls in order to replace non-standard FORTRAN functions ftell and fseek

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