$(AR) ADD $$$${S// /,} TO $$$$L $(FILTER_KEIL_LIB_OUTPUT)
@touch $(USER_LIB_DIR)/timestamp
endef
+
+# Hack: Unfortunately, USER_LIB_DIR is set later and the rule below would not work.
+USER_LIB_DIR := $(MAKERULES_DIR)/_compiled/lib
+
+$(USER_LIB_DIR)/timestamp:
+ $(Q)touch $@
touch config.omk-default
needs_valid_CC
-make NM=false && error "cmetric error was not correctly detected"
-make || error "compilation error"
-cmp correct_cmetric_config.h _compiled/include/test/cmetric_config.h || \
- error "produced file differs"
+WVFAIL make NM=false FAILMSG="cmetric error was not correctly detected"
+WVPASS make FAILMSG="compilation error"
+
+eval $(make omk-get-var VAR=COMPILED_DIR_NAME|grep ^COMPILED_DIR_NAME)
+
+WVPASS diff -u correct_cmetric_config.h $COMPILED_DIR_NAME/include/test/cmetric_config.h
needs_valid_CC()
{
- CC=$(make -qp|sed -ne '/^CC = / s///p')
- if ! [[ -x "$CC" ]]; then
- echo "Warning: $CC not found - skipping the test"
+ CC=$(make omk-get-var VAR=CC|sed -ne '/^CC=/ s///p')
+ if ! which ${CC%% *} > /dev/null; then
+ echo "Warning: '$CC' not found - skipping the test"
exit 0
fi
}