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
|
# autotools junk files
|
||||||
.deps
|
.deps
|
||||||
Makefile
|
|
||||||
Makefile.in
|
Makefile.in
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
autom4te.cache/
|
autom4te.cache/
|
||||||
|
|
|
@ -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 $< $@
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# configurables
|
# configurables
|
||||||
OBJS :=
|
OBJS :=
|
||||||
TARGET :=
|
TARGET :=
|
||||||
|
OBJS += $(TARGET).o
|
||||||
|
|
||||||
# targets
|
# targets
|
||||||
ELF := $(TARGET).elf
|
ELF := $(TARGET).elf
|
||||||
|
|
Loading…
Reference in New Issue