eal: simplify meson build of common directory
[dpdk.git] / lib / librte_eal / common / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 INC := rte_branch_prediction.h rte_common.h rte_compat.h
7 INC += rte_function_versioning.h
8 INC += rte_debug.h rte_eal.h rte_eal_interrupts.h
9 INC += rte_errno.h rte_launch.h rte_lcore.h
10 INC += rte_log.h rte_memory.h rte_memzone.h
11 INC += rte_per_lcore.h rte_random.h
12 INC += rte_tailq.h rte_interrupts.h rte_alarm.h
13 INC += rte_string_fns.h rte_version.h
14 INC += rte_eal_memconfig.h
15 INC += rte_hexdump.h rte_devargs.h rte_bus.h rte_dev.h rte_class.h
16 INC += rte_option.h
17 INC += rte_pci_dev_feature_defs.h rte_pci_dev_features.h
18 INC += rte_malloc.h rte_keepalive.h rte_time.h
19 INC += rte_service.h rte_service_component.h
20 INC += rte_bitmap.h rte_vfio.h rte_hypervisor.h rte_test.h
21 INC += rte_reciprocal.h rte_fbarray.h rte_uuid.h
22
23 GENERIC_INC := rte_atomic.h rte_byteorder.h rte_cycles.h rte_prefetch.h
24 GENERIC_INC += rte_memcpy.h rte_cpuflags.h
25 GENERIC_INC += rte_mcslock.h rte_spinlock.h rte_rwlock.h rte_ticketlock.h
26 GENERIC_INC += rte_vect.h rte_pause.h rte_io.h
27
28 # defined in mk/arch/$(RTE_ARCH)/rte.vars.mk
29 ARCH_DIR ?= $(RTE_ARCH)
30 ARCH_INC := $(sort $(notdir $(wildcard $(RTE_SDK)/lib/librte_eal/$(ARCH_DIR)/include/*.h)))
31
32 SYMLINK-$(CONFIG_RTE_LIBRTE_EAL)-include := $(addprefix include/,$(INC))
33 SYMLINK-$(CONFIG_RTE_LIBRTE_EAL)-include += \
34         $(addprefix ../$(ARCH_DIR)/include/,$(ARCH_INC))
35 SYMLINK-$(CONFIG_RTE_LIBRTE_EAL)-include/generic := \
36         $(addprefix include/generic/,$(GENERIC_INC))
37
38 include $(RTE_SDK)/mk/rte.install.mk