One statement:
Gmake is short for GNU make.
In Linux, make is GNU make. gmake is available because make is generally used on other platforms and GNU make has to be called gmake.
For example, you must use the make command when installing a binary file for compilation. However, if you are running on Solaris or other non-GNU systems, you must use GNU make instead of the make version that comes with the system,
In this case, use gmake instead of make for compilation.
Another statement:
Gmake and BSD make are different, and their makefile is somewhat incompatible, such as the writing method and meaning of some variables.
If the compiled program is different, it is only because the specified commands in makefile are different.
Because the makefile syntax of the kernel is somewhat special, gmake does not seem to be used to compile the BSD kernel. It seems that it is only applicable to the Make