From 0ca0cb61673bbcb81fd5bedc9ecc4043dfa39ae5 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Mon, 5 Mar 2018 23:54:23 -0800 Subject: [PATCH] blue-pill: update skeleton/blinky Makefile --- .gitignore | 1 - blue-pill/blinky/Makefile | 8 +++++++- blue-pill/skeleton/Makefile | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6ccae54..790d531 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,6 @@ ods/data/ods-cpp.pdf # autotools junk files .deps -Makefile Makefile.in aclocal.m4 autom4te.cache/ diff --git a/blue-pill/blinky/Makefile b/blue-pill/blinky/Makefile index ce23de3..d5a2772 100644 --- a/blue-pill/blinky/Makefile +++ b/blue-pill/blinky/Makefile @@ -1,6 +1,7 @@ # configurables -OBJS := blinky.o +OBJS := TARGET := blinky +OBJS += $(TARGET).o # targets ELF := $(TARGET).elf @@ -32,6 +33,11 @@ $(ELF): $(OBJS) $(ARMCC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS) $(ARMSIZE) -A $@ +.PHONY: strip +strip: $(ELF) + $(ARMTC)-strip $(ELF) + $(ARMSIZE) -A $(ELF) + $(BIN): $(ELF) $(OBJCOPY) -O binary $< $@ diff --git a/blue-pill/skeleton/Makefile b/blue-pill/skeleton/Makefile index 7c868d0..5f0531d 100644 --- a/blue-pill/skeleton/Makefile +++ b/blue-pill/skeleton/Makefile @@ -1,6 +1,7 @@ # configurables OBJS := TARGET := +OBJS += $(TARGET).o # targets ELF := $(TARGET).elf