From e362e2b99eb82183e6ad6876315b5d5eb5382a99 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 15 Nov 2008 11:13:19 +0000 Subject: [PATCH] Replace hyphen with underline to make generated macro names more consistent. --- Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)