Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: [2004 MDL] Help me to know about Bmake.

$
0
0

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."




Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>