To another operating system, I went through some of the FreeBSD source code(makefiles, Makefile.depend). I tried using cmake to create binaries. Cmake is a problematic software. If I can be guide on which files I need to edit in order to fully make it part of base compiler. GPL v3 programs such as gnu toolchain must be avoided.