From 4cdea23215684e816418bf7499933d3844ede43c Mon Sep 17 00:00:00 2001 From: jthorn Date: Thu, 31 Jul 2003 17:30:20 +0000 Subject: rename makefile to Makefile to stand out from other files in this directory; since this directory is never seen by the Cactus build system there's no problem with either name... git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1170 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- doc/Makefile | 61 ++++++++++++++++++++++++++++++++++++++++++ doc/makefile | 61 ------------------------------------------ src/cctest/inline-fns/Makefile | 35 ++++++++++++++++++++++++ src/cctest/inline-fns/makefile | 35 ------------------------ src/cctest/namespace/Makefile | 58 +++++++++++++++++++++++++++++++++++++++ src/cctest/namespace/makefile | 58 --------------------------------------- src/cctest/vector/Makefile | 58 +++++++++++++++++++++++++++++++++++++++ src/cctest/vector/makefile | 58 --------------------------------------- src/maple/Makefile | 34 +++++++++++++++++++++++ src/maple/makefile | 34 ----------------------- 10 files changed, 246 insertions(+), 246 deletions(-) create mode 100644 doc/Makefile delete mode 100644 doc/makefile create mode 100644 src/cctest/inline-fns/Makefile delete mode 100644 src/cctest/inline-fns/makefile create mode 100644 src/cctest/namespace/Makefile delete mode 100644 src/cctest/namespace/makefile create mode 100644 src/cctest/vector/Makefile delete mode 100644 src/cctest/vector/makefile create mode 100644 src/maple/Makefile delete mode 100644 src/maple/makefile diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..dadc3b5 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,61 @@ +# Makefile for documentation +# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/doc/Makefile,v 1.7 2003-07-31 17:30:20 jthorn Exp $ + +# +# ***** main targets ***** +# default latex & dvips everything +# bib bibtex everything +# clean remove all machine-generated files +# +# ***** targets for rebuilding figures in the thorn guide ***** +# 3patch-cactus run Cactus to generate the data file for the +# 3patch figure +# 3patch-gnuplot run gnuplot to generate the postscript file +# for the 3patch figure +# + +# +# Note this Makefile always re-TeXs things, even if the .tex files +# haven't changed (and similarly for dvips); this ensures that changes +# to macros, included stuff from other directories, etc, get "used". +# To implement this, we declare the .dvi and .ps files as "PHONY". +# + +############################################################################### + +# +# ***** main targets ***** +# + +.PHONY : default +default : ps + +.PHONY : ps +ps : dvi + dvips -f documentation.ps + +.PHONY : dvi +dvi : + latex documentation + +.PHONY : bib +bib : + bibtex documentation + +.PHONY : clean +clean : + -rm *.dvi *.ps *.aux *.bbl *.log *.blg + +############################################################################### + +# +# ***** targets for rebuilding figures in the thorn guide ***** +# + +.PHONY : 3patch-cactus +3patch-cactus : + cactus_test-ahfinderdirect 3patch.par 2>&1 | tee 3patch.log + +.PHONY : 3patch-gnuplot +3patch-gnuplot : + gnuplot 3patch.gnuplot diff --git a/doc/makefile b/doc/makefile deleted file mode 100644 index ab8680c..0000000 --- a/doc/makefile +++ /dev/null @@ -1,61 +0,0 @@ -# Makefile for documentation -# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/doc/makefile,v 1.3 2002-10-17 22:27:44 jthorn Exp $ - -# -# ***** main targets ***** -# default latex & dvips everything -# bib bibtex everything -# clean remove all machine-generated files -# -# ***** targets for rebuilding figures in the thorn guide ***** -# 3patch-cactus run Cactus to generate the data file for the -# 3patch figure -# 3patch-gnuplot run gnuplot to generate the postscript file -# for the 3patch figure -# - -# -# Note this Makefile always re-TeXs things, even if the .tex files -# haven't changed (and similarly for dvips); this ensures that changes -# to macros, included stuff from other directories, etc, get "used". -# To implement this, we declare the .dvi and .ps files as "PHONY". -# - -############################################################################### - -# -# ***** main targets ***** -# - -.PHONY : default -default : ps - -.PHONY : ps -ps : dvi - dvips -f documentation.ps - -.PHONY : dvi -dvi : - latex documentation - -.PHONY : bib -bib : - bibtex documentation - -.PHONY : clean -clean : - -rm *.dvi *.ps *.aux *.bbl *.log *.blg - -############################################################################### - -# -# ***** targets for rebuilding figures in the thorn guide ***** -# - -.PHONY : 3patch-cactus -3patch-cactus : - cactus_test-ahfinderdirect 3patch.par 2>&1 | tee 3patch.log - -.PHONY : 3patch-gnuplot -3patch-gnuplot : - gnuplot 3patch.gnuplot diff --git a/src/cctest/inline-fns/Makefile b/src/cctest/inline-fns/Makefile new file mode 100644 index 0000000..62d652b --- /dev/null +++ b/src/cctest/inline-fns/Makefile @@ -0,0 +1,35 @@ +# Makefile to test various C/C++ compiler features +# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/cctest/inline-fns/Makefile,v 1.1 2003-07-31 17:29:48 jthorn Exp $ +# +# Targets: +# default inline-fn inline-class +# inline-fn test non-class inline function in .cc file +# inline-fn2 test non-class inline function in header file +# inline-class test class with inline function +# clean remove all binaries +# +# Arguments: +# CXX how to invoke the C++ compiler, including any desired flags +# + +# default setting, may be overridden from command line +CXX := g++ -W -Wall -pedantic -ansi + +.PHONY : default +default : inline-fn inline-fn2 inline-class + +.PHONY : inline-fn +inline-fn: + $(CXX) -o inline-fn inline-fn.cc + +.PHONY : inline-fn2 +inline-fn2: + $(CXX) -o inline-fn2 inline-fn2.cc + +.PHONY : inline-class +inline-class: + $(CXX) -o inline-class inline-class.cc + +.PHONY : clean +clean : + -rm inline-fn inline-fn2 inline-class diff --git a/src/cctest/inline-fns/makefile b/src/cctest/inline-fns/makefile deleted file mode 100644 index 4ff45f4..0000000 --- a/src/cctest/inline-fns/makefile +++ /dev/null @@ -1,35 +0,0 @@ -# Makefile to test various C/C++ compiler features -# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/cctest/inline-fns/makefile,v 1.3 2003-03-25 17:18:42 jthorn Exp $ -# -# Targets: -# default inline-fn inline-class -# inline-fn test non-class inline function in .cc file -# inline-fn2 test non-class inline function in header file -# inline-class test class with inline function -# clean remove all binaries -# -# Arguments: -# CXX how to invoke the C++ compiler, including any desired flags -# - -# default setting, may be overridden from command line -CXX := g++ -W -Wall -pedantic -ansi - -.PHONY : default -default : inline-fn inline-fn2 inline-class - -.PHONY : inline-fn -inline-fn: - $(CXX) -o inline-fn inline-fn.cc - -.PHONY : inline-fn2 -inline-fn2: - $(CXX) -o inline-fn2 inline-fn2.cc - -.PHONY : inline-class -inline-class: - $(CXX) -o inline-class inline-class.cc - -.PHONY : clean -clean : - -rm inline-fn inline-fn2 inline-class diff --git a/src/cctest/namespace/Makefile b/src/cctest/namespace/Makefile new file mode 100644 index 0000000..923fdf2 --- /dev/null +++ b/src/cctest/namespace/Makefile @@ -0,0 +1,58 @@ +# Makefile to test various C/C++ compiler features +# +# Targets: +# default test namespace handling for and +# stdio_h test namespace handling for +# cstdio test namespace handling for +# clean remove all binaries +# +# Arguments: +# CXX how to invoke the C++ compiler, including any desired flags +# + +# default setting, may be overridden from command line +CXX := g++ -W -Wall -pedantic -ansi + +.PHONY : default +default : stdio_h cstdio + +.PHONY : stdio_h +stdio_h : + -$(CXX) -o stdio_h-global \ + stdio_h-global.cc + -./stdio_h-global + -$(CXX) -o stdio_h-std--std-printf \ + stdio_h-std--std-printf.cc + -./stdio_h-std--std-printf + -$(CXX) -o stdio_h-std--using-std-printf \ + stdio_h-std--using-std-printf.cc + -./stdio_h-std--using-std-printf + -$(CXX) -o stdio_h-std--using-namespace-std \ + stdio_h-std--using-namespace-std.cc + -./stdio_h-std--using-namespace-std + +.PHONY : cstdio +cstdio : + -$(CXX) -o cstdio-global \ + cstdio-global.cc + -./cstdio-global + -$(CXX) -o cstdio-std--std-printf \ + cstdio-std--std-printf.cc + -./cstdio-std--std-printf + -$(CXX) -o cstdio-std--using-std-printf \ + cstdio-std--using-std-printf.cc + -./cstdio-std--using-std-printf + -$(CXX) -o cstdio-std--using-namespace-std \ + cstdio-std--using-namespace-std.cc + -./cstdio-std--using-namespace-std + +.PHONY : clean +clean : + -rm -f stdio_h-global \ + stdio_h-std--std-printf \ + stdio_h-std--using-std-printf \ + stdio_h-std--using-namespace-std + -rm -f cstdio-global \ + cstdio-std--std-printf \ + cstdio-std--using-std-printf \ + cstdio-std--using-namespace-std diff --git a/src/cctest/namespace/makefile b/src/cctest/namespace/makefile deleted file mode 100644 index 923fdf2..0000000 --- a/src/cctest/namespace/makefile +++ /dev/null @@ -1,58 +0,0 @@ -# Makefile to test various C/C++ compiler features -# -# Targets: -# default test namespace handling for and -# stdio_h test namespace handling for -# cstdio test namespace handling for -# clean remove all binaries -# -# Arguments: -# CXX how to invoke the C++ compiler, including any desired flags -# - -# default setting, may be overridden from command line -CXX := g++ -W -Wall -pedantic -ansi - -.PHONY : default -default : stdio_h cstdio - -.PHONY : stdio_h -stdio_h : - -$(CXX) -o stdio_h-global \ - stdio_h-global.cc - -./stdio_h-global - -$(CXX) -o stdio_h-std--std-printf \ - stdio_h-std--std-printf.cc - -./stdio_h-std--std-printf - -$(CXX) -o stdio_h-std--using-std-printf \ - stdio_h-std--using-std-printf.cc - -./stdio_h-std--using-std-printf - -$(CXX) -o stdio_h-std--using-namespace-std \ - stdio_h-std--using-namespace-std.cc - -./stdio_h-std--using-namespace-std - -.PHONY : cstdio -cstdio : - -$(CXX) -o cstdio-global \ - cstdio-global.cc - -./cstdio-global - -$(CXX) -o cstdio-std--std-printf \ - cstdio-std--std-printf.cc - -./cstdio-std--std-printf - -$(CXX) -o cstdio-std--using-std-printf \ - cstdio-std--using-std-printf.cc - -./cstdio-std--using-std-printf - -$(CXX) -o cstdio-std--using-namespace-std \ - cstdio-std--using-namespace-std.cc - -./cstdio-std--using-namespace-std - -.PHONY : clean -clean : - -rm -f stdio_h-global \ - stdio_h-std--std-printf \ - stdio_h-std--using-std-printf \ - stdio_h-std--using-namespace-std - -rm -f cstdio-global \ - cstdio-std--std-printf \ - cstdio-std--using-std-printf \ - cstdio-std--using-namespace-std diff --git a/src/cctest/vector/Makefile b/src/cctest/vector/Makefile new file mode 100644 index 0000000..71d6b5d --- /dev/null +++ b/src/cctest/vector/Makefile @@ -0,0 +1,58 @@ +# Makefile to test various C/C++ compiler features +# +# Targets: +# default test namespace handling for and +# vector_h test namespace handling for +# vector test namespace handling for +# clean remove all binaries +# +# Arguments: +# CXX how to invoke the C++ compiler, including any desired flags +# + +# default setting, may be overridden from command line +CXX := g++ -W -Wall -pedantic -ansi + +.PHONY : default +default : vector_h vector + +.PHONY : vector_h +vector_h : + -$(CXX) -o vector_h-global \ + vector_h-global.cc + -./vector_h-global + -$(CXX) -o vector_h-std--std-vector \ + vector_h-std--std-vector.cc + -./vector_h-std--std-vector + -$(CXX) -o vector_h-std--using-std-vector \ + vector_h-std--using-std-vector.cc + -./vector_h-std--using-std-vector + -$(CXX) -o vector_h-std--using-namespace-std \ + vector_h-std--using-namespace-std.cc + -./vector_h-std--using-namespace-std + +.PHONY : vector +vector : + -$(CXX) -o vector-global \ + vector-global.cc + -./vector-global + -$(CXX) -o vector-std--std-vector \ + vector-std--std-vector.cc + -./vector-std--std-vector + -$(CXX) -o vector-std--using-std-vector \ + vector-std--using-std-vector.cc + -./vector-std--using-std-vector + -$(CXX) -o vector-std--using-namespace-std \ + vector-std--using-namespace-std.cc + -./vector-std--using-namespace-std + +.PHONY : clean +clean : + -rm -f vector_h-global \ + vector_h-std--std-vector \ + vector_h-std--using-std-vector \ + vector_h-std--using-namespace-std + -rm -f vector-global \ + vector-std--std-vector \ + vector-std--using-std-vector \ + vector-std--using-namespace-std diff --git a/src/cctest/vector/makefile b/src/cctest/vector/makefile deleted file mode 100644 index 71d6b5d..0000000 --- a/src/cctest/vector/makefile +++ /dev/null @@ -1,58 +0,0 @@ -# Makefile to test various C/C++ compiler features -# -# Targets: -# default test namespace handling for and -# vector_h test namespace handling for -# vector test namespace handling for -# clean remove all binaries -# -# Arguments: -# CXX how to invoke the C++ compiler, including any desired flags -# - -# default setting, may be overridden from command line -CXX := g++ -W -Wall -pedantic -ansi - -.PHONY : default -default : vector_h vector - -.PHONY : vector_h -vector_h : - -$(CXX) -o vector_h-global \ - vector_h-global.cc - -./vector_h-global - -$(CXX) -o vector_h-std--std-vector \ - vector_h-std--std-vector.cc - -./vector_h-std--std-vector - -$(CXX) -o vector_h-std--using-std-vector \ - vector_h-std--using-std-vector.cc - -./vector_h-std--using-std-vector - -$(CXX) -o vector_h-std--using-namespace-std \ - vector_h-std--using-namespace-std.cc - -./vector_h-std--using-namespace-std - -.PHONY : vector -vector : - -$(CXX) -o vector-global \ - vector-global.cc - -./vector-global - -$(CXX) -o vector-std--std-vector \ - vector-std--std-vector.cc - -./vector-std--std-vector - -$(CXX) -o vector-std--using-std-vector \ - vector-std--using-std-vector.cc - -./vector-std--using-std-vector - -$(CXX) -o vector-std--using-namespace-std \ - vector-std--using-namespace-std.cc - -./vector-std--using-namespace-std - -.PHONY : clean -clean : - -rm -f vector_h-global \ - vector_h-std--std-vector \ - vector_h-std--using-std-vector \ - vector_h-std--using-namespace-std - -rm -f vector-global \ - vector-std--std-vector \ - vector-std--using-std-vector \ - vector-std--using-namespace-std diff --git a/src/maple/Makefile b/src/maple/Makefile new file mode 100644 index 0000000..8b17ffa --- /dev/null +++ b/src/maple/Makefile @@ -0,0 +1,34 @@ +# Makefile for maple code +# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/maple/Makefile,v 1.4 2003-07-31 17:25:49 jthorn Exp $ + +# +# Environment Variables: +# MAPLE_VERSION used via @ifdef for version control in Maple code; +# typically set to something like MAPLE_V_RELEASE_4 +# (not presently used, but may be needed in the future) +# +# Targets: +# mm ==> preprocess all *.maple files to produce *.mm files +# clean ==> delete *.mm (mpp Maple preprocessor output) +# run ==> load all the code into Maple +# + +ifneq ($(MAPLE_VERSION),) +MPP_FLAGS := -D$(MAPLE_VERSION) +endif + +############################################################################### + +.PHONY : mm +mm : $(patsubst %.maple, %.mm, $(wildcard *.maple)) + +%.mm : %.maple $(wildcard *.minc $(gfa_dir)/*.minc $(gfa_dir)/*.maple) + ../misc/mpp $(MPP_FLAGS) <$< >$@ + +.PHONY : clean +clean : + -rm *.mm + +.PHONY : run +run : mm + maple -f maple.log diff --git a/src/maple/makefile b/src/maple/makefile deleted file mode 100644 index f1ab80f..0000000 --- a/src/maple/makefile +++ /dev/null @@ -1,34 +0,0 @@ -# Makefile for maple code -# $Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/maple/makefile,v 1.3 2002-09-16 14:12:35 jthorn Exp $ - -# -# Environment Variables: -# MAPLE_VERSION used via @ifdef for version control in Maple code; -# typically set to something like MAPLE_V_RELEASE_4 -# (not presently used, but may be needed in the future) -# -# Targets: -# mm ==> preprocess all *.maple files to produce *.mm files -# clean ==> delete *.mm (mpp Maple preprocessor output) -# run ==> load all the code into Maple -# - -ifneq ($(MAPLE_VERSION),) -MPP_FLAGS := -D$(MAPLE_VERSION) -endif - -############################################################################### - -.PHONY : mm -mm : $(patsubst %.maple, %.mm, $(wildcard *.maple)) - -%.mm : %.maple $(wildcard *.minc $(gfa_dir)/*.minc $(gfa_dir)/*.maple) - ../misc/mpp $(MPP_FLAGS) <$< >$@ - -.PHONY : clean -clean : - -rm *.mm - -.PHONY : run -run : mm - maple -f maple.log -- cgit v1.2.3