Fortran and CUDA use

Hello everyone, I am working on adding CUDA programming to an already existing FORTRAN program (That I am not too familiar with). I am having problem with the compiling process. It appears though many .o files are created and then put into a single .a library. I believe this is where my problem happens, as I am not sure how to give it access to the cuda libraries or where to put the flags (-lcudart -lcuda)

If this makes any sense at all, I would greatly appreciate your help.


Nevermind, I figured it out!