cuda+existing project

I have a project and I want use it with cuda. How to change the existing makefile to reach my end?


what is the language in which your project has been written?
do you want to create a cuda application which needs to include this project?

Basically you need to add make rules to invoke nvcc on .cu files. You can link the resulting objects with your existing files.

But teju is right; you need to supply more information to get any meaningful help.

i have got the same problem like him. i have already an old c++ project under Linux, which is really big and not so simple with KDevelop programmed, now i have to use CUDA to make it better. how kann i do with nvcc in the Makefile. by the way, the makefiles are gernarated by KDevelop.
Thanks a lot!