# utils_PROGRAMS .. list of the development utility programs
# test_PROGRAMS .. list of the test programs
# xxx_SOURCES .. list of specific target sources
# utils_PROGRAMS .. list of the development utility programs
# test_PROGRAMS .. list of the test programs
# xxx_SOURCES .. list of specific target sources
# INCLUDES .. additional include directories and defines for user-space
# tar_EMBEDFILES .. list of tars with embedded files
# INCLUDES .. additional include directories and defines for user-space
# tar_EMBEDFILES .. list of tars with embedded files
-# Include RTEMS target configuration defining RTEMS_MAKEFILE_PATH
-include $(MAKERULES_DIR)/config.target
+ifdef OMK_TESTSROOT
+ifeq ($(RTEMS_MAKEFILE_PATH),)
+$(error $(shell $(call canttest,RTEMS_MAKEFILE_PATH not defined)))
+endif
+endif
- ( test -e $$$$ABSOLUTETARFILE && ( cd $(3) && tar -df $$$$ABSOLUTETARFILE ) ) || \
- ( cd $(3) && tar -cf $$$$ABSOLUTETARFILE . )
+ ( test -e $$$$ABSOLUTETARFILE && ( cd $(3) && tar $$(TARFLAGS) -df $$$$ABSOLUTETARFILE ) ) || \
+ ( cd $(3) && tar $$(TARFLAGS) -cf $$$$ABSOLUTETARFILE . )
$(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always))
$(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always))
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
@$(call mkdir_def,$(USER_BIN_DIR))
@$(call mkdir_def,$(USER_UTILS_DIR))
@$(call mkdir_def,$(USER_TESTS_DIR))
@$(call mkdir_def,$(USER_INCLUDE_DIR))
@$(call mkdir_def,$(USER_LIB_DIR))
@$(call mkdir_def,$(USER_BIN_DIR))
@$(call mkdir_def,$(USER_UTILS_DIR))
@$(call mkdir_def,$(USER_TESTS_DIR))