Cubin files from Makefile

I want to generate cubin files from some of the SDK’s examples but the compilation is done through the Makefiles, which only accepts dbg and emu options. Is there any option to generate cubin files? If not, how can I generate these files for the SDK’s examples?
Thanks in advance.

make keep=1 :)

It does compile but this option is not registered anywhere in the Makefiles, or isn’t it?In any case, I still cannot find where the cubin files are generated.

you can check common/makefile.mk (from memory, it is the one that is included at the end of the normal makefiles) There you can find a check for keep=1 that will add the -keep to the nvcc command line. That switch tells the compiler toolchain to not delete intermediate files.