1
by hhiester
deleting initialisation as none of tools are used any longer. |
1 |
# Copyright (C) 2006 Imperial College London and others.
|
2 |
#
|
|
3 |
# Please see the AUTHORS file in the main source directory for a full list
|
|
4 |
# of copyright holders.
|
|
5 |
#
|
|
6 |
# Prof. C Pain
|
|
7 |
# Applied Modelling and Computation Group
|
|
8 |
# Department of Earth Science and Engineering
|
|
9 |
# Imperial College London
|
|
10 |
#
|
|
2392
by tmb1
Changing isntances of Chris' person email address to the group |
11 |
# amcgsoftware@imperial.ac.uk
|
1
by hhiester
deleting initialisation as none of tools are used any longer. |
12 |
#
|
13 |
# This library is free software; you can redistribute it and/or
|
|
14 |
# modify it under the terms of the GNU Lesser General Public
|
|
15 |
# License as published by the Free Software Foundation,
|
|
16 |
# version 2.1 of the License.
|
|
17 |
#
|
|
18 |
# This library is distributed in the hope that it will be useful,
|
|
19 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
21 |
# Lesser General Public License for more details.
|
|
22 |
#
|
|
23 |
# You should have received a copy of the GNU Lesser General Public
|
|
24 |
# License along with this library; if not, write to the Free Software
|
|
25 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
26 |
# USA
|
|
27 |
||
28 |
SHELL = @SHELL@ |
|
29 |
||
3671
by Gerard Gorman
This commit focuses on adding the make install rule. |
30 |
PACKAGE_NAME = @PACKAGE_NAME@ |
31 |
FLUIDITY = $(PACKAGE_NAME) |
|
32 |
||
1
by hhiester
deleting initialisation as none of tools are used any longer. |
33 |
FC = @FC@ |
3405.1.4
by david.ham at ac
Working towards having all the directories covered |
34 |
FCFLAGS = -I../include @MOD_FLAG@../include @CPPFLAGS@ @FCFLAGS@ -I/usr/local/include -I./ |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
35 |
|
36 |
MPIF90 = @MPIF90@ |
|
37 |
||
38 |
CC = @CC@ |
|
39 |
CFLAGS = @CPPFLAGS@ @CFLAGS@ -I../include -I/usr/local/include |
|
40 |
||
41 |
CXX = @CXX@ |
|
42 |
CXXFLAGS= @CPPFLAGS@ @CXXFLAGS@ -I../include -I/usr/local/include |
|
43 |
||
44 |
MAKE = @MAKE@ |
|
45 |
||
46 |
AR = @AR@ |
|
47 |
ARFLAGS = @ARFLAGS@ |
|
48 |
||
3671
by Gerard Gorman
This commit focuses on adding the make install rule. |
49 |
LIB = ../lib/lib$(FLUIDITY).a |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
50 |
|
51 |
OBJS = C++_Debug.o Debug.o Debug_Parameters.o Diagnostic_Output.o |
|
52 |
||
53 |
.SUFFIXES: .f90 .F90 .cpp .c .o .a |
|
54 |
||
55 |
# cancel implicit rule that tries to make .o from .mod with m2c:
|
|
56 |
%.o: %.mod |
|
57 |
||
3405.1.5
by david.ham at ac
Rather confusing merge and update because I don't yet understand bzr merging sufficiently well. |
58 |
|
1
by hhiester
deleting initialisation as none of tools are used any longer. |
59 |
.F90.o: |
60 |
@echo " FC $<" |
|
3405.1.5
by david.ham at ac
Rather confusing merge and update because I don't yet understand bzr merging sufficiently well. |
61 |
$(FC) $(FCFLAGS) $(GENFLAGS) -c $< |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
62 |
.c.o: |
63 |
@echo " CC $<" |
|
3461.1.3
by Patrick Farrell
With the new Makefile.in setup, deleting libfluidity.a is a Bad Idea |
64 |
$(CC) $(CFLAGS) -c $< |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
65 |
.cpp.o: |
66 |
@echo " CXX $<" |
|
3461.1.3
by Patrick Farrell
With the new Makefile.in setup, deleting libfluidity.a is a Bad Idea |
67 |
$(CXX) $(CXXFLAGS) -c $< |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
68 |
|
3460
by Patrick Farrell
An orthogonal change to the build process. |
69 |
$(LIB): $(OBJS) |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
70 |
@mkdir -p ../lib |
3540.1.1
by Jon Hill
Fix for the ext3 bug. libfluidity now built by the main Makefile, rather than being added to along the way |
71 |
|
3460
by Patrick Farrell
An orthogonal change to the build process. |
72 |
default: $(LIB) |
1
by hhiester
deleting initialisation as none of tools are used any longer. |
73 |
|
74 |
||
75 |
$(F90LIB): $(F90LIB_OBJS) |
|
76 |
@mkdir -p ../lib |
|
77 |
$(AR) $(ARFLAGS) $(F90LIB).a $(F90LIB_OBJS) |
|
78 |
||
79 |
clean: |
|
80 |
rm -f *.o *.mod |
|
3405.1.4
by david.ham at ac
Working towards having all the directories covered |
81 |
|
3405.1.10
by david.ham at ac
significant cleanup of the python script. Split makefile dependencies out |
82 |
include Makefile.dependencies
|