Adding CFLAGS

Hi,
I can’t seem to be able to add to CFLAGS.

Something like adding CFLAGS+="-DPFFFT_SIMD_DISABLE" to my project makefile is not picked up by the compiler.
Any idea why this is, or how it could be circumvented?

Thanks :slight_smile:

Use C_DEFS.

Add it after including the libdaisy makefile with +=

Or set it before with =

# Core location, and generic makefile.
SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core
include $(SYSTEM_FILES_DIR)/Makefile
#Add MY_MACRO_DEF
C_DEFS += -DMY_MACRO_DEF

Thanks for that!
Unfortunately it still doesn’t work in my case. Not sure why.
But it’s not that bad for now, as I can simply hard code it in the source file.

Sorry, I edited my post, Makefile variable is C_DEFS not CDEFS. libDaisy and DaisySP libraries are compiled separately and statically linked so you would have to add it manually for code there to pick it up.

1 Like

now, that works, just fine!
thanks again :wink:

1 Like