ChorusOS 4.0 Production Guide

.bf Files

The .bf files are equivalent to the Imakefiles. They define source files, binary files and compilation options. The .bf files contain link directives and source definitions, such as C__SRCS. You can have several .bf files per directory. The mkmk tool concatenates the .bf files inside the Makefile product. The .bf file is preprocessed by the macro processor m4(1).

Table 4-4 lists the macros used in a .bf file. Actor, ConfigurableActor, Library and BigObject, either directly, or indirectly use getExport to get the list of object files. DistFile and Export are defined in $(DEVTOOLS_DIR)/tgt-make/mkrules.m4.

Table 4-4 Macros used in .bf files.
 Actor(actor, libs)  build 'actor' using libs
 ConfigurableActor(actor, libs)  build 'actor' using libs
 Library(lib)  build 'lib'
 BigObject(obj) build a relocatable object file
 DistFile(file,dir)  copy 'file' into 'dir'
 Export(file,dir)  same as DistFile