blue-pill: update skeleton/blinky Makefile
This commit is contained in:
parent
71eb73967b
commit
0ca0cb6167
|
@ -22,7 +22,6 @@ ods/data/ods-cpp.pdf
|
|||
|
||||
# autotools junk files
|
||||
.deps
|
||||
Makefile
|
||||
Makefile.in
|
||||
aclocal.m4
|
||||
autom4te.cache/
|
||||
|
|
|
@ -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 $< $@
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# configurables
|
||||
OBJS :=
|
||||
TARGET :=
|
||||
OBJS += $(TARGET).o
|
||||
|
||||
# targets
|
||||
ELF := $(TARGET).elf
|
||||
|
|
Loading…
Reference in New Issue