major refactor of the unit test makefile

- Specify source files in variables instead of manually writing
   the make file rules, this removes a lot of duplication
 - Use separate folders for all tests allowing for tests and common
   source files to be built with different settings (defines)
This commit is contained in:
Magnus Ivarsson 2017-04-03 23:40:25 +02:00
parent 149ed180f6
commit e88e251df9
3 changed files with 232 additions and 1004 deletions

View File

@ -37,10 +37,6 @@ SERIAL_DEVICE ?= $(firstword $(wildcard /dev/ttyUSB*) no-port-found)
# Flash size (KB). Some low-end chips actually have more flash than advertised, use this to override.
FLASH_SIZE ?=
## V : Set verbosity level based on the V= parameter
## V=0 Low
## V=1 High
include build_verbosity.mk
###############################################################################
# Things that need to be maintained as the source changes
@ -58,6 +54,11 @@ INCLUDE_DIRS = $(SRC_DIR) \
$(ROOT)/src/main/target
LINKER_DIR = $(ROOT)/src/main/target/link
## V : Set verbosity level based on the V= parameter
## V=0 Low
## V=1 High
include $(ROOT)/make/build_verbosity.mk
# Build tools, so we all share the same versions
# import macros common to all supported build systems
include $(ROOT)/make/system-id.mk

File diff suppressed because it is too large Load Diff