2013-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
INCLUDES = -Iinclude -I$(RIOTBASE)/drivers/ -I$(RIOTBASE)/drivers/include -Ilib -I../.. -I../cpu/$(CPU)/include -I../cpu/ -Ilib/cmdengine -Inet -I../hal/include -I../core/include -Iconfig
|
|
|
|
|
|
|
|
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 net,$(USEMODULE)))
|
|
|
|
DIRS += net
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring lib,$(USEMODULE)))
|
|
|
|
DIRS += lib
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring logd,$(USEMODULE)))
|
|
|
|
DIRS += logd
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring cmdd,$(USEMODULE)))
|
|
|
|
DIRS += cmdd
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring mprint,$(USEMODULE)))
|
|
|
|
DIRS += mprint
|
|
|
|
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
|
2013-02-06 13:20:21 +01:00
|
|
|
ifneq (,$(findstring sync_read,$(USEMODULE)))
|
|
|
|
DIRS += sync_read
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring syslog,$(USEMODULE)))
|
|
|
|
DIRS += syslog
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring sysmon,$(USEMODULE)))
|
|
|
|
DIRS += sysmon
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring mqueue,$(USEMODULE)))
|
|
|
|
DIRS += mqueue
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring posix,$(USEMODULE)))
|
|
|
|
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
|
2013-02-08 19:10:33 +01:00
|
|
|
ifneq (,$(findstring swtimer,$(USEMODULE)))
|
|
|
|
DIRS += swtimer
|
|
|
|
endif
|
2013-02-08 17:37:02 +01:00
|
|
|
ifneq (,$(findstring timex,$(USEMODULE)))
|
|
|
|
DIRS += timex
|
|
|
|
endif
|
2013-02-06 13:20:21 +01:00
|
|
|
ifneq (,$(findstring tracelog,$(USEMODULE)))
|
|
|
|
DIRS += tracelog
|
|
|
|
endif
|
|
|
|
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-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
|
|
|
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
|
|
|
|
|
2013-03-09 23:47:21 +01:00
|
|
|
include $(RIOTBASE)/Makefile.base
|
2013-02-06 13:20:21 +01:00
|
|
|
|
|
|
|
# remove compilation products
|
|
|
|
clean::
|
|
|
|
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
|
|
|
|
|
|
|
|
|
|
|
|
|