- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Broadcom helpers,
I just take hello_sensor project as an example, because I have a swarm of files need to get the same macro defines. So I put this in the makefile.mk like below:
########################################################################
# Add Application sources here.
########################################################################
CFLAG += -DHELLO_MACRO=1
APP_SRC = hello_sensor.c
But the CFLAG setting seems not work with the source code compiling.
I use the blocking item like below, and it happened:
#ifndef HELLO_MACRO
#error HELLO_MACRO not defined!!!
#endif
Please provide any document or information about the settings of makefile.mk.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Henry,
Can you please try replacing CFLAG with C_FLAGS.
Thanks,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Henry,
Can you please try replacing CFLAG with C_FLAGS.
Thanks,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Kevin,
The C_FLAGS works with the define in Makefile.
Thank you.
Henry