There are two source files with a same basename in a same directory, such as : "a.cc" and "a.cu", like the sources of mxnet , During the building, there are two object files with a same name "a.o" might generate and overwrite each other, then, a lot of "undefined reference to" errors generated when try to link them together.
My questions : is there a way to set a object file name base on the full name of the source file ? in other words, can I set the C::B and let it compile the "a.cc" to "a.cc.o" and "a.cu" to "a.cu.o" , and link them together ? or is there a way to change the both $object and $link_objects command macros of C::B instead ?
Thanks!