mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
9a15a6def5
Currently you need to add every new sys and driver module into the respective Makefile. This requires rebasing if another module was merged in the meantime. This PR allows you to omit the entry to {sys,drivers}/Makefile, if the subfolder has the same name as the module name, which should be sensible in most cases.
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
ifneq (,$(filter pktbuf,$(USEMODULE)))
|
|
DIRS += net/crosslayer/pktbuf
|
|
endif
|
|
ifneq (,$(filter pnet,$(USEMODULE)))
|
|
DIRS += posix/pnet
|
|
endif
|
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
|
DIRS += posix/pthread
|
|
endif
|
|
ifneq (,$(filter shell_commands,$(USEMODULE)))
|
|
DIRS += shell/commands
|
|
endif
|
|
ifneq (,$(filter net_if,$(USEMODULE)))
|
|
DIRS += net/link_layer/net_if
|
|
endif
|
|
ifneq (,$(filter transport_layer,$(USEMODULE)))
|
|
USEMODULE += udp
|
|
USEMODULE += tcp
|
|
endif
|
|
ifneq (,$(filter socket_base,$(USEMODULE)))
|
|
DIRS += net/transport_layer/socket_base
|
|
endif
|
|
ifneq (,$(filter udp,$(USEMODULE)))
|
|
DIRS += net/transport_layer/udp
|
|
endif
|
|
ifneq (,$(filter tcp,$(USEMODULE)))
|
|
DIRS += net/transport_layer/tcp
|
|
endif
|
|
ifneq (,$(filter net_help,$(USEMODULE)))
|
|
DIRS += net/crosslayer/net_help
|
|
endif
|
|
ifneq (,$(filter protocol_multiplex,$(USEMODULE)))
|
|
DIRS += net/link_layer/protocol-multiplex
|
|
endif
|
|
ifneq (,$(filter sixlowpan,$(USEMODULE)))
|
|
DIRS += net/network_layer/sixlowpan
|
|
endif
|
|
ifneq (,$(filter sixlowborder,$(USEMODULE)))
|
|
DIRS += net/network_layer/sixlowpan/border
|
|
endif
|
|
ifneq (,$(filter rpl,$(USEMODULE)))
|
|
DIRS += net/routing/rpl
|
|
endif
|
|
ifneq (,$(filter routing,$(USEMODULE)))
|
|
DIRS += net/routing
|
|
endif
|
|
ifneq (,$(filter ieee802154,$(USEMODULE)))
|
|
DIRS += net/link_layer/ieee802154
|
|
endif
|
|
ifneq (,$(filter ccn_lite,$(USEMODULE)))
|
|
DIRS += net/ccn_lite
|
|
endif
|
|
ifneq (,$(filter ccn_lite_client,$(USEMODULE)))
|
|
DIRS += net/ccn_lite/util
|
|
endif
|
|
ifneq (,$(filter oneway_malloc,$(USEMODULE)))
|
|
DIRS += oneway-malloc
|
|
endif
|
|
|
|
DIRS += $(dir $(wildcard $(addsuffix /Makefile, ${USEMODULE})))
|
|
|
|
include $(RIOTBASE)/Makefile.base
|