diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-06-29 13:38:58 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-06-29 13:38:58 +0000 |
commit | 179b898ae71c19e09efa49920cb18c7e79b6adcc (patch) | |
tree | 9fbddb8632c0a3b3fe2d70e240ff2f5351fa177e /src | |
parent | 491e4e95f56c339519679ed6b026451df0d0573a (diff) |
* now determins library name from last component of `pwd`
* add cg target to rerun Maple for machine-generated code
==> this Makefile can be used for ../libinterp/
(and in the future maybe other directories too)
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@123 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src')
-rw-r--r-- | src/jtutil/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/jtutil/Makefile b/src/jtutil/Makefile index 7d76e8e..cd96f90 100644 --- a/src/jtutil/Makefile +++ b/src/jtutil/Makefile @@ -1,5 +1,5 @@ -# Makefile for JT utility library -# $Id: Makefile,v 1.5 2001-06-29 13:09:25 jthorn Exp $ +# Makefile for utility libraries +# $Id: Makefile,v 1.6 2001-06-29 13:38:58 jthorn Exp $ # # This Makefile can be called either as part of a Cactus build # (in which case it expects the usual Cactus Makefile variables to be @@ -19,8 +19,10 @@ # environment. # # Targets: -# lib ==> build libutil.a in the current directory -# from all source files except test* +# cg ==> run Maple to regenerate any machine-generated +# code in this directory +# lib ==> build `basename $cwd`.a in the current +# directory from all source files except test* # test ==> build test programs # clean ==> delete object files, test drivers # superclean ==> delete object files, test drivers, !library! @@ -60,7 +62,8 @@ endif # note '%' = wildcard character for $(filter-out ...) # but '*' = wildcard character for shell used by $(wildcard ...) -LIB := libutil.a +CWD := $(shell pwd) +LIB := $(notdir $(CWD)).a LIB_CFILES := $(filter-out $(SRCDIR)/test%, $(wildcard $(SRCDIR)/*.c)) LIB_CCFILES := $(filter-out $(SRCDIR)/test%, $(wildcard $(SRCDIR)/*.cc)) LIB_OFILES := $(LIB_CFILES:.c=.o) $(LIB_CCFILES:.cc=.o) @@ -87,9 +90,9 @@ test : $(TEST_BINARIES) $(TEST_BINARIES): %: %.cc -lutil $(CXX) $(CXXFLAGS) -o $@ $^ -.PHONY : interpolate.maple -interpolate.maple: - maple <interpolate.maple >interpolate.out +.PHONY : cg +cg : + maple <doit.maple | tee maple.log .PHONY : clean clean : |