diff options
Diffstat (limited to 'src/jtutil/Makefile')
-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 : |