2013-02-06 13:20:21 +01:00
|
|
|
MODULE =sys
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring auto_init,$(USEMODULE)))
|
|
|
|
DIRS += auto_init
|
|
|
|
endif
|
2013-02-06 13:20:21 +01:00
|
|
|
ifneq (,$(findstring config,$(USEMODULE)))
|
|
|
|
DIRS += config
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring lib,$(USEMODULE)))
|
|
|
|
DIRS += lib
|
|
|
|
endif
|
2013-02-08 19:10:33 +01:00
|
|
|
ifneq (,$(findstring ping,$(USEMODULE)))
|
|
|
|
DIRS += ping
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring ps,$(USEMODULE)))
|
|
|
|
DIRS += ps
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring posix,$(USEMODULE)))
|
2013-12-23 23:19:17 +01:00
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/posix/include
|
2013-02-08 17:37:02 +01:00
|
|
|
DIRS += posix
|
|
|
|
endif
|
2013-02-06 13:20:21 +01:00
|
|
|
ifneq (,$(findstring shell,$(USEMODULE)))
|
|
|
|
DIRS += shell
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring shell_commands,$(USEMODULE)))
|
|
|
|
DIRS += shell/commands
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring timex,$(USEMODULE)))
|
|
|
|
DIRS += timex
|
|
|
|
endif
|
2013-02-06 13:20:21 +01:00
|
|
|
ifneq (,$(findstring transceiver,$(USEMODULE)))
|
|
|
|
DIRS += transceiver
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring uart0,$(USEMODULE)))
|
|
|
|
DIRS += uart0
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring vtimer,$(USEMODULE)))
|
|
|
|
DIRS += vtimer
|
|
|
|
endif
|
2013-03-16 17:02:35 +01:00
|
|
|
ifneq (,$(findstring destiny,$(USEMODULE)))
|
2013-12-15 15:07:12 +01:00
|
|
|
DIRS += net/transport_layer/destiny
|
2013-03-16 17:02:35 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring net_help,$(USEMODULE)))
|
2013-12-15 16:09:01 +01:00
|
|
|
DIRS += net/crosslayer/net_help
|
2013-03-16 17:02:35 +01:00
|
|
|
endif
|
2013-08-02 00:14:45 +02:00
|
|
|
ifneq (,$(findstring protocol_multiplex,$(USEMODULE)))
|
2013-12-15 16:04:35 +01:00
|
|
|
DIRS += net/link_layer/protocol-multiplex
|
2013-03-16 17:02:35 +01:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring sixlowpan,$(USEMODULE)))
|
2013-12-15 16:03:33 +01:00
|
|
|
DIRS += net/network_layer/sixlowpan
|
2013-07-05 09:35:29 +02:00
|
|
|
endif
|
|
|
|
ifneq (,$(findstring rpl,$(USEMODULE)))
|
2013-12-15 15:09:49 +01:00
|
|
|
DIRS += net/routing/rpl
|
2013-03-16 17:02:35 +01:00
|
|
|
endif
|
2013-05-28 10:02:35 +02:00
|
|
|
ifneq (,$(findstring ieee802154,$(USEMODULE)))
|
2013-12-15 15:12:08 +01:00
|
|
|
DIRS += net/link_layer/ieee802154
|
2013-05-28 10:02:35 +02:00
|
|
|
endif
|
2013-08-04 22:01:11 +02:00
|
|
|
ifneq (,$(findstring bloom,$(USEMODULE)))
|
|
|
|
DIRS += bloom
|
|
|
|
endif
|
2013-11-28 18:12:40 +01:00
|
|
|
ifneq (,$(findstring crypto_3des,$(USEMODULE)))
|
|
|
|
DIRS += crypto/3des
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring crypto_aes,$(USEMODULE)))
|
|
|
|
DIRS += crypto/aes
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring crypto_rc5,$(USEMODULE)))
|
|
|
|
DIRS += crypto/rc5
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring crypto_sha256,$(USEMODULE)))
|
|
|
|
DIRS += crypto/sha256
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring crypto_skipjack,$(USEMODULE)))
|
|
|
|
DIRS += crypto/skipjack
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring crypto_twofish,$(USEMODULE)))
|
|
|
|
DIRS += crypto/twofish
|
2013-08-06 18:52:30 +02:00
|
|
|
endif
|
2013-08-20 08:56:22 +02:00
|
|
|
ifneq (,$(findstring random,$(USEMODULE)))
|
|
|
|
DIRS += random
|
|
|
|
endif
|
2013-08-20 09:05:07 +02:00
|
|
|
ifneq (,$(findstring hashes,$(USEMODULE)))
|
|
|
|
DIRS += hashes
|
|
|
|
endif
|
2013-09-20 15:30:42 +02:00
|
|
|
ifneq (,$(findstring semaphore,$(USEMODULE)))
|
|
|
|
DIRS += semaphore
|
|
|
|
endif
|
2013-10-28 10:25:17 +01:00
|
|
|
ifneq (,$(findstring ccn_lite,$(USEMODULE)))
|
|
|
|
DIRS += net/ccn_lite
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring ccn_lite_client,$(USEMODULE)))
|
|
|
|
DIRS += net/ccn_lite/util
|
|
|
|
endif
|
2013-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
2013-08-06 18:58:24 +02:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
|
2013-02-06 13:20:21 +01:00
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
include $(RIOTBASE)/Makefile.base
|
2013-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
# remove compilation products
|
|
|
|
clean::
|
2013-08-06 18:58:24 +02:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
|
2013-02-06 13:20:21 +01:00
|
|
|
|