/
githubmirror
/
liburing
Обзор
Документация
Войти
/
githubmirror
/
liburing
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
liburing-2.3
examples/Makefile
41 строка
725 B
Dylan Yudaken
add an example for a UDP server
26 июл 2022, 19:22
26 июл 2022, 19:22
61d472b
Код
Авторство
О чём код?
CPPFLAGS ?= override CPPFLAGS += -D_GNU_SOURCE -I../src/include/ CFLAGS ?= -g -O2 -Wall LDFLAGS ?= override LDFLAGS += -L../src/ -luring include ../Makefile.quiet ifneq ($(MAKECMDGOALS),clean) include ../config-host.mak endif example_srcs := \ io_uring-cp.c \ io_uring-test.c \ io_uring-udp.c \ link-cp.c \ poll-bench.c \ send-zerocopy.c all_targets := ifdef CONFIG_HAVE_UCONTEXT example_srcs += ucontext-cp.c endif all_targets += ucontext-cp example_targets := $(patsubst %.c,%,$(patsubst %.cc,%,$(example_srcs))) all_targets += $(example_targets) all: $(example_targets) %: %.c ../src/liburing.a $(QUIET_CC)$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS) clean: @rm -f $(all_targets) .PHONY: all clean