blue-pill: update skeleton/blinky Makefile

This commit is contained in:
Kyle Isom 2018-03-05 23:54:23 -08:00
parent 71eb73967b
commit 0ca0cb6167
3 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -22,7 +22,6 @@ ods/data/ods-cpp.pdf
# autotools junk files # autotools junk files
.deps .deps
Makefile
Makefile.in Makefile.in
aclocal.m4 aclocal.m4
autom4te.cache/ autom4te.cache/

View File

@ -1,6 +1,7 @@
# configurables # configurables
OBJS := blinky.o OBJS :=
TARGET := blinky TARGET := blinky
OBJS += $(TARGET).o
# targets # targets
ELF := $(TARGET).elf ELF := $(TARGET).elf
@ -32,6 +33,11 @@ $(ELF): $(OBJS)
$(ARMCC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS) $(ARMCC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
$(ARMSIZE) -A $@ $(ARMSIZE) -A $@
.PHONY: strip
strip: $(ELF)
$(ARMTC)-strip $(ELF)
$(ARMSIZE) -A $(ELF)
$(BIN): $(ELF) $(BIN): $(ELF)
$(OBJCOPY) -O binary $< $@ $(OBJCOPY) -O binary $< $@

View File

@ -1,6 +1,7 @@
# configurables # configurables
OBJS := OBJS :=
TARGET := TARGET :=
OBJS += $(TARGET).o
# targets # targets
ELF := $(TARGET).elf ELF := $(TARGET).elf