mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-21 10:05:00 +08:00
0c6c9b105e
The tool can be used to verify that everything works end to end. Unrelated updates: - include tools/include/uapi to pick the latest kernel uapi headers - print "xdp-features" and "xdp-rx-metadata-features" so it's clear which bitmask is being dumped Cc: netdev@vger.kernel.org Cc: Willem de Bruijn <willemb@google.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20230913171350.369987-4-sdf@google.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
31 lines
592 B
Makefile
31 lines
592 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
include ../Makefile.deps
|
|
|
|
CC=gcc
|
|
CFLAGS=-std=gnu11 -O2 -W -Wall -Wextra -Wno-unused-parameter -Wshadow \
|
|
-I../../../include/uapi -I../lib/ -I../generated/ -idirafter $(UAPI_PATH)
|
|
ifeq ("$(DEBUG)","1")
|
|
CFLAGS += -g -fsanitize=address -fsanitize=leak -static-libasan
|
|
endif
|
|
|
|
LDLIBS=-lmnl ../lib/ynl.a ../generated/protos.a
|
|
|
|
SRCS=$(wildcard *.c)
|
|
BINS=$(patsubst %.c,%,${SRCS})
|
|
|
|
include $(wildcard *.d)
|
|
|
|
all: $(BINS)
|
|
|
|
$(BINS): ../lib/ynl.a ../generated/protos.a
|
|
|
|
clean:
|
|
rm -f *.o *.d *~
|
|
|
|
hardclean: clean
|
|
rm -f $(BINS)
|
|
|
|
.PHONY: all clean
|
|
.DEFAULT_GOAL=all
|