source: palm/trunk/UTIL/Makefile_utilities @ 3523

Last change on this file since 3523 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
RevLine 
[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 3523 2018-11-13 16:09:31Z suehring $
[3523]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
[3499]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
[3494]33# Added make directive for surface-output post-processing
34#
35# 3208 2018-08-27 13:10:50Z sward
[3208]36# Added make directive for agent_preprocessing tool
37#
38# 2718 2018-01-02 08:49:38Z maronga
[2716]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
[2380]45# file renamed to Makefile_utilities
46# executables are created in current working directory
47# interpret_config removed
[1047]48#
49# 1046 2012-11-09 14:38:45Z maronga
[1046]50# code put under GPL (PALM 3.9)
51#
[503]52# utility programs are created separately for each block in the configuration
53# file,
[480]54# compare_palm_logs added
[492]55# added PROG3 in 'all:' statement (line 39, bugfix)
[22]56#
[480]57# Initial revision somewhere in 2003/04
58#
[22]59# Description:
60# ------------
[2380]61# Makefile for generating the utility programs required by mrun and palm
[2696]62#------------------------------------------------------------------------------#
[22]63
[2380]64PROG1 =  combine_plot_fields.x
65PROG2 =  compare_palm_logs.x
[3208]66PROG3 =  agent_preprocessing
[3523]67PROG4 =  surface_output_to_vtk
[22]68
69OBJS1 =  combine_plot_fields.o
[480]70OBJS2 =  compare_palm_logs.o
[3208]71OBJS3 =  agent_preprocessing.o
[3523]72OBJS4 =  surface_output_to_vtk.o
[22]73
74CC = cc
75CFLAGS = -O
76
77F90 =
[27]78F90_SER =
[22]79COPT =
80F90FLAGS =
81LDFLAGS =
82
83.SUFFIXES: $(SUFFIXES) .f90
84
85
[3494]86all: $(PROG1) $(PROG2) $(PROG3) $(PROG4)
[22]87
88$(PROG1): $(OBJS1)
[27]89        $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS)
[22]90
91$(PROG2): $(OBJS2)
[27]92        $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS)
[22]93
[480]94$(PROG3): $(OBJS3)
95        $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS)
96
[3523]97$(PROG4): $(OBJS4)
98        $(F90_SER) -o $(PROG4) $(OBJS4) $(LDFLAGS)
[3494]99
[22]100.f90.o:
[27]101        $(F90_SER) $(F90FLAGS) $(COPT) -c $<
[22]102
103
Note: See TracBrowser for help on using the repository browser.