event/cnxk: fix clang build on Arm
[dpdk.git] / examples / performance-thread / common / common.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015 Intel Corporation
3
4 # list the C files belonging to the lthread subsystem, these are common to all
5 # lthread apps. Any makefile including this should set VPATH to include this
6 # directory path
7 #
8
9 MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
10
11 ifeq ($(shell uname -m),x86_64)
12 ARCH_PATH += $(MKFILE_PATH)/arch/x86
13 else ifeq ($(shell uname -m),arm64)
14 ARCH_PATH += $(MKFILE_PATH)/arch/arm64
15 endif
16
17 VPATH := $(MKFILE_PATH) $(ARCH_PATH)
18
19 SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c
20
21 CFLAGS += -I$(MKFILE_PATH) -I$(ARCH_PATH)