XDK110
BCDS
© 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
!
30
How Can I Change CFLAGS in my Project?
CFLAGS are flags passed on to the compiler. They allow you to configure various things in your
software and in the behavior of the compiler. To add specific CFLAGS for your application, please
create a new line in the Makefile of your project:
Code 2
: CFLAGS
#
In this line, you can add your own CFLAGS.
How Can I Rename a Project in XDK Workbench?
If you rename a project in XDK Workbench, the project configuration as well as the Makefile has to
be modified.
1. Click your project in XDK Workbench and select "Properties".
2. Go into the "C/C++ Build" tab and update the "BuildDirectory". To do this, click on
"Workspace" and select the "make" folder inside your renamed application.
Picture 17:
C/C++ Build
#
3. Open up the Makefile in your renamed application. You may want to modify the
BCDS_APP_NAME, as it defines the name of your executable file afterwards. Furthermore,
you may want to add and/or change the files listed in BCDS_XDK_APP_SOURCE_FILES.
BCDS_CFLAGS_COMMON
= -DMY_DEFINE