]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/src/librpmem/Makefile
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / src / librpmem / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2016-2020, Intel Corporation
3
4 #
5 # src/librpmem/Makefile -- Makefile for librpmem
6 #
7 include ../common.inc
8
9 vpath %.c ../rpmem_common
10
11 ifeq ($(BUILD_RPMEM),y)
12 LIBRARY_NAME = rpmem
13 LIBRARY_SO_VERSION = 1
14 LIBRARY_VERSION = 0.0
15 SOURCE = $(COMMON)/alloc.c\
16 $(COMMON)/os_posix.c\
17 $(COMMON)/os_thread_posix.c\
18 $(COMMON)/out.c\
19 $(COMMON)/util.c\
20 $(COMMON)/util_posix.c\
21 librpmem.c\
22 rpmem.c\
23 rpmem_obc.c\
24 rpmem_cmd.c\
25 rpmem_ssh.c\
26 rpmem_common.c\
27 rpmem_util.c\
28 rpmem_fip_common.c\
29 rpmem_fip.c
30
31 else
32 $(info NOTE: Skipping librpmem because $(BUILD_RPMEM_INFO))
33 endif
34
35 include ../Makefile.inc
36
37 ifeq ($(BUILD_RPMEM),y)
38 LIBS += -pthread
39 LIBS += $(LIBFABRIC_LIBS)
40 CFLAGS += $(LIBFABRIC_CFLAGS)
41 CFLAGS += -I. -I../rpmem_common
42 CFLAGS += -DRPMEMC_LOG_RPMEM
43 endif