14 lines
368 B
Makefile
14 lines
368 B
Makefile
CONTIKI_ARM_DIRS += cortex-m/cm4
|
|
|
|
CFLAGS += -mcpu=cortex-m4
|
|
LDFLAGS += -mcpu=cortex-m4
|
|
|
|
### Compilation rules
|
|
CUSTOM_RULE_LINK=1
|
|
|
|
%.elf: $(TARGET_STARTFILES) %.co $(PROJECT_OBJECTFILES) $(PROJECT_LIBRARIES) contiki-$(TARGET).a $(TARGET_LIBS)
|
|
$(TRACE_LD)
|
|
$(Q)$(CC) $(LDFLAGS) ${filter %o %.co %.a,$^} -o $@
|
|
|
|
include $(CONTIKI)/arch/cpu/arm/cortex-m/Makefile.cortex-m
|