Debian Codegraph @

src/test/pmem_is_pmem_posix/Makefile

raw symbols SCIP
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2016-2022, Intel Corporation
3
4 #
5 # src/test/pmem_is_pmem_posix/Makefile -- build pmem_is_pmem_posix unit test
6 #
7 include ../../common.inc
8 TOP = ../../..
9 vpath %.c $(TOP)/src/libpmem
10 vpath %.c $(TOP)/src/libpmem2
11 vpath %.c $(TOP)/src/libpmem2/$(ARCH)
12
13 TARGET = pmem_is_pmem_posix
14 OBJS = pmem_is_pmem_posix.o\
15 libpmem.o\
16 pmem.o\
17 pmem_posix.o\
18 memops_generic.o
19
20 ifeq ($(ARCH), aarch64)
21 OBJS += init.o
22 endif
23 ifeq ($(ARCH), riscv64)
24 OBJS += init.o
25 endif
26 ifeq ($(ARCH), x86_64)
27 OBJS += init.o cpu.o
28 endif
29 ifeq ($(ARCH), ppc64)
30 include $(TOP)/src/libpmem2/$(ARCH)/sources.inc
31 OBJS += $(LIBPMEM2_ARCH_SOURCE:%.c=%.o)
32 endif
33 ifeq ($(ARCH), loongarch64)
34 OBJS += init.o
35 endif
36
37 LIBPMEMCOMMON=y
38
39 include ../Makefile.inc
40
41 CFLAGS += -DSRCVERSION="" -DDEBUG -DMOVDIR64B_AVAILABLE=0 -DAVX512F_AVAILABLE=0 -DAVX_AVAILABLE=0 -DSSE2_AVAILABLE=0
42 CFLAGS += -I$(TOP)/src/libpmem
43 CFLAGS += -I$(TOP)/src/libpmem/$(ARCH)
44 CFLAGS += -I$(TOP)/src/libpmem2