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:
parent
1cab294517
commit
4dcbc3273e
|
@ -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
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
CONTIKI_PROJECT = blinker
|
||||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
DEFAULT_TARGET = esb
|
||||
|
||||
CONTIKI = ../..
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
|
1
examples/esb/Makefile.target
Normal file
1
examples/esb/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = esb
|
|
@ -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
|
||||
|
|
1
examples/sky-ip/Makefile.target
Normal file
1
examples/sky-ip/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = sky
|
|
@ -2,8 +2,6 @@ CONTIKI_PROJECT = sky-shell
|
|||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
APPS = shell
|
||||
DEFAULT_TARGET = sky
|
||||
|
||||
CONTIKI = ../..
|
||||
|
||||
ifdef MOTE
|
||||
|
|
1
examples/sky-shell/Makefile.target
Normal file
1
examples/sky-shell/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = sky
|
|
@ -2,7 +2,6 @@ CONTIKI_PROJECT = telnet-server
|
|||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
APPS = telnetd program-handler
|
||||
DEFAULT_TARGET = minimal-net
|
||||
|
||||
CONTIKI = ../..
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
|
1
examples/telnet-server/Makefile.target
Normal file
1
examples/telnet-server/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = minimal-net
|
|
@ -2,7 +2,6 @@ CONTIKI_PROJECT = testv6
|
|||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
APPS = webserver
|
||||
DEFAULT_TARGET = minimal-net
|
||||
CFLAGS = -DUIP_CONF_IPV6
|
||||
|
||||
CONTIKI = ../..
|
||||
|
|
1
examples/test-ipv6/Makefile.target
Normal file
1
examples/test-ipv6/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = minimal-net
|
|
@ -2,7 +2,6 @@ CONTIKI_PROJECT = webbrowser
|
|||
all: $(CONTIKI_PROJECT)
|
||||
|
||||
APPS = webbrowser
|
||||
DEFAULT_TARGET = win32
|
||||
|
||||
CONTIKI = ../..
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
|
1
examples/webbrowser/Makefile.target
Normal file
1
examples/webbrowser/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = win32
|
|
@ -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.
|
||||
|
|
1
examples/webserver/Makefile.target
Normal file
1
examples/webserver/Makefile.target
Normal file
|
@ -0,0 +1 @@
|
|||
TARGET = minimal-net
|
Loading…
Reference in a new issue