1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/Makefile

92 lines
2.1 KiB
Makefile
Raw Normal View History

2013-07-29 01:24:02 +02:00
INCLUDES += -Iinclude -I$(RIOTBASE)/drivers/ -I$(RIOTBASE)/drivers/include -Ilib -I$(RIOTCPU)/$(CPU)/include -Inet -I../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 cmdd,$(USEMODULE)))
DIRS += cmdd
endif
ifneq (,$(findstring mprint,$(USEMODULE)))
DIRS += mprint
endif
ifneq (,$(findstring ping,$(USEMODULE)))
DIRS += ping
endif
ifneq (,$(findstring ps,$(USEMODULE)))
DIRS += ps
endif
ifneq (,$(findstring sync_read,$(USEMODULE)))
DIRS += sync_read
endif
ifneq (,$(findstring sysmon,$(USEMODULE)))
DIRS += sysmon
endif
ifneq (,$(findstring mqueue,$(USEMODULE)))
DIRS += mqueue
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
2013-03-16 17:02:35 +01:00
ifneq (,$(findstring destiny,$(USEMODULE)))
DIRS += net/destiny
endif
ifneq (,$(findstring net_mm,$(USEMODULE)))
DIRS += net/mm
endif
ifneq (,$(findstring net_help,$(USEMODULE)))
DIRS += net/net_help
endif
ifneq (,$(findstring protocol_multiplex,$(USEMODULE)))
2013-03-16 17:02:35 +01:00
DIRS += net/protocol-multiplex
endif
ifneq (,$(findstring sixlowpan,$(USEMODULE)))
DIRS += net/sixlowpan
2013-07-05 09:35:29 +02:00
endif
ifneq (,$(findstring rpl,$(USEMODULE)))
2013-08-04 04:46:17 +02:00
DIRS += net/rpl
2013-03-16 17:02:35 +01:00
endif
ifneq (,$(findstring ieee802154,$(USEMODULE)))
DIRS += net/ieee802154
endif
2013-08-04 22:01:11 +02:00
ifneq (,$(findstring bloom,$(USEMODULE)))
DIRS += bloom
endif
2013-08-06 18:52:30 +02:00
ifneq (,$(findstring crypto,$(USEMODULE)))
DIRS += crypto
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 ;