]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/sdcc
Fixed typo in messages from -check targets
[omk.git] / snippets / sdcc
index 6bf44f327b2f7c869d1f867741ec047daf3d5c80..0816a81872ad6f7f2262e50786db7967c61df010 100644 (file)
@@ -34,9 +34,6 @@ TARGETLOADER = ul_sendhex
 ARFLAGS = -a
 A51TOASX = $(MAKERULES_DIR)/a51toasx.sh
 
-# Include possible target configuration
--include $(MAKERULES_DIR)/config.target
-
 BUILD_DIR_NAME = _build
 COMPILED_DIR_NAME = _compiled
 GROUP_DIR_NAME =
@@ -73,6 +70,7 @@ library-pass: include-pass
 binary-pass utils-pass: library-pass
 
 override OMK_SERIALIZE_INCLUDED = y
+MAKEOVERRIDES := $(filter-out OMK_SERIALIZE_INCLUDED=n,$(MAKEOVERRIDES))
 endif
 
 CPPFLAGS  += -I $(USER_INCLUDE_DIR)
@@ -90,6 +88,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 find 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.