When queueing the first PDU to an idle socket, immediately try to write it to the socket instead of waiting for the event-loop to timeout/notice there is work to do. Various other small bugfixes. Signed-off-by: sahlberg <sahlberg@r10-0-1.rocky10.sahlberg>
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# test-tool needs to access private symbols, so build a noinst convenience
|
|
# library.
|
|
noinst_LTLIBRARIES = libiscsipriv.la
|
|
|
|
libiscsipriv_la_SOURCES = \
|
|
connect.c crc32c.c discovery.c init.c \
|
|
login.c nop.c pdu.c iscsi-command.c \
|
|
multithreading.c \
|
|
scsi-lowlevel.c socket.c sync.c task_mgmt.c \
|
|
logging.c utils.c sha1.c sha224-256.c sha3.c
|
|
|
|
if TARGET_OS_IS_WIN32
|
|
libiscsipriv_la_SOURCES += ../win32/win32_compat.c
|
|
endif
|
|
|
|
if NEED_MD5
|
|
libiscsipriv_la_SOURCES += md5.c
|
|
endif
|
|
|
|
if HAVE_LINUX_ISER
|
|
libiscsipriv_la_SOURCES += iser.c
|
|
endif
|
|
|
|
if HAVE_LINUX_ISER
|
|
libiscsipriv_la_LIBADD = -libverbs -lrdmacm -lpthread
|
|
endif
|
|
|
|
libiscsipriv_la_LDFLAGS = -no-undefined
|
|
|
|
libiscsipriv_la_CPPFLAGS = -I${srcdir}/../include -I$(srcdir)/include
|
|
|
|
AM_CFLAGS=$(WARN_CFLAGS)
|
|
|
|
# The proper library just pulls in the convenience library and explicitly
|
|
# specifies exported symbols.
|
|
lib_LTLIBRARIES = libiscsi.la
|
|
|
|
libiscsi_la_SOURCES =
|
|
libiscsi_la_LIBADD = libiscsipriv.la
|
|
|
|
libiscsi.syms: libiscsi.syms.in
|
|
cat <$< >$@
|
|
if TARGET_OS_IS_WIN32
|
|
echo win32_poll >>$@
|
|
endif
|
|
|
|
EXTRA_libiscsi_la_DEPENDENCIES = libiscsi.syms
|
|
|
|
SOCURRENT=11
|
|
SOREVISON=2
|
|
SOAGE=0
|
|
libiscsi_la_LDFLAGS = \
|
|
-version-info $(SOCURRENT):$(SOREVISON):$(SOAGE) -bindir $(bindir) \
|
|
-no-undefined -export-symbols ${srcdir}/libiscsi.syms
|
|
|
|
dist_noinst_DATA = libiscsi.syms libiscsi.def
|