]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
build: Customize silent rule prefixes for sdas/sdcc
authorDaniel Elstner <redacted>
Mon, 9 Nov 2015 13:57:33 +0000 (14:57 +0100)
committerDaniel Elstner <redacted>
Mon, 9 Nov 2015 13:57:33 +0000 (14:57 +0100)
Be fancy and print custom SDAS and SDCC prefixes in silent-rules
mode.

Makefile.am

index 4e02f430cdbd0520709cff7bd1b506361819bc1a..b9ffc13903b8d39e1cfb76017a0de5c2e8e62abe 100644 (file)
@@ -219,6 +219,17 @@ MOSTLYCLEANFILES = *.asm fx2lib/lib/*.asm fx2lib/lib/*.lib fx2lib/lib/interrupts
 CLEANFILES = $(firmware_binaries)
 DISTCLEANFILES = $(dirstamps)
 
+# Custom silent rules prefixes
+SF_V_SDAS = $(sf_v_SDAS_@AM_V@)
+sf_v_SDAS_ = $(sf_v_SDAS_@AM_DEFAULT_V@)
+sf_v_SDAS_0 = @echo "  SDAS    " $@;
+sf_v_SDAS_1 =
+
+SF_V_SDCC = $(sf_v_SDCC_@AM_V@)
+sf_v_SDCC_ = $(sf_v_SDCC_@AM_DEFAULT_V@)
+sf_v_SDCC_0 = @echo "  SDCC    " $@;
+sf_v_SDCC_1 =
+
 .PHONY: dist-bin dist-changelog
 
 all-local: $(firmware_binaries)
@@ -303,10 +314,10 @@ hw/sigrok-fx2-16ch/fx2lafw-sigrok-fx2-16ch.ihx: hw/sigrok-fx2-16ch/dscr.rel $(fx
        $(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS) -o $@ hw/sigrok-fx2-16ch/dscr.rel $(fx2lafw_objects) $(fx2lib_libs)
 
 .a51.rel:
-       $(AM_V_GEN)$(SDAS8051) -glos $(as_includes) $@ $<
+       $(SF_V_SDAS)$(SDAS8051) -glos $(as_includes) $@ $<
 
 .c.rel:
-       $(AM_V_GEN)$(SDCC) -mmcs51 $(c_includes) -c $< -o $@
+       $(SF_V_SDCC)$(SDCC) -mmcs51 $(c_includes) -c $< -o $@
 
 if FOUND_OBJCOPY
 .ihx.fw: