Add makefile for compiling and running unit tests

This commit is contained in:
Fred Sundvik
2016-02-14 00:20:14 +02:00
parent e70cefc12f
commit e9a1474bb6
2 changed files with 50 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
.phony testserial:
testserial: $(CGREEN_LIB)
make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR)
CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"