how to initiate

hi i am working on a project it contains 5 c files including tha main.c now i have to prepare a kernel for one of the loop in a file but the file is very big so i was planning to write opencl part in other file how can i do it and how can i link it

with regards