2 Replies Latest reply on Aug 5, 2015 7:49 PM by henryubnt

    How to pass Macro in hello_sensor makefile.mk?

      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.