Now that we started adding files to the CVS which are normally generated with a 'save...' make goal we can remove the DEFAULT_TARGET mechanism altogether and just add Makefile.target files.

This commit is contained in:
oliverschmidt 2008-05-26 10:09:12 +00:00
parent 1cab294517
commit 4dcbc3273e
15 changed files with 9 additions and 15 deletions

View file

@ -8,11 +8,8 @@ CFLAGS += -DCONTIKI_TARGET=$(TARGET)
ifeq ($(TARGET),) ifeq ($(TARGET),)
-include Makefile.target -include Makefile.target
ifeq ($(TARGET),) ifeq ($(TARGET),)
ifeq ($(DEFAULT_TARGET),) ${info TARGET not defined, using target 'native'}
DEFAULT_TARGET=native TARGET=native
endif
${info TARGET not defined, using target '$(DEFAULT_TARGET)'}
TARGET=$(DEFAULT_TARGET)
else else
${info using saved target '$(TARGET)'} ${info using saved target '$(TARGET)'}
endif endif

View file

@ -1,7 +1,5 @@
CONTIKI_PROJECT = blinker CONTIKI_PROJECT = blinker
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
DEFAULT_TARGET = esb
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -0,0 +1 @@
TARGET = esb

View file

@ -2,8 +2,6 @@ CONTIKI_PROJECT = telnet-webserver
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = telnetd webserver APPS = telnetd webserver
DEFAULT_TARGET = sky
CFLAGS = -DWITH_UIP=1 #-DWITH_NULLMAC=1 CFLAGS = -DWITH_UIP=1 #-DWITH_NULLMAC=1
# The webserver application normally contains a built-in file system and support # The webserver application normally contains a built-in file system and support

View file

@ -0,0 +1 @@
TARGET = sky

View file

@ -2,8 +2,6 @@ CONTIKI_PROJECT = sky-shell
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = shell APPS = shell
DEFAULT_TARGET = sky
CONTIKI = ../.. CONTIKI = ../..
ifdef MOTE ifdef MOTE

View file

@ -0,0 +1 @@
TARGET = sky

View file

@ -2,7 +2,6 @@ CONTIKI_PROJECT = telnet-server
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = telnetd program-handler APPS = telnetd program-handler
DEFAULT_TARGET = minimal-net
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -0,0 +1 @@
TARGET = minimal-net

View file

@ -2,7 +2,6 @@ CONTIKI_PROJECT = testv6
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = webserver APPS = webserver
DEFAULT_TARGET = minimal-net
CFLAGS = -DUIP_CONF_IPV6 CFLAGS = -DUIP_CONF_IPV6
CONTIKI = ../.. CONTIKI = ../..

View file

@ -0,0 +1 @@
TARGET = minimal-net

View file

@ -2,7 +2,6 @@ CONTIKI_PROJECT = webbrowser
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = webbrowser APPS = webbrowser
DEFAULT_TARGET = win32
CONTIKI = ../.. CONTIKI = ../..
include $(CONTIKI)/Makefile.include include $(CONTIKI)/Makefile.include

View file

@ -0,0 +1 @@
TARGET = win32

View file

@ -2,7 +2,6 @@ CONTIKI_PROJECT = webserver-example
all: $(CONTIKI_PROJECT) all: $(CONTIKI_PROJECT)
APPS = webserver APPS = webserver
DEFAULT_TARGET = minimal-net
# The webserver application normally contains a built-in file system and support # The webserver application normally contains a built-in file system and support
# for server-side includes. # for server-side includes.

View file

@ -0,0 +1 @@
TARGET = minimal-net