source: palm/trunk/UTIL/Makefile_utilities @ 2380

Last change on this file since 2380 was 2380, checked in by raasch, 7 years ago

initial versions for new scripts palmrun and palmbuild

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#--------------------------------------------------------------------------------#
2# This file is part of PALM.
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-2014  Leibniz Universitaet Hannover
16#--------------------------------------------------------------------------------#
17#
18# Current revisions:
19# -----------------
20# file renamed to Makefile_utilities
21# executables are created in current working directory
22# interpret_config removed
23#
24# Former revisions:
25# -----------------
26# $Id: Makefile_utilities 2380 2017-09-01 08:33:46Z raasch $
27#
28# 1046 2012-11-09 14:38:45Z maronga
29# code put under GPL (PALM 3.9)
30#
31# utility programs are created separately for each block in the configuration
32# file,
33# compare_palm_logs added
34# added PROG3 in 'all:' statement (line 39, bugfix)
35#
36# Initial revision somewhere in 2003/04
37#
38# Description:
39# ------------
40# Makefile for generating the utility programs required by mrun and palm
41#--------------------------------------------------------------------------------#
42
43PROG1 =  combine_plot_fields.x
44PROG2 =  compare_palm_logs.x
45
46OBJS1 =  combine_plot_fields.o
47OBJS2 =  compare_palm_logs.o
48
49CC = cc
50CFLAGS = -O
51
52F90 =
53F90_SER =
54COPT =
55F90FLAGS =
56LDFLAGS =
57
58.SUFFIXES: $(SUFFIXES) .f90
59
60
61all: $(PROG1) $(PROG2) $(PROG3)
62
63$(PROG1): $(OBJS1)
64        $(F90_SER) -o $(PROG1) $(OBJS1) $(LDFLAGS)
65
66$(PROG2): $(OBJS2)
67        $(F90_SER) -o $(PROG2) $(OBJS2) $(LDFLAGS)
68
69$(PROG3): $(OBJS3)
70        $(F90_SER) -o $(PROG3) $(OBJS3) $(LDFLAGS)
71
72.f90.o:
73        $(F90_SER) $(F90FLAGS) $(COPT) -c $<
74
75
Note: See TracBrowser for help on using the repository browser.