【发布时间】:2018-05-21 08:30:18
【问题描述】:
我想在我的本地虚拟机上使用 Coverity。我创建了简单的 HalloWorld 并使用 Coverity Wizard 来设置分析。一切正常。问题是当我想从终端运行 Coverity 时。它没有“找到”我的 makefile。
我有一个目录 halloworld,其中包含一个 .c 文件和 makefile。我能够使用 make cmd 成功构建程序。对于 Coverity,我按以下顺序运行命令:
- ./cov-configure --gcc
- ./cov-build --dir "usr/halloworld/" 制作
回应: make: *** 没有指定目标,也没有找到 makefile。停下来。
制作文件:
all: test.exe
test.exe: test.o
gcc -o test.exe test.o
test.o: test.c
gcc -c test.c
clean:
rm -rf test.o test.c
我很确定这只是一个错字或缺少参数或类似的东西。提前致谢。
【问题讨论】:
标签: c makefile code-analysis coverity