Bosch XDK110 General Information Manual page 28

Cross-domain development kit platform for application development
Hide thumbs Also See for XDK110:
Table of Contents

Advertisement

!
3.4 Build System
3.4.1 Makefile
XDK uses a make-based build system. Make is a powerful tool that uses so-called Makefiles to
specify which files are required to compile a project.
The Manual of Make (http://www.gnu.org/software/make/manual/make.html) contains all the details
that may be required to understand the behavior and inner workings of make.
Each XDK application contains a subfolder called "make", which in turn contains the "Makefile".
The Makefile includes "xdk110/make/application.mk", which contains all the common elements of
the application Makefiles. While the overall build system of XDK works out of the box, certain
modifications to the Makefile of your applications may be required, as outlined in this page.
Each Makefile contains at least the following three targets:
Debug:
Enables assertions and includes debug symbols
Release:
Disables assertions and does not include debug symbols
All:
Produces a release build
Which variables should I touch in the makefile?
Here you see an exemplary excerpt from an XDK application makefile:
Code 1: application makefile
include $(BCDS_BASE_DIR)/Common/application.mk
BCDS_CFLAGS_COMMON = -DMY_DEFINE
PROJECTNAME = XDK110_myExample
override
BCDS_CFLAGS_DEBUG_COMMON += $(BCDS_CFLAGS_COMMON)
override
ASMFLAGS += $(ASMFLAGS_APP)
XDK110
© Bosch Connected Devices and Solutions GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as
copying and passing on to third parties. BOSCH and the symbol are registered trademarks of Robert Bosch GmbH, Germany.
Note: Specifications within this document are subject to change without notice.
General Information Guide XDK110
Page ! 2 8
BCDS

Advertisement

Table of Contents
loading

Table of Contents