add conditional compiling for using io_uring

This commit is contained in:
zhengshuxin 2022-10-23 17:22:14 +08:00
parent 9913bcdb81
commit 5baf77edf5
4 changed files with 16 additions and 4 deletions

View File

@ -117,7 +117,10 @@ endif
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
UNIXTYPE = LINUX
CFLAGS += -DSHARE_STACK
CFLAGS += -DHAS_IO_URING
has_io_uring=$(HAS_IO_URING)
ifeq ($(has_io_uring), yes)
CFLAGS += -DHAS_IO_URING
endif
endif
# For CYGWIN

View File

@ -1,5 +1,8 @@
include ../Makefile.in
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
SYSLIB += -luring
has_io_uring=$(HAS_IO_URING)
ifeq ($(has_io_uring), yes)
SYSLIB += -luring
endif
endif
PROG = client

View File

@ -1,5 +1,8 @@
include ../Makefile.in
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
SYSLIB += -luring
has_io_uring=$(HAS_IO_URING)
ifeq ($(has_io_uring), yes)
SYSLIB += -luring
endif
endif
PROG = file

View File

@ -1,5 +1,8 @@
include ../Makefile.in
ifeq ($(findstring Linux, $(UNIXNAME)), Linux)
SYSLIB += -luring
has_io_uring=${HAS_IO_URING)
ifeq ($(has_io_uring), yes)
SYSLIB += -luring
endif
endif
PROG = server