Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 54bbce2

Browse files
matthewr-xilinxjfeather-amd
authored andcommitted
ON-16665: add Makefile for hwtimestamping sample apps
Run 'USEONLOADEXT=1 make' to build with Onload extensions, or 'make' (with USEONLOADEXT undefined) to only use standard sockets API.
1 parent 95282e1 commit 54bbce2

File tree

1 file changed

+25
-0
lines changed
  • src/tests/onload/hwtimestamping

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# SPDX-License-Identifier: BSD-2-Clause
2+
# SPDX-FileCopyrightText: (c) 2025 Advanced Micro Devices, Inc.
3+
TARGETS := rx_timestamping tx_timestamping cpacket_send
4+
5+
ifneq ($(strip $(USEONLOADEXT)),)
6+
CFLAGS += -DONLOADEXT_AVAILABLE
7+
LDFLAGS += -lonload_ext
8+
endif
9+
CFLAGS_COMMON := -DNDEBUG -Werror -Wall -Wundef -Wpointer-arith \
10+
-Wstrict-prototypes -Wnested-externs -Wno-stringop-truncation \
11+
-Wno-format-truncation -Wimplicit-fallthrough=5 \
12+
-Wno-array-bounds -Wno-stringop-overflow \
13+
-Wno-deprecated-declarations -fomit-frame-pointer -O2 -g
14+
LDFLAGS_COMMON := -O2 -g -Wl,-E -Wl,-rpath -pthread
15+
16+
.PHONY: all clean
17+
all: $(TARGETS)
18+
clean:
19+
rm -f *.o *.d $(TARGETS)
20+
21+
$(TARGETS): %: %.o
22+
$(TARGETS):
23+
$(CC) $^ $(CFLAGS) $(LDFLAGS) $(LDFLAGS_COMMON) -o $@
24+
%.o: %.c
25+
$(CC) $(CFLAGS) $(CFLAGS_COMMON) -c $< -o $@

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /