aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile.include
diff options
context:
space:
mode:
authorUwe Hermann2010-12-29 15:44:12 +0100
committerUwe Hermann2010-12-29 15:44:12 +0100
commita6e6a08a3ac7a61e3067e3d26bdb65ee6149e259 (patch)
tree12c8df870305dff66150ba00ac1bedf5743fa379 /examples/Makefile.include
parent24e9860d304c09f804c392fc3ae530c78de29886 (diff)
Make the build/clean targets a bit less verbose.
Diffstat (limited to 'examples/Makefile.include')
-rw-r--r--examples/Makefile.include20
1 files changed, 7 insertions, 13 deletions
diff --git a/examples/Makefile.include b/examples/Makefile.include
index bd978fe..53cf598 100644
--- a/examples/Makefile.include
+++ b/examples/Makefile.include
@@ -55,44 +55,38 @@ images: $(BINARY).images
flash: $(BINARY).flash
%.images: %.bin %.hex %.srec %.list
- @echo "*** $* images generated ***"
+ @#echo "*** $* images generated ***"
%.bin: %.elf
- @printf " OBJCOPY $(*).bin\n"
+ @#printf " OBJCOPY $(*).bin\n"
$(Q)$(OBJCOPY) -Obinary $(*).elf $(*).bin
%.hex: %.elf
- @printf " OBJCOPY $(*).hex\n"
+ @#printf " OBJCOPY $(*).hex\n"
$(Q)$(OBJCOPY) -Oihex $(*).elf $(*).hex
%.srec: %.elf
- @printf " OBJCOPY $(*).srec\n"
+ @#printf " OBJCOPY $(*).srec\n"
$(Q)$(OBJCOPY) -Osrec $(*).elf $(*).srec
%.list: %.elf
- @printf " OBJDUMP $(*).list\n"
+ @#printf " OBJDUMP $(*).list\n"
$(Q)$(OBJDUMP) -S $(*).elf > $(*).list
%.elf: $(OBJS) $(LDSCRIPT)
- @printf " LD $(subst $(shell pwd)/,,$(@))\n"
+ @#printf " LD $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(LD) $(LDFLAGS) -o $(*).elf $(OBJS) -lopenstm32
%.o: %.c Makefile
- @printf " CC $(subst $(shell pwd)/,,$(@))\n"
+ @#printf " CC $(subst $(shell pwd)/,,$(@))\n"
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
clean:
- @printf " CLEAN $(subst $(shell pwd)/,,$(OBJS))\n"
$(Q)rm -f *.o
- @printf " CLEAN *.elf\n"
$(Q)rm -f *.elf
- @printf " CLEAN *.bin\n"
$(Q)rm -f *.bin
- @printf " CLEAN *.hex\n"
$(Q)rm -f *.hex
- @printf " CLEAN *.srec\n"
$(Q)rm -f *.srec
- @printf " CLEAN *.list\n"
$(Q)rm -f *.list
ifeq ($(OOCD_SERIAL),)