-$(foreach algo, $(ALGORITHMS), $(eval $(call MAIN_OBJ_TEMPLATE, \
- $(algo), \
- $(TESTBIN_DIR)main-$(call lc,$(algo))-test.elf, \
- $(patsubst %.o,%.o,$($(algo)_TEST_BIN)), \
- $(patsubst %.o,%.o,$($(algo)_OBJ)) )))
-
-
-
-
-#-------------------------------------------------------------------------------
-.PHONY: help
-help: info
-
-info:
- @echo "infos on micro-crypt:"
- @echo " block ciphers:"
- @echo " $(BLOCK_CIPHERS)"
- @echo " stream ciphers:"
- @echo " $(STREAM_CIPHERS)"
- @echo " hash functions:"
- @echo " $(HASHES)"
- @echo " MAC functions:"
- @echo " $(MACS)"
- @echo " PRNG functions:"
- @echo " $(PRNGS)"
-# @echo " ALGORITHMS_TEST_BIN:"
-# @echo " $(ALGORITHMS_TEST_BIN)"
-# @echo " ALGORITHMS_TEST_TARGET_ELF:"
-# @echo " $(ALGORITHMS_TEST_TARGET_ELF)"
-
-#-------------------------------------------------------------------------------
-
-
-$(BIN_DIR)%.o: %.c
- @echo "[gcc]: $@"
- @$(CC) $(CFLAGS) -c -o $@ $<
-
-$(BIN_DIR)%.o: %.S
- @echo "[as] : $@"
- @$(CC) $(ASFLAGS) -c -o $@ $<
-
-$(TESTBIN_DIR)%.o: $(TESTSRC_DIR)%.c
- @echo "[gcc]: $@"
- @$(CC) $(CFLAGS) -c -o $@ $<
-
-$(TESTBIN_DIR)%.o: $(TESTSRC_DIR)%.S
- @echo "[as] : $@"
- @$(CC) $(ASFLAGS) -c -o $@ $<
-
-
-%.o: %.c
- @echo "[gcc]: $@"
- @$(CC) $(CFLAGS) -c -o $@ $<
-
-%.o: %.S
- @echo "[as] : $@"
- @$(CC) $(ASFLAGS) -c -o $@ $<
+$(foreach a, $(ALGORITHMS), \
+ $(eval $(call MainTestElf_Template, \
+ $(BIN_DIR)$(call lc, $(a))/$(TEST_DIR)main-$(call lc, $(a))-test.elf, \
+ $($(a)_BINOBJ), \
+ $($(a)_TESTBINOBJ) \
+ )) \
+)