makefile编译多个cuda文件

TEST_SOURCE = *.cu

TARGETBIN := ./hello_cuda.PHONY

CC = /usr/local/cuda/bin/nvcc

$(TARGETBIN):$(TEST_SOURCE)
$(CC) $(TEST_SOURCE) -o $(TARGETBIN)

.PHONY:clean
clean:
-rm -rf $(TARGETBIN)

posted @ 2021-08-09 20:06  祥瑞哈哈哈  阅读(236)  评论(0编辑  收藏  举报