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 c73efcf

Browse files
matthewr-xilinxjfeather-amd
authored andcommitted
ON-16665: add Makefile for wire_order sample apps
1 parent 54bbce2 commit c73efcf

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

‎src/tests/onload/wire_order/Makefile‎

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

0 commit comments

Comments
(0)

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