Texas Instruments TMS320 User Manual page 51

Dsp/bios v5.40
Hide thumbs Also See for TMS320:
Table of Contents

Advertisement

Example 2-3. Sample Makefile for a DSP/BIOS Program
# Makefile for creation of program named by the PROG variable
# The following naming conventions are used by this makefile:
#
<prog>.asm
#
<prog>.obj
#
<prog>.out
#
<prog>cfg.s55 - configuration assembly source file
#
#
<prog>cfg.h55 - configuration assembly header file
#
#
<prog>cfg.cmd - configuration linker command file
#
include $(TI_DIR)/c5500/bios/include/c55rules.mak
#
# Compiler, assembler, and linker options.
# -g enable symbolic debugging
CC55OPTS = -g
AS55OPTS =
# -q quiet run
LD55OPTS = -q
# Every DSP/BIOS program must be linked with:
#
$(PROG)cfg.o55 - object resulting from assembling
#
#
$(PROG)cfg.cmd - linker command file generated by
#
#
#
#
PROG
= volume
OBJS
= $(PROG)cfg.obj load.obj
LIBS
=
CMDS
= $(PROG)cfg.cmd
# Targets:
all:: $(PROG).out
$(PROG).out: $(OBJS) $(CMDS)
$(PROG)cfg.obj: $(PROG)cfg.h55
$(PROG).obj:
$(PROG)cfg.s55 $(PROG)cfg.h55
@ echo Error: $@ must be manually regenerated:
@ echo Open and save $(PROG).cdb within the DSP/BIOS Configuration Tool.
@ check $@
.clean clean::
@ echo removing generated configuration files ...
@ remove -f $(PROG)cfg.s55 $(PROG)cfg.h55 $(PROG)cfg.cmd
@ echo removing object files and binaries ...
@ remove -f *.obj *.out *.lst *.map
- C55 assembly language source file
- C55 object file (compiled/assembled source)
- C55 executable (fully linked program)
generated by Configuration Tool
generated by Configuration Tool
generated by Configuration Tool
$(PROG)cfg.s55
the Configuration Tool. If additional
linker command files exist,
$(PROG)cfg.cmd must appear first.
$(PROG)cfg.cmd:
Using Makefiles to Build Applications
Program Generation
2-21

Advertisement

Table of Contents
loading

Table of Contents