diff --git a/.gitignore b/.gitignore index c36cc14..3eba02e 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ obj lib doc cov +usr # IDE .vscode diff --git a/Makefile b/Makefile index d19be2a..866994d 100644 --- a/Makefile +++ b/Makefile @@ -59,6 +59,7 @@ USRINC = ${USRDIR}/include DIRS =\ ${BINDIR}\ ${BINDIR}/hash\ + ${BINDIR}/tools\ ${OBJDIR}\ ${OBJDIR}/hash\ ${LIBDIR}\ @@ -120,12 +121,12 @@ ${USRLIB}/lib${LIB}${-g}%: ${LIBDIR}/lib${LIB}${-g}% endif ifneq (${TOOLS},) -tools: library ${DIRS} ${patsubst %, ${BINDIR}/%${-g}, ${TOOLS}} +tools: library ${DIRS} ${patsubst %, ${BINDIR}/tools/%${-g}, ${TOOLS}} -${BINDIR}/%${-g}: ${SRCDIR}/%.cpp ${patsubst %, ${OBJDIR}/%${-g}.o, ${OBJS}} +${BINDIR}/tools/%${-g}: ${SRCDIR}/tools/%.cpp ${patsubst %, ${OBJDIR}/%${-g}.o, ${OBJS}} ${CC} -o $@ $< -I${INCDIR} -L${LIBDIR} ${-l} ${-lLIB} ${CFLAGS} -${USRBIN}/%${-g}: ${BINDIR}/%${-g} +${USRBIN}/%${-g}: ${BINDIR}/tools/%${-g} install -Dm755 $< $@ endif diff --git a/src/basen.cpp b/src/tools/basen.cpp similarity index 100% rename from src/basen.cpp rename to src/tools/basen.cpp