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
|
|
|
|
2014-04-09 15:23:12 +02:00
|
|
|
$(BINDIR)$(MODULE)/%.o: %.c
|
|
|
|
@mkdir -p $(BINDIR)$(MODULE)
|
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -c $*.c -o $(BINDIR)$(MODULE)/$*.o
|
2014-02-26 09:18:42 +01:00
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -MM $*.c |\
|
2014-04-09 15:23:12 +02:00
|
|
|
sed -e "1s|^|$(BINDIR)$(MODULE)/|" > $(BINDIR)$(MODULE)/$*.d
|