From d6735fa9b2fba78ce9dc3b6782ccf4e1ae251a9e Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 26 May 2007 22:38:23 +0000 Subject: [PATCH] Allow to set a default target (different from 'native') to be used if TARGET isn't set. This is i.e. useful for examples requiring network i/o. --- Makefile.include | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.include b/Makefile.include index dacd31c27..36bd9002b 100644 --- a/Makefile.include +++ b/Makefile.include @@ -8,8 +8,11 @@ CFLAGS += -DCONTIKI_TARGET=$(TARGET) ifeq ($(TARGET),) -include Makefile.target ifeq ($(TARGET),) - ${warning TARGET not defined, using native target} - TARGET=native + ifeq ($(DEFAULT_TARGET),) + DEFAULT_TARGET=native + endif + ${warning TARGET not defined, using target '$(DEFAULT_TARGET)'} + TARGET=$(DEFAULT_TARGET) else ${warning using saved target '$(TARGET)'} endif