mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
593ee623b6
additional: * exporting include path in sys is mandatory for subfolders * removed duplicate object file in linker call
104 lines
2.6 KiB
Makefile
104 lines
2.6 KiB
Makefile
export INCLUDES = -Iinclude -I$(CURDIR)/include -I$(RIOTBASE)/sys/net/include -I$(RIOTBASE)/drivers/include -I$(RIOTCPU)/$(CPU)/include -I$(RIOTBASE)/core/include
|
|
|
|
MODULE =sys
|
|
ifneq (,$(findstring auto_init,$(USEMODULE)))
|
|
DIRS += auto_init
|
|
endif
|
|
ifneq (,$(findstring config,$(USEMODULE)))
|
|
DIRS += config
|
|
endif
|
|
ifneq (,$(findstring lib,$(USEMODULE)))
|
|
DIRS += lib
|
|
endif
|
|
ifneq (,$(findstring ping,$(USEMODULE)))
|
|
DIRS += ping
|
|
endif
|
|
ifneq (,$(findstring ps,$(USEMODULE)))
|
|
DIRS += ps
|
|
endif
|
|
ifneq (,$(findstring posix,$(USEMODULE)))
|
|
DIRS += posix
|
|
endif
|
|
ifneq (,$(findstring shell,$(USEMODULE)))
|
|
DIRS += shell
|
|
endif
|
|
ifneq (,$(findstring shell_commands,$(USEMODULE)))
|
|
DIRS += shell/commands
|
|
endif
|
|
ifneq (,$(findstring timex,$(USEMODULE)))
|
|
DIRS += timex
|
|
endif
|
|
ifneq (,$(findstring transceiver,$(USEMODULE)))
|
|
DIRS += transceiver
|
|
endif
|
|
ifneq (,$(findstring uart0,$(USEMODULE)))
|
|
DIRS += uart0
|
|
endif
|
|
ifneq (,$(findstring vtimer,$(USEMODULE)))
|
|
DIRS += vtimer
|
|
endif
|
|
ifneq (,$(findstring destiny,$(USEMODULE)))
|
|
DIRS += net/transport_layer/destiny
|
|
endif
|
|
ifneq (,$(findstring net_help,$(USEMODULE)))
|
|
DIRS += net/crosslayer/net_help
|
|
endif
|
|
ifneq (,$(findstring protocol_multiplex,$(USEMODULE)))
|
|
DIRS += net/link_layer/protocol-multiplex
|
|
endif
|
|
ifneq (,$(findstring sixlowpan,$(USEMODULE)))
|
|
DIRS += net/network_layer/sixlowpan
|
|
endif
|
|
ifneq (,$(findstring rpl,$(USEMODULE)))
|
|
DIRS += net/routing/rpl
|
|
endif
|
|
ifneq (,$(findstring ieee802154,$(USEMODULE)))
|
|
DIRS += net/link_layer/ieee802154
|
|
endif
|
|
ifneq (,$(findstring bloom,$(USEMODULE)))
|
|
DIRS += bloom
|
|
endif
|
|
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
|
|
endif
|
|
ifneq (,$(findstring random,$(USEMODULE)))
|
|
DIRS += random
|
|
endif
|
|
ifneq (,$(findstring hashes,$(USEMODULE)))
|
|
DIRS += hashes
|
|
endif
|
|
ifneq (,$(findstring semaphore,$(USEMODULE)))
|
|
DIRS += semaphore
|
|
endif
|
|
ifneq (,$(findstring ccn_lite,$(USEMODULE)))
|
|
DIRS += net/ccn_lite
|
|
endif
|
|
ifneq (,$(findstring ccn_lite_client,$(USEMODULE)))
|
|
DIRS += net/ccn_lite/util
|
|
endif
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
|
|
|
|
include $(RIOTBASE)/Makefile.base
|
|
|
|
# remove compilation products
|
|
clean::
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
|
|
|