X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=Makefile;h=c06b398b758b64107bd5874df88cdc13e9edc555;hb=981c5b71dd5c99d080b9f36b0db9a211eeef494f;hp=00d1f5f3f935dbcc5898a9351c2f23be7fe9913b;hpb=2159c273c9d3361571a6ff1ab63d9bc76582fbab;p=avr-crypto-lib.git diff --git a/Makefile b/Makefile index 00d1f5f..c06b398 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ all: $(foreach algo, $(ALGORITHMS), $(algo)_OBJ) define MAIN_OBJ_TEMPLATE $(2): $(3) $(4) - @echo "[gcc]: $$@" + @echo "[ld]: $$@" # echo $$^ @$(CC) $(CFLAGS) $(LDFLAGS)$(patsubst %.elf,%.map,$(2)) -o \ $(2) \ @@ -204,28 +204,37 @@ docu: %.lst: %.elf $(OBJDUMP) -h -S $< > $@ +%.lst: %.o + $(OBJDUMP) -h -S $< > $@ + # Rules for building the .text rom images %.hex: %.elf - $(OBJCOPY) -j .text -j .data -O ihex $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .text -j .data -O ihex $< $@ %.srec: %.elf - $(OBJCOPY) -j .text -j .data -O srec $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .text -j .data -O srec $< $@ %.bin: %.elf - $(OBJCOPY) -j .text -j .data -O binary $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .text -j .data -O binary $< $@ # Rules for building the .eeprom rom images %_eeprom.hex: %.elf - $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@ %_eeprom.srec: %.elf - $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O srec $< $@ %_eeprom.bin: %.elf - $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@ + @echo "[objcopy]: $@" + @$(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O binary $< $@ # Every thing below here is used by avr-libc's build system and can be ignored