f-stack/dpdk/examples/performance-thread/common/common.mk

22 lines
649 B
Makefile
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2015 Intel Corporation
2017-04-21 10:43:26 +00:00
# list the C files belonging to the lthread subsystem, these are common to all
# lthread apps. Any makefile including this should set VPATH to include this
# directory path
#
MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
2021-02-05 08:48:47 +00:00
ifeq ($(shell uname -m),x86_64)
ARCH_PATH += $(MKFILE_PATH)/arch/x86
2021-02-05 08:48:47 +00:00
else ifeq ($(shell uname -m),arm64)
ARCH_PATH += $(MKFILE_PATH)/arch/arm64
endif
VPATH := $(MKFILE_PATH) $(ARCH_PATH)
SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c
2017-04-21 10:43:26 +00:00
2021-02-05 08:48:47 +00:00
CFLAGS += -I$(MKFILE_PATH) -I$(ARCH_PATH)