Using Makefiles to Build Applications
2-20
2.6 Using Makefiles to Build Applications
You can build your DSP/BIOS executables using a Code Composer Studio
project or using your own makefile. The Code Composer Studio software
includes gmake.exe, the GNU make utility.
For details specific to your version of DSP/BIOS, see the SetupGuide.html
and release_notes.html files in your DSP/BIOS installation.
As an alternative to building your program as a Code Composer Studio
project, you can use a makefile.
In the following example, the C source code file is volume.c, additional
assembly source is in load.asm, and the configuration file is volume.cdb. This
makefile is for use with gmake, which is included with the Code Composer
Studio software.
A typical makefile for compiling and linking a DSP/BIOS program is shown in
Example 2-3.
Unlike the Code Composer Studio project, makefiles allow for multiple linker
command files. If the application requires additional linker command files you
can easily add them to the CMDS variable in the example makefile shown in
Example 2-3. However, they must always appear after the programcfg.cmd
linker command file generated by the Configuration Tool.