X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=Makefile_main.inc;h=34aa6257fee98c9555cd064a3b4f8d06fd031220;hp=1edb6601f601c719bf59330314f0948a054de713;hb=refs%2Fheads%2Fbigint2-dev;hpb=7715ef86b09869014eb5afd319e4acc2ce157b00 diff --git a/Makefile_main.inc b/Makefile_main.inc index 1edb660..34aa625 100644 --- a/Makefile_main.inc +++ b/Makefile_main.inc @@ -80,7 +80,7 @@ endef define TargetSourceList_Template $(1): $(2) @mkdir -p $(dir $(1)) $(DEP_DIR) - @echo "[cc]: $(1) <-- $(2)" + @echo "[lst]: $(1) <-- $(2)" @$(CC) $(CFLAGS_A) $(addprefix -I./,$(3)) $(addprefix -D, $(4)) $(LIST_OPT) -c -o /dev/null $(2) > $(1) endef @@ -191,7 +191,7 @@ endef $(foreach algo, $(ALGORITHMS), $(eval $(call TestBin_TEMPLATE, \ $(algo), \ - $(BIN_DIR)$(call lc, $(algo))/$(TEST_DIR)main-$(call lc, $(algo))-test.elf \ + $(BIN_DIR)$(call lc, $(algo))/$(TEST_DIR)main-$(call lc, $(algo))-test.hex \ ))) #------------------------------------------------------------------------------- @@ -210,6 +210,12 @@ $(foreach algo, $(ALGORITHMS), $(eval $(call Listing_TEMPLATE, \ %.hex: %.elf @echo "[objcopy]: $@" @$(OBJCOPY) -j .text -j .data -O ihex $< $@ +ifdef HASH_TOOL +ifneq ($(HASH_TOOL),) + @echo -n "[$(HASH_TOOL)]: " + @$(HASH_TOOL) $@ +endif +endif #-------------------------------------------------------------------------------