diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,7 @@ CPU = cortex-m4 MCU = MK20DX256 +MK20DX256 = ../mk20dx256 +# Change this to suit TARGET_ARCH = -mcpu=$(CPU) -mthumb AS = arm-none-eabi-as @@ -17,6 +19,9 @@ ASFLAGS = $(TARGET_ARCH) OBJ := crt0.o vectors.o flashconf.o setup.o fmk.o lib/le.o usb/usb.o usb/endpt0.o usb/endpt1.o +include $(MK20DX256)/mk20dx256.mk +CPPFLAGS += $(mk20dx256_CPPFLAGS) + %.bin: % $(OBJCOPY) -O binary $< $@ |