sagar:
I want to know how bmake works
bmake.exe is the Bentley make tool. make tools have been around for several decades: they make (or build) an application from its source-code components and other objects. You can search for make on the web to find many results -- you may find Gnu Make documentation useful.
The hard part with any make system is understanding the cryptic rules, and bmake is no different. Fortunately, someone in Bentley Systems has done the hard work, and we need only follow the recipe.
Here's the instruction, from delivered example basic.mke, that compiles C++ source code to a binary object file...
$(o)$(appName)$(oext) : $(baseDir)$(appName).cpp
The macro syntax is simple...
- $(o) means the output folder,
- $(appName) is the application name, defined at the beginning of the basic.mke file
- $(oext) means the object file extension, defined in one of the .mki include files
- $(basedir) is the folder where the .mke resides and is deduced automatically
If you search through the various .mki include files you will find the rule that says: "If you find an input file having a .cpp extension then compile it using the Microsoft C++ compiler."