[cig-commits] r9190 - cs/avm/trunk

tan2 at geodynamics.org tan2 at geodynamics.org
Tue Jan 29 13:48:57 PST 2008


Author: tan2
Date: 2008-01-29 13:48:57 -0800 (Tue, 29 Jan 2008)
New Revision: 9190

Added:
   cs/avm/trunk/Makefile
Log:
Added Makefile

Added: cs/avm/trunk/Makefile
===================================================================
--- cs/avm/trunk/Makefile	                        (rev 0)
+++ cs/avm/trunk/Makefile	2008-01-29 21:48:57 UTC (rev 9190)
@@ -0,0 +1,63 @@
+##-*- Makefile -*-
+##<LicenseText>
+##
+## AVM by Leif Strand, Eh Tan,
+## Copyright (C) 2008, California Institute of Technology.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2 of the License, or
+## (at your option) any later version.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+## GNU General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+##
+##</LicenseText>
+##
+
+
+## C compiler
+CC = gcc
+
+## Fortran 90 compiler
+## (must be the same compiler for SpecFEM3D Globe)
+F90 = mpif90
+
+## Directory of SpecFEM3D Globe
+SPECFEM_HOME = ../SPECFEM3D_GLOBE_V3.6.1
+
+
+## Compiler flags
+CFLAGS = -O2
+FFLAGS = $(CFLAGS)
+PFLAGS = -I$(SPECFEM_HOME)
+
+##############################################################################
+
+
+all: avm-partition avm write_CitcomS_tracers
+
+
+clean:
+	@rm -f avm-partition avm write_CitcomS_tracers
+
+
+avm-partition: avm-partition.c
+	$(CC) $(CFLAGS) $(PFLAGS) -o $@ $@.c
+
+
+avm: avm.f90
+	$(F90) $(FFLAGS) $(PFLAGS) -o $@ $@.f90 $(SPECFEM_HOME)/obj/read_arrays_solver.o $(SPECFEM_HOME)/obj/libspecfem.a
+
+
+write_CitcomS_tracers: write_CitcomS_tracers.f90
+	$(F90) $(FFLAGS) $(PFLAGS) -o $@ $@.f90 $(SPECFEM_HOME)/obj/libspecfem.a
+
+
+



More information about the cig-commits mailing list