summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 187d516..d663578 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $< $@