[Yt-svn] yt: Adding a FORTHON_EXE variable check to the Makefile for the ...

hg at spacepope.org hg at spacepope.org
Tue Dec 21 09:11:41 PST 2010


hg Repository: yt
details:   yt/rev/b959ef852eef
changeset: 3623:b959ef852eef
user:      Matthew Turk <matthewturk at gmail.com>
date:
Tue Dec 21 09:11:34 2010 -0800
description:
Adding a FORTHON_EXE variable check to the Makefile for the kdtree

diffstat:

 yt/utilities/kdtree/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f5ec91bcb1ef -r b959ef852eef yt/utilities/kdtree/Makefile
--- a/yt/utilities/kdtree/Makefile	Mon Dec 20 15:44:13 2010 -0700
+++ b/yt/utilities/kdtree/Makefile	Tue Dec 21 09:11:34 2010 -0800
@@ -2,10 +2,16 @@
 # compile line, so pick the first of the two below. Otherwise, eliminate it, 
 # like the second, for a shared object.
 
+ifdef FORTHON_EXE
+FORTHON=$(FORTHON_EXE)
+else
+FORTHON=Forthon
+endif
 
 fKD: fKD.f90 fKD.v fKD_source.f90
 #	Forthon --compile_first fKD_source --no2underscores --with-numpy -g fKD fKD.f90 fKD_source.f90
-	Forthon -F gfortran --compile_first fKD_source --no2underscores --with-numpy --fopt "-O3" fKD fKD_source.f90
+	@echo "Using $(FORTHON) ($(FORTHON_EXE))"
+	$(FORTHON) -F gfortran --compile_first fKD_source --no2underscores --with-numpy --fopt "-O3" fKD fKD_source.f90
 
 clean:
 	rm -rf build fKDpy.a fKDpy.so



More information about the yt-svn mailing list