MODULE = cpu INCLUDES = -I../include -I$(RIOTBASE)/core/include DIRS = ifneq (,$(findstring rtc,$(USEMODULE))) DIRS += rtc endif ifneq (,$(findstring cc110x_ng,$(USEMODULE))) DIRS += cc110x_ng INCLUDES += -I$(RIOTBASE)/drivers/cc110x_ng/include endif all: $(BINDIR)$(MODULE).a @for i in $(DIRS) ; do $(MAKE) -C $$i ; done ; include $(RIOTBASE)/Makefile.base clean:: @for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;