blob 24268d97524087959c0ad9eb552c9f6dd7bc09e2 551 bytes (raw)
name: tools/xdp-forwarder/Makefile # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| | CC ?= gcc
CLANG ?= clang
prefix ?= /usr/local
bindir ?= $(prefix)/bin
xdpdir ?= $(prefix)/lib/xdp
TOOLS = set_router_iface
PROGS = prog_router.o prog_physical.o
set_router_iface: set_router_iface.c
$(CC) `pkg-config --libs --cflags libbpf` -o $@ $^
prog_%.o: prog_%.c
$(CLANG) $(NIX_CFLAGS_COMPILE) -target bpf -I include -g -c -o $@ $^
tools: $(TOOLS)
progs: $(PROGS)
all: tools progs
install_tools: $(TOOLS)
install -Dm755 -t $(bindir) $^
install_progs: $(PROGS)
install -Dm755 -t $(xdpdir) $^
install: install_tools install_progs
|
debug log:
solving 24268d9 ...
found 24268d9 in https://inbox.spectrum-os.org/spectrum-devel/20250831205808.3962245-2-yureka@cyberchaos.dev/
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20250831205808.3962245-2-yureka@cyberchaos.dev/
diff --git a/tools/xdp-forwarder/Makefile b/tools/xdp-forwarder/Makefile
new file mode 100644
index 0000000..24268d9
Checking patch tools/xdp-forwarder/Makefile...
Applied patch tools/xdp-forwarder/Makefile cleanly.
index at:
100644 24268d97524087959c0ad9eb552c9f6dd7bc09e2 tools/xdp-forwarder/Makefile
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).