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.

ico
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),)
-include Makefile.target
ifeq ($(TARGET),)
ifeq ($(DEFAULT_TARGET),)
DEFAULT_TARGET=native
endif
${info TARGET not defined, using target '$(DEFAULT_TARGET)'}
TARGET=$(DEFAULT_TARGET)
${info TARGET not defined, using target 'native'}
TARGET=native
else
${info using saved target '$(TARGET)'}
endif

View File

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

View File

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

View File

@ -2,8 +2,6 @@ CONTIKI_PROJECT = telnet-webserver
all: $(CONTIKI_PROJECT)
APPS = telnetd webserver
DEFAULT_TARGET = sky
CFLAGS = -DWITH_UIP=1 #-DWITH_NULLMAC=1
# 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)
APPS = shell
DEFAULT_TARGET = sky
CONTIKI = ../..
ifdef MOTE

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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