aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-05 18:15:03 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-05 18:15:03 +0000
commit5de37dc4bca73f0c41f24b6860fc7e36a8ec0af2 (patch)
treefd13076fb86b227978a3fff414b2b68ad5924b91 /src
parent12b54fde7e392a05f91480ef6154a3725850a71f (diff)
split off Cactus build from quick-n-dirty test driver build
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@439 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r--src/patch/make.code.defn14
-rw-r--r--src/patch/makefile41
2 files changed, 55 insertions, 0 deletions
diff --git a/src/patch/make.code.defn b/src/patch/make.code.defn
new file mode 100644
index 0000000..f061fb6
--- /dev/null
+++ b/src/patch/make.code.defn
@@ -0,0 +1,14 @@
+# Main make.code.defn file for thorn AHFinderDirect
+# $Header$
+
+# Source files in this directory
+SRCS = coords.cc \
+ grid.cc \
+ fd_grid.cc \
+ patch.cc \
+ ghost_zone.cc \
+ patch_frontier.cc \
+ patch_system.cc
+
+# Subdirectories containing source files
+SUBDIRS = jtutil util
diff --git a/src/patch/makefile b/src/patch/makefile
new file mode 100644
index 0000000..2a9e4d7
--- /dev/null
+++ b/src/patch/makefile
@@ -0,0 +1,41 @@
+# Makefile for standalone test drivers in this directory
+# $Id: makefile,v 1.1 2002-04-05 18:15:03 jthorn Exp $
+#
+# CC, CXX = C and C++ compilers. Defaults are gcc and g++ if
+# variables aren't set from command line or environment.
+# CC_FLAGS, CXX_FLAGS = C++ compiler flags. Defaults are
+# $(STD_GCC_FLAGS) -I.. -g
+# and
+# $(STD_GXX_FLAGS) -I.. -g
+# if variables aren't set from command line or
+# environment.
+#
+# Targets:
+# test ==> build test programs
+# clean ==> delete object files, test drivers
+# superclean ==> delete object files, test drivers
+#
+# Bugs:
+# - Dependencies on *.hh are omitted.
+#
+
+CXX := g++
+CFLAGS := $(STD_GCC_FLAGS) -I.. -g
+CXXFLAGS := $(STD_GXX_FLAGS) -I.. -g
+
+## FIXME: why doesn't this work???
+##JTUTIL_OJB := $(filter-out ../jtutil/test%, $(wildcard ../jtutil/*.o))
+##foo :
+## @echo JTUTIL_OBJ $(JTUTIL_OBJ)
+JTUTIL_OBJ := ../jtutil/array.o \
+ ../jtutil/cpm_map.o ../jtutil/linear_map.o \
+ ../jtutil/fuzzy.o ../jtutil/round.o \
+ ../jtutil/norm.o ../jtutil/miscfp.o \
+ ../jtutil/error_exit.o
+
+################################################################################
+
+test : test_coords test_coords2
+
+test_coords : test_coords.o coords.o $(JTUTIL_OBJ) -lm
+test_coords2 : test_coords2.o coords.o $(JTUTIL_OBJ) -lm