2013-03-06 01:08:15 +01:00
|
|
|
MODULE = cpu
|
|
|
|
|
|
|
|
DIRS =
|
2014-02-14 14:30:16 +01:00
|
|
|
ifneq (,$(filter rtc,$(USEMODULE)))
|
2013-03-06 01:08:15 +01:00
|
|
|
DIRS += rtc
|
|
|
|
endif
|
2014-02-14 14:30:16 +01:00
|
|
|
ifneq (,$(filter nativenet,$(USEMODULE)))
|
2013-08-08 11:08:33 +02:00
|
|
|
DIRS += net
|
2013-03-21 17:08:41 +01:00
|
|
|
endif
|
2013-03-06 01:08:15 +01:00
|
|
|
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
2014-03-12 11:03:34 +01:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i || exit 1; done ;
|
2013-03-06 01:08:15 +01:00
|
|
|
|
2013-03-12 16:03:37 +01:00
|
|
|
include $(RIOTBASE)/Makefile.base
|
2013-03-06 01:08:15 +01:00
|
|
|
|
2013-12-23 00:17:36 +01:00
|
|
|
$(BINDIR)%.o: %.c
|
2014-02-27 10:30:30 +01:00
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -c $*.c -o $(BINDIR)$*.o
|
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -MM $*.c > $(BINDIR)$*.d
|
2013-12-23 00:17:36 +01:00
|
|
|
@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
|
|
|
|
|
|
|
|
|
2013-03-06 01:08:15 +01:00
|
|
|
clean::
|
2014-03-12 11:03:34 +01:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean || exit 1; done ;
|