diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-03-18 19:01:55 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-03-18 19:01:55 (GMT) |
commit | 383807715991e500fd71c87994a3b57dbba39ff3 (patch) | |
tree | 57a99aafb5d7f587b0e84a32f4c0c53d20c02893 | |
parent | 85969638aa166f99917958935ab51000f64d8571 (diff) | |
download | blt-383807715991e500fd71c87994a3b57dbba39ff3.zip blt-383807715991e500fd71c87994a3b57dbba39ff3.tar.gz blt-383807715991e500fd71c87994a3b57dbba39ff3.tar.bz2 |
libvector
-rw-r--r-- | make.include | 2 | ||||
-rw-r--r-- | vector/Makefile | 22 |
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 + |