gbm: split out source file to Makefile.sources