xref: /dpdk/kernel/freebsd/BSDmakefile.meson (revision 3f708560fec4d96bc4ad892fd58815600ed79eef)
1*3f708560SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
2*3f708560SBruce Richardson# Copyright(c) 2017 Intel Corporation
3acaa9ee9SHemant Agrawal
4acaa9ee9SHemant Agrawal# makefile for building kernel modules using meson
5acaa9ee9SHemant Agrawal# takes parameters from the environment
6acaa9ee9SHemant Agrawal
7*3f708560SBruce Richardson# source file is passed via KMOD_SRC as relative path, we only use final
8*3f708560SBruce Richardson# (tail) component of it (:T), as VPATH is used to find actual file. The
9*3f708560SBruce Richardson# VPATH is similarly extracted from the non-final (head) portion of the
10*3f708560SBruce Richardson# path (:H) converted to absolute path (:tA).  This use of VPATH is to have
11*3f708560SBruce Richardson# the .o files placed in the build, not source directory
12*3f708560SBruce Richardson
13*3f708560SBruce RichardsonVPATH := ${KMOD_SRC:H:tA}
14*3f708560SBruce RichardsonSRCS := ${KMOD_SRC:T} device_if.h bus_if.h pci_if.h
15acaa9ee9SHemant AgrawalCFLAGS += $(KMOD_CFLAGS)
16*3f708560SBruce Richardson.OBJDIR: ${KMOD_OBJDIR}
17acaa9ee9SHemant Agrawal
18acaa9ee9SHemant Agrawal.include <bsd.kmod.mk>
19