diff --git a/common.mk b/common.mk index eee1b61..27914c4 100644 --- a/common.mk +++ b/common.mk @@ -279,7 +279,7 @@ $$($(1)_OBJ_DIR)%.o: $$($(1)_REAL_ROOT)%.S $$($(1)_MAKEFILE) $(wildcard $(ROOT)* $$($(1)_AR): $$($(1)_OBJ_FILES) $$($(1)_SRC_FILES) $(vecho) "AR $$@" $(Q) mkdir -p $$(dir $$@) - $(Q) $(AR) cru $$@ $$^ + $(Q) $(AR) cru $$@ $$(filter %.o,$$^) COMPONENT_ARS += $$($(1)_AR) diff --git a/tests/Makefile b/tests/Makefile index 476fc7b..cd8bd54 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -6,11 +6,9 @@ PROGRAM_SRC_DIR = $(PROGRAM_DIR) $(PROGRAM_DIR)cases PROGRAM_INC_DIR = $(PROGRAM_DIR)unity/src PROGRAM_EXTRA_SRC_FILES = $(PROGRAM_DIR)unity/src/unity.c -# append -u