+ALGORITHMS_TESTBIN = $(patsubst %,%_TESTBIN, $(ALGORITHMS))
+
+LIB_OBJECTS :=
+LIB_SRCDIRS :=
+LIB_DEFINES :=
+
+$(foreach a, $(LIB_ALGOS), $(eval $(call Add_Template, \
+ LIB_OBJECTS, \
+ $($(a)_OBJ) \
+)))
+LIB_OBJECTS := $(addprefix $(BIN_DIR)$(LIB_DIR), $(sort $(LIB_OBJECTS)))
+
+$(foreach a, $(LIB_ALGOS), $(eval $(call Add_Template, \
+ LIB_SRCDIRS, \
+ $($(a)_DIR) \
+)))
+
+$(foreach a, $(LIB_ALGOS), $(eval $(call Add_Template, \
+ LIB_SRCDIRS, \
+ $($(a)_INCDIR) \
+)))
+LIB_SRCDIRS := $(sort $(LIB_SRCDIRS))
+
+$(foreach a, $(LIB_ALGOS), $(eval $(call Add_Template, \
+ LIB_DEFINES, \
+ $($(a)_DEF) \
+)))
+LIB_DEFINES := $(sort $(LIB_DEFINES))
+