2016-02-08 03:15:12 +00:00
|
|
|
PROGRAM=tests
|
|
|
|
|
|
|
|
PROGRAM_SRC_DIR = $(PROGRAM_DIR) $(PROGRAM_DIR)cases
|
|
|
|
|
2016-02-09 10:03:50 +00:00
|
|
|
# Add unity test framework headers & core source file
|
|
|
|
PROGRAM_INC_DIR = $(PROGRAM_DIR)unity/src
|
|
|
|
PROGRAM_EXTRA_SRC_FILES = $(PROGRAM_DIR)unity/src/unity.c
|
|
|
|
|
2016-02-08 03:15:12 +00:00
|
|
|
TESTCASE_SRC_FILES = $(wildcard $(PROGRAM_DIR)cases/*.c)
|
2016-02-17 06:31:46 +00:00
|
|
|
|
|
|
|
# Link every object in the 'program' archive, to pick up constructor functions for test cases
|
|
|
|
EXTRA_LDFLAGS = -Wl,--whole-archive $(BUILD_DIR)program.a -Wl,--no-whole-archive
|
2016-02-08 03:15:12 +00:00
|
|
|
|
|
|
|
include ../common.mk
|