1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 28abbffd2SArseniy Krasnovall: test vsock_perf 38d211285SArseniy Krasnovtest: vsock_test vsock_diag_test vsock_uring_test 4bc36442eSArseniy Krasnovvsock_test: vsock_test.o vsock_test_zerocopy.o timeout.o control.o util.o msg_zerocopy_common.o 5df7e0e0dSStefan Hajnoczivsock_diag_test: vsock_diag_test.o timeout.o control.o util.o 6e846d679SArseniy Krasnovvsock_perf: vsock_perf.o msg_zerocopy_common.o 70b025033SStefan Hajnoczi 8*3a764d93SLuigi Leonardivsock_test: LDLIBS = -lpthread 98d211285SArseniy Krasnovvsock_uring_test: LDLIBS = -luring 108d211285SArseniy Krasnovvsock_uring_test: control.o util.o vsock_uring_test.o timeout.o msg_zerocopy_common.o 118d211285SArseniy Krasnov 1243985468SStefan HajnocziCFLAGS += -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 130b025033SStefan Hajnoczi.PHONY: all test clean 140b025033SStefan Hajnocziclean: 158d211285SArseniy Krasnov ${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test 160b025033SStefan Hajnoczi-include *.d 1742ffe242SPeng Fan 1842ffe242SPeng FanVSOCK_INSTALL_PATH ?= 1942ffe242SPeng Fan 2042ffe242SPeng Faninstall: all 2142ffe242SPeng Fanifdef VSOCK_INSTALL_PATH 2242ffe242SPeng Fan mkdir -p $(VSOCK_INSTALL_PATH) 2342ffe242SPeng Fan install -m 744 vsock_test $(VSOCK_INSTALL_PATH) 2442ffe242SPeng Fan install -m 744 vsock_perf $(VSOCK_INSTALL_PATH) 2542ffe242SPeng Fan install -m 744 vsock_diag_test $(VSOCK_INSTALL_PATH) 2642ffe242SPeng Fan install -m 744 vsock_uring_test $(VSOCK_INSTALL_PATH) 2742ffe242SPeng Fanelse 2842ffe242SPeng Fan $(error Error: set VSOCK_INSTALL_PATH to use install) 2942ffe242SPeng Fanendif 30