Abld.bat
The abld.bat batch file is used to control all aspects of building a project. It is created in the current directory by the bldmake tool from a component description file bld.inf.
The syntax reference for this tool exhaustively lists all of the possible build operations which can be performed using abld. The tool's flexibility obscures the fact that most developers will only need to use two commands: one for cleaning up all files created in a previous build, and another for building the current project.
Article Metadata
Cleaning
Cleaning removes all the intermediate files created during compilation, and all the executables and import libraries created by the linker. The simplest invocation of this operation deletes the files for all platforms, and projects belonging to the component.
abld clean
It is also possible to specify the platform and build variant to be cleaned. For example:
abld clean winscw udeb
Building
abld builds projects based on the makefiles created by bldmake from the component information file and project files.
The simplest invocation of this command builds the project for all possible build variants:
abld build
However building for a platform can take some time, and it is usual to only specify the platform required. For example, to build the debug version on the WINSCW platform specify:
abld build winscw udeb
or to build the release version for ARMV5 use:
abld build armv5 urel
Note
The build command combines the other abld commands: export, makefile, library, resource, target and final, which are carried out in turn.
See also


04 Sep
2009
This article explains on how to use the abld.bat batch file for building and cleaning the project from the command prompt. Although Carbide C++ IDE automates this process for the developer. It is very essential for the developer to know how the build process works and what tools are used.