custom CFLAGS ignored?

Hi, I wanted to switch to the 'new' Makefile format as it's used in e.g. project/tlayer, but now I can't add custom CFLAGS anymore. When I do export CFLAGS = -DRIOT or CFLAGS += -DRIOT nothing changes (#ifdef RIOT blocks are not compiled)

I've also tried adding a CFLAGS += -DRIOT to Makefile.include but with no success.

Also, I'd suggest adding an optional list of external modules to Makefile.include, see patch


makefile.patch (920 Bytes)

When running make SHELL='sh -xv' one can see that CFLAGS += -DBOARD=$(BB) is ignored too.

Adding it to Makefile.modules however works

Hi Benjamin,