diff --git a/arch/z16/src/Makefile b/arch/z16/src/Makefile index 02d9c6eb67..74e91dc75c 100644 --- a/arch/z16/src/Makefile +++ b/arch/z16/src/Makefile @@ -55,6 +55,9 @@ INCLUDES = $(ARCHSTDINCLUDES) $(USRINCLUDES) CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(INCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) CPPFLAGS += -I$(ARCHSRCDIR) +KDEFINE = ${shell $(TOPDIR)/tools/define.sh "$(CC)" __KERNEL__} +CFLAGS += $(KDEFINE) + ifeq ($(CONFIG_WINDOWS_NATIVE),y) LDFLAGS += @"$(ARCHSRCDIR)/nuttx.linkcmd" else