1 # SPDX-License-Identifier: GPL-2.0-only 1 # SPDX-License-Identifier: GPL-2.0-only 2 all: test vsock_perf !! 2 all: test 3 test: vsock_test vsock_diag_test vsock_uring_t !! 3 test: vsock_test vsock_diag_test 4 vsock_test: vsock_test.o vsock_test_zerocopy.o !! 4 vsock_test: vsock_test.o timeout.o control.o util.o 5 vsock_diag_test: vsock_diag_test.o timeout.o c 5 vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o 6 vsock_perf: vsock_perf.o msg_zerocopy_common.o << 7 << 8 vsock_uring_test: LDLIBS = -luring << 9 vsock_uring_test: control.o util.o vsock_uring << 10 6 11 CFLAGS += -g -O2 -Werror -Wall -I. -I../../inc 7 CFLAGS += -g -O2 -Werror -Wall -I. -I../../include -I../../../usr/include -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -D_GNU_SOURCE 12 .PHONY: all test clean 8 .PHONY: all test clean 13 clean: 9 clean: 14 ${RM} *.o *.d vsock_test vsock_diag_te !! 10 ${RM} *.o *.d vsock_test vsock_diag_test 15 -include *.d 11 -include *.d 16 << 17 VSOCK_INSTALL_PATH ?= << 18 << 19 install: all << 20 ifdef VSOCK_INSTALL_PATH << 21 mkdir -p $(VSOCK_INSTALL_PATH) << 22 install -m 744 vsock_test $(VSOCK_INST << 23 install -m 744 vsock_perf $(VSOCK_INST << 24 install -m 744 vsock_diag_test $(VSOCK << 25 install -m 744 vsock_uring_test $(VSOC << 26 else << 27 $(error Error: set VSOCK_INSTALL_PATH << 28 endif <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.