2013-12-21 16:27:45 +01:00
|
|
|
MODULE =$(BOARD)_base
|
2013-03-06 01:10:50 +01:00
|
|
|
|
2013-12-21 16:27:45 +01:00
|
|
|
DIRS = drivers
|
2013-03-06 01:10:50 +01:00
|
|
|
|
2013-12-21 16:27:45 +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:10:50 +01:00
|
|
|
|
2013-12-21 16:27:45 +01:00
|
|
|
include $(RIOTBASE)/Makefile.base
|
2013-03-06 01:10:50 +01:00
|
|
|
|
2014-02-27 10:30:30 +01:00
|
|
|
$(BINDIR)%.o: %.c
|
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -c $*.c -o $(BINDIR)$*.o
|
|
|
|
$(AD)$(CC) $(CFLAGS) $(NATIVEINCLUDES) -MM $*.c > $(BINDIR)$*.d
|
|
|
|
@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
|
|
|
|
|
|
|
|
|
2013-12-21 16:27:45 +01:00
|
|
|
clean::
|
2014-03-12 11:03:34 +01:00
|
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean || exit 1; done ;
|