summaryrefslogtreecommitdiff
path: root/serial_link_tests.mk
diff options
context:
space:
mode:
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