]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - Makefile
modyfied copyright
[avr-crypto-lib.git] / Makefile
index c5460d793f6d68af80e948a679cf151a4da50bb7..c8a52b71ade627ff58bdfad1532b217d72a4960f 100644 (file)
--- 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
+