native modules will never need the dynamic INCLUDES, so we define our own NATIVEINCLUDES. Due to the current make structure, the only way to not use INCLUDES is to redefine the build rules.
18 lines
458 B
Makefile
18 lines
458 B
Makefile
MODULE =$(BOARD)_base
|
|
|
|
DIRS = drivers
|
|
|
|
all: $(BINDIR)$(MODULE).a
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
|
|
|
|
include $(RIOTBASE)/Makefile.base
|
|
|
|
$(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
|
|
|
|
|
|
clean::
|
|
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
|