PROJECTDIR now turned into modules via MODULES_REL
This commit is contained in:
parent
a0961ac2a1
commit
81d1b1bd80
@ -57,11 +57,7 @@ MODULES += os os/net os/net/mac os/storage
|
||||
oname = ${patsubst %.c,%.o,${patsubst %.S,%.o,$(1)}}
|
||||
|
||||
CONTIKI_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(CONTIKI_SOURCEFILES)}}
|
||||
|
||||
PROJECT_SOURCEFILES += ${foreach d, $(PROJECTDIRS), ${subst ${d}/,,${wildcard $(d)/*.c}}}
|
||||
PROJECT_OBJECTFILES = ${addprefix $(OBJECTDIR)/,${call oname, $(PROJECT_SOURCEFILES)}}
|
||||
PROJECT_INCLUDES = ${strip ${wildcard ${foreach d, $(PROJECTDIRS), $(d)/Makefile.${notdir $(d)}}}}
|
||||
-include $(PROJECT_INCLUDES)
|
||||
|
||||
# Provide way to create $(OBJECTDIR) if it has been removed by make clean
|
||||
$(OBJECTDIR):
|
||||
@ -166,14 +162,12 @@ else
|
||||
CFLAGS += -DUIP_CONF_IPV6_RPL=0
|
||||
endif
|
||||
|
||||
ifdef MODULES
|
||||
UNIQUEMODULES = $(call uniq,$(MODULES))
|
||||
MODULEDIRS = ${wildcard ${addprefix $(CONTIKI)/, $(UNIQUEMODULES)}}
|
||||
MODULEDIRS = $(MODULES_REL) ${wildcard ${addprefix $(CONTIKI)/, $(MODULES)}}
|
||||
UNIQUEMODULES = $(call uniq,$(MODULEDIRS))
|
||||
MODULES_SOURCES = ${foreach d, $(MODULEDIRS), ${subst ${d}/,,${wildcard $(d)/*.c}}}
|
||||
MODULES_INCLUDES = ${wildcard ${foreach d, $(MODULEDIRS), $(d)/Makefile.${notdir $(d)}}}
|
||||
include $(MODULES_INCLUDES)
|
||||
CONTIKI_SOURCEFILES += $(MODULES_SOURCES)
|
||||
endif
|
||||
|
||||
### Verbosity control. Use make V=1 to get verbose builds.
|
||||
|
||||
|
@ -6,7 +6,7 @@ endif
|
||||
|
||||
STRUCTGEN = structgen
|
||||
|
||||
PROJECTDIRS += $(BUILTSRCDIR)
|
||||
MODULES_REL += $(BUILTSRCDIR)
|
||||
|
||||
USB_STRING_DESCRIPTORS ?= $(CONTIKI_CPU_ARM)/common/usb/cdc-acm/string-descriptors.xml
|
||||
|
||||
|
@ -6,9 +6,9 @@ CONTIKI=../..
|
||||
# build RESTful resources
|
||||
include $(CONTIKI)/Makefile.identify-target
|
||||
ifeq ($(TARGET),native)
|
||||
PROJECTDIRS += ./resources-plugtest
|
||||
MODULES_REL += ./resources-plugtest
|
||||
endif
|
||||
PROJECTDIRS += ./resources
|
||||
MODULES_REL += ./resources
|
||||
|
||||
# Include the CoAP implementation
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -1,6 +1,6 @@
|
||||
all: cc26xx-web-demo
|
||||
|
||||
PROJECTDIRS += ./resources
|
||||
MODULES_REL += ./resources
|
||||
|
||||
PROJECT_SOURCEFILES += cetic-6lbr-client.c coap-server.c net-uart.c mqtt-client.c
|
||||
PROJECT_SOURCEFILES += httpd-simple.c
|
||||
|
@ -8,7 +8,7 @@ CONTIKI=../../../../..
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
MODULES_REL += .. ../tools
|
||||
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
||||
|
@ -8,7 +8,7 @@ CONTIKI=../../../../..
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
MODULES_REL += .. ../tools
|
||||
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
||||
|
@ -8,7 +8,7 @@ CONTIKI=../../../../..
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/lib/json
|
||||
PROJECTDIRS += .. ../tools
|
||||
MODULES_REL += .. ../tools
|
||||
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
||||
|
@ -6,6 +6,6 @@ TARGET ?= jn516x
|
||||
CONTIKI=../../../../..
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
PROJECTDIRS += .. ../tools
|
||||
MODULES_REL += .. ../tools
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -5,7 +5,7 @@ JN516x_WITH_DONGLE = 1
|
||||
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
PROJECTDIRS += .. ../../tools
|
||||
MODULES_REL += .. ../../tools
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/app-layer/coap
|
||||
MODULES += os/services/orchestra os/lib/json
|
||||
|
@ -5,7 +5,7 @@ JN516x_WITH_DONGLE = 1
|
||||
|
||||
CONTIKI=../../../../../..
|
||||
|
||||
PROJECTDIRS += .. ../../tools
|
||||
MODULES_REL += .. ../../tools
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -7,7 +7,7 @@ CONTIKI=../../../../../..
|
||||
|
||||
PROJECT_SOURCEFILES += slip-bridge.c slip.c
|
||||
|
||||
PROJECTDIRS += .. ../../tools
|
||||
MODULES_REL += .. ../../tools
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -6,7 +6,7 @@ TARGET_WITH_UART1 = 1
|
||||
|
||||
CONTIKI=../../../../..
|
||||
|
||||
PROJECTDIRS += .. ../tools
|
||||
MODULES_REL += .. ../tools
|
||||
|
||||
MAKE_MAC = MAKE_MAC_TSCH
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -16,7 +16,7 @@ CFLAGS += -DDEVICE_NAME=\"nRF52-DK-CoAP-Server\"
|
||||
endif
|
||||
|
||||
# automatically build RESTful resources
|
||||
PROJECTDIRS += ./resources
|
||||
MODULES_REL += ./resources
|
||||
|
||||
# REST Engine shall use Erbium CoAP implementation
|
||||
MODULES += os/net/app-layer/coap
|
||||
|
@ -5,14 +5,14 @@ CONTIKI = ../..
|
||||
include $(CONTIKI)/Makefile.identify-target
|
||||
|
||||
ifeq ($(TARGET),native)
|
||||
PROJECTDIRS += native
|
||||
MODULES_REL += native
|
||||
CFLAGS += -DPROJECT_CONF_PATH=\"native/project-conf.h\"
|
||||
else
|
||||
PROJECTDIRS += embedded
|
||||
MODULES_REL += embedded
|
||||
# For embedded platforms, include platform-specific directory
|
||||
PROJECTDIRS += embedded/$(TARGET)
|
||||
MODULES_REL += embedded/$(TARGET)
|
||||
CFLAGS += -DPROJECT_CONF_PATH=\"embedded/project-conf.h\"
|
||||
endif
|
||||
PROJECTDIRS += common
|
||||
MODULES_REL += common
|
||||
|
||||
include $(CONTIKI)/Makefile.include
|
||||
|
@ -2,7 +2,7 @@ CONTIKI_PROJECT = sensniff
|
||||
CONTIKI = ../..
|
||||
|
||||
PROJECT_SOURCEFILES += sensniff-mac.c netstack.c
|
||||
PROJECTDIRS += pool $(TARGET)
|
||||
MODULES_REL += pool $(TARGET)
|
||||
|
||||
include $(CONTIKI)/Makefile.identify-target
|
||||
|
||||
|
@ -5,7 +5,7 @@ MODULES += os/services/slip-cmd
|
||||
CONTIKI=../..
|
||||
include $(CONTIKI)/Makefile.identify-target
|
||||
|
||||
PROJECTDIRS += $(TARGET)
|
||||
MODULES_REL += $(TARGET)
|
||||
PROJECT_SOURCEFILES += slip-net.c
|
||||
|
||||
# custom net layer, but with IPv6 enabled
|
||||
|
@ -12,7 +12,7 @@ ifndef TARGET
|
||||
TARGET=sky
|
||||
endif
|
||||
|
||||
PROJECTDIRS = dev
|
||||
MODULES_REL += dev
|
||||
PROJECT_SOURCEFILES = fakeuip.c sicslow_ethernet.c
|
||||
|
||||
all: uip6-bridge-tap.sky
|
||||
|
Loading…
Reference in New Issue
Block a user