summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2020-03-18 19:01:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2020-03-18 19:01:55 (GMT)
commit383807715991e500fd71c87994a3b57dbba39ff3 (patch)
tree57a99aafb5d7f587b0e84a32f4c0c53d20c02893
parent85969638aa166f99917958935ab51000f64d8571 (diff)
downloadblt-383807715991e500fd71c87994a3b57dbba39ff3.zip
blt-383807715991e500fd71c87994a3b57dbba39ff3.tar.gz
blt-383807715991e500fd71c87994a3b57dbba39ff3.tar.bz2
libvector
-rw-r--r--make.include2
-rw-r--r--vector/Makefile22
2 files changed, 23 insertions, 1 deletions
diff --git a/make.include b/make.include
index b05a52e..af44558 100644
--- a/make.include
+++ b/make.include
@@ -334,7 +334,7 @@ tksao/Makefile :
#-------------------------- vector
-vector : vector/Makefile
+vector :
@echo ""
@echo "*** $@ ***"
$ CXX=$(CXX) AR=$(AR) $(MAKE) -C vector -j $(JOBS) install libdir=$(libdir) includedir=$(includedir)
diff --git a/vector/Makefile b/vector/Makefile
new file mode 100644
index 0000000..4d7b3a6
--- /dev/null
+++ b/vector/Makefile
@@ -0,0 +1,22 @@
+SRC = vector.C vector3d.C vectorstr.C
+
+INCLS = $(wildcard *.h)
+OBJS = $(SRC:%.C=%.o)
+
+LIB = libvector.a
+
+all : $(LIB)
+
+install : all
+ cp -f $(LIB) $(libdir)
+ cp -f $(INCLS) $(includedir)
+
+$(LIB) : $(OBJS)
+ $(RM) $@
+ $(AR) -cr $@ $(OBJS)
+
+clean :
+ rm -f *.o *.a core *~ *#
+
+distclean : clean
+