|
| 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