From 3d4dcc9042cd9ac37691460fa15e586ebe97dc68 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 17 Feb 2016 17:31:46 +1100 Subject: [PATCH] tests: Use better linker method to pick up test case registration --- common.mk | 2 +- tests/Makefile | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) 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