blue-pill: update skeleton/blinky Makefile
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user