From 383807715991e500fd71c87994a3b57dbba39ff3 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 18 Mar 2020 15:01:55 -0400 Subject: libvector --- make.include | 2 +- vector/Makefile | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 vector/Makefile 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 + -- cgit v0.12