fix(Makefile): -lgcov, TOOLS = basen

This commit is contained in:
2024-09-27 09:06:42 +03:00
parent bce26d3a4b
commit 085f182357
2 changed files with 31 additions and 2 deletions

View File

@ -15,7 +15,7 @@ OBJS =\
base64\
hash/sha256\
TOOLS =\
TOOLS = ${LIB}
TESTS =\
test-hex\
@ -91,7 +91,7 @@ ${OBJDIR}/%${-g}-cov.o: ${SRCDIR}/%.cpp ${INCDIR}/${LIB}/%.hpp
${CC} -o $@ -c $< -I${INCDIR} ${-l} ${CFLAGS} --coverage
${BINDIR}/%${-g}-cov: ${TESTDIR}/%.cpp ${patsubst %, ${OBJDIR}/%${-g}-cov.o, ${OBJS}}
${CC} -o $@ $^ -I${INCDIR} ${-l} -lgtest ${CFLAGS} --coverage
${CC} -o $@ $^ -I${INCDIR} ${-l} -lgtest -lgcov ${CFLAGS}
clean:
rm -rf ${DIRS}