]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/sdcc
Makefile.rules can now tell the OMK tester that the test cannot be executed.
[omk.git] / snippets / sdcc
index 6bf44f327b2f7c869d1f867741ec047daf3d5c80..1d5baaedf7238fe969850518a2046617835ef4a2 100644 (file)
@@ -90,6 +90,14 @@ INCLUDE_DIR := $(USER_INCLUDE_DIR)
 LIB_DIR     := $(USER_LIB_DIR)
 OBJS_DIR    := $(USER_OBJS_DIR)
 
+# Checks for OMK tester
+ifdef OMK_TESTSROOT
+default-config-pass-check include-pass-check:
+library-pass-check binary-pass-check:
+       @[ -x "$(shell which $(CC))" ] || $(call canttest,Cannot file compiler: $(CC))
+       @[ -z "$(wildcard $(USER_LIB_DIR)/$(LD_SCRIPT).ld*)" ] && $(call canttest,LD_SCRIPT $(LD_SCRIPT).ld* not found)
+endif
+
 #=====================================================================
 # User-space rules and templates to compile programs, libraries etc.