1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu/native/Makefile

27 lines
711 B
Makefile
Raw Normal View History

2013-03-06 01:08:15 +01:00
MODULE = cpu
2013-12-23 00:17:36 +01:00
EXCLUDES := -I$(RIOTBASE)/sys/posix/%
2013-03-06 01:08:15 +01:00
DIRS =
ifneq (,$(findstring rtc,$(USEMODULE)))
DIRS += rtc
endif
2013-08-08 11:08:33 +02:00
ifneq (,$(findstring nativenet,$(USEMODULE)))
DIRS += net
2013-03-21 17:08:41 +01:00
endif
2013-03-06 01:08:15 +01:00
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; 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
$(AD)$(CC) $(CFLAGS) $(filter-out $(EXCLUDES),$(INCLUDES)) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -c $*.c -o $(BINDIR)$*.o
2013-12-23 00:17:36 +01:00
@$(CC) $(CFLAGS) $(INCLUDES) $(BOARDINCLUDE) $(PROJECTINCLUDE) $(CPUINCLUDE) -MM $*.c > $(BINDIR)$*.d
@printf "$(BINDIR)" | cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
2013-03-06 01:08:15 +01:00
clean::
@for i in $(DIRS) ; do "$(MAKE)" -C $$i clean ; done ;
2013-03-06 01:08:15 +01:00