summaryrefslogtreecommitdiff
path: root/serial_link_tests.mk
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-02-14 01:31:01 +0200
committerFred Sundvik <fsundvik@gmail.com>2016-02-14 01:31:01 +0200
commit3c6b93a491ab6ea280c30be26980e2ca91ba5c4c (patch)
tree6179643b5c812e2a4297d62245cb5e091b8e728f /serial_link_tests.mk
parente9a1474bb6a92024c8d4e3095d6b871833db1cf4 (diff)
Add separate makefile for tests
Diffstat (limited to 'serial_link_tests.mk')
-rw-r--r--serial_link_tests.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/serial_link_tests.mk b/serial_link_tests.mk
new file mode 100644
index 0000000000..36d7c09b3f
--- /dev/null
+++ b/serial_link_tests.mk
@@ -0,0 +1,13 @@
+CGREEN_LIB = $(BUILDDIR)/cgreen/build-c/src/libcgreen.a
+
+CGREEN_DIR = "$(CURDIR)/$(SERIAL_DIR)/cgreen/cgreen"
+CGREEN_BUILD_DIR = "$(CURDIR)/$(BUILDDIR)/cgreen"
+export CGREEN_DIR
+export CGREEN_BUILD_DIR
+$(CGREEN_LIB):
+ make -C $(SERIAL_DIR)/cgreen
+
+.PHONY serialtest:
+serialtest : $(CGREEN_LIB)
+ @echo $(CGREEN_LIB)
+ make -C $(SERIAL_DIR)/tests BUILDDIR=../../$(BUILDDIR) \ No newline at end of file