X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=Makefile;h=c8a52b71ade627ff58bdfad1532b217d72a4960f;hb=6bca96e560e6097aa5b225fad67f2e2a27f4182f;hp=c5460d793f6d68af80e948a679cf151a4da50bb7;hpb=cdcf3abb345577e07bdce0623c947e2737b84085;p=avr-crypto-lib.git diff --git a/Makefile b/Makefile index c5460d7..c8a52b7 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ PRG = remove_me #------------------------------------------------------------------------------- +all: $(foreach algo, $(ALGORITHMS), $(algo)_OBJ) + +#------------------------------------------------------------------------------- + define BLA_TEMPLATE2 $(2): $(3) @echo "[gcc]: $$@" @@ -151,16 +155,13 @@ $(foreach algo, $(ALGORITHMS),$(eval $(call FLASH_TEMPLATE, $(algo), \ $(patsubst %.o,%.hex,$(firstword $($(algo)_TEST_BIN)))) )) #------------------------------------------------------------------------------- - -.PHONY: all -all: $(foreach algo, $(ALGORITHMS), $(algo)_OBJ) -#all: $(PRG).elf lst text eeprom - .PHONY: clean clean: rm -rf *.o *.elf *.eps *.png *.pdf *.bak *_size.txt rm -rf *.lst *.map $(EXTRA_CLEAN_FILES) $(SIZESTAT_FILE) +xclean: clean + rm -rf *.d flash: $(ERASECMD) @@ -227,3 +228,10 @@ pdf: $(PRG).pdf %.png: %.fig $(FIG2DEV) -L png $< $@ + + +DEPS := $(wildcard *.d) +ifneq ($(DEPS),) +include $(DEPS) +endif +