diff --git a/Makefile.include b/Makefile.include index ea5dfcb50..07b530890 100644 --- a/Makefile.include +++ b/Makefile.include @@ -40,8 +40,8 @@ ifeq (${wildcard $(OBJECTDIR)},) DUMMY := ${shell mkdir $(OBJECTDIR)} endif -LOWERCASE = abcdefghijklmnopqrstuvwxyz -UPPERCASE = ABCDEFGHIJKLMNOPQRSTUVWXYZ +LOWERCASE = -abcdefghijklmnopqrstuvwxyz +UPPERCASE = _ABCDEFGHIJKLMNOPQRSTUVWXYZ TARGET_UPPERCASE := ${shell echo $(TARGET) | sed 'y!$(LOWERCASE)!$(UPPERCASE)!'} CFLAGS += -DCONTIKI_TARGET_$(TARGET_UPPERCASE)