I have a header file timing.h and corresponding timing.c in the ./timing directory. I have included in the header in the .cu file. How do I edit the Makefile so as to compile the timing.c too? I tried adding the file under CFILES,
CFILES := \
timing/timing.c\
But it gives the following error:
make: *** No rule to make target `obj/release/timing.c.o', needed by `../../bin/linux/release/u-list'. Stop.
I’m not really good at using Makefiles, as you probably can tell.
Oh, and I’m fully aware that CUDA provides its own timing routines.
because you can’t put the file in other folder. the makefile called common.mk, which is in NVIDIA_CUDA_SDK/common, catch directly a file into a variable OBJ.