tools/tracing/rtla/tests/unit/Makefile.unit

Source file repositories/reference/linux-study-clean/tools/tracing/rtla/tests/unit/Makefile.unit

File Facts

System
Linux kernel
Corpus path
tools/tracing/rtla/tests/unit/Makefile.unit
Extension
.unit
Size
544 bytes
Lines
18
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: build/configuration rule
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only

UNIT_TESTS := $(OUTPUT)unit_tests
UNIT_TESTS_IN := $(UNIT_TESTS)-in.o

$(UNIT_TESTS): $(UNIT_TESTS_IN) $(RTLA_IN) $(LIBSUBCMD) $(LIB_STRING) $(LIB_STR_ERROR_R)
	$(QUIET_LINK)$(CC) $(LDFLAGS) -o $@ $^ $(EXTLIBS) -lcheck

$(UNIT_TESTS_IN): fixdep $(LIBSUBCMD_INCLUDES)
	make $(build)=unit_tests

unit-tests: FORCE
	$(Q)if [ "$(feature-libcheck)" = "1" ]; then \
		$(MAKE) $(UNIT_TESTS) && $(UNIT_TESTS); \
	else \
		echo "libcheck is missing, skipping unit tests. Please install check-devel/check"; \
	fi

Annotation

Implementation Notes