diff options
-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 + |