xref: /spdk/test/thread/lock/Makefile (revision 3359bf34d682202107c227ea42ace1c600a04657)
1#  SPDX-License-Identifier: BSD-3-Clause
2#  Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3#
4
5SPDK_ROOT_DIR := $(abspath $(CURDIR)/../../..)
6include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
7
8APP = spdk_lock
9C_SRCS := spdk_lock.c
10CFLAGS += -I$(SPDK_ROOT_DIR)/lib
11
12SPDK_LIB_LIST = event
13
14include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
15
16# To test error paths and some state related to spinlocks spdk_lock.c includes thread/thread.c.
17# To prevent redefined symbol errors, this test program needs to not link with libspdk_thread.
18DEPDIRS-event := $(filter-out thread,$(DEPDIRS-event))
19DEPDIRS-init := $(filter-out thread,$(DEPDIRS-init))
20