【发布时间】:2015-08-09 13:15:54
【问题描述】:
我想知道我使用推断规则的 makefile 出了什么问题:
nvcc=/usr/local/cuda-6.5/bin/nvcc
opts="-O3 -arch=sm_35 -rdc=true -lcudadevrt -Xcompiler -fopenmp -lpng"
base: ignore dynamic predict
%: ./../source/%.cu
$(nvcc) $> $(opts) -o $@
我得到的错误:
make: *** No rule to make target `ignore.exe', needed by `base'. Stop.
当然没有这样的规则,但make不应该假设ignore隐藏在%中吗?
【问题讨论】:
标签: makefile