Fix the compiling error when runing packaging/RPM/makerpms.sh:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I./../include -I./include -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wcast-qual -Wvla -Wno-unknown-warning-option -Wno-stringop-truncation -Wno-unused-parameter -Werror -Wwrite-strings -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c sync.c -o libiscsipriv_la-sync.o >/dev/null 2>&1
scsi-lowlevel.c:59:10: fatal error: utils.h: No such file or directory
59 | #include "utils.h"
| ^~~~~~~~~
Signed-off-by: Han Han <hhan@redhat.com>
34 lines
1.0 KiB
Makefile
34 lines
1.0 KiB
Makefile
# Generic definitions
|
|
SUBDIRS = lib doc utils
|
|
if BUILD_TEST_TOOL
|
|
SUBDIRS += test-tool
|
|
endif
|
|
if BUILD_TESTS
|
|
SUBDIRS += tests
|
|
endif
|
|
if BUILD_EXAMPLES
|
|
SUBDIRS += examples
|
|
endif
|
|
|
|
ACLOCAL_AMFLAGS =-I m4
|
|
AUTOMAKE_OPTIONS = foreign subdir-objects
|
|
AM_CPPFLAGS=-I. -I$(srcdir)/include
|
|
AM_CFLAGS=$(WARN_CFLAGS)
|
|
|
|
EXTRA_DIST = autogen.sh COPYING LICENCE-GPL-2.txt LICENCE-LGPL-2.1.txt README.md \
|
|
packaging/RPM/libiscsi.spec.in packaging/RPM/makerpms.sh \
|
|
aros/aros_compat.c aros/aros_compat.h aros/iscsi-ls.c \
|
|
aros/Makefile.AROS test-tool/iscsi-multipath.h \
|
|
win32/win32_compat.c win32/win32_compat.h \
|
|
patches/mtx-iscsi.diff patches/README patches/sg3_utils-1.32.patch \
|
|
lib/libiscsi.syms.in
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = libiscsi.pc
|
|
|
|
iscsi_includedir = $(includedir)/iscsi
|
|
dist_iscsi_include_HEADERS = include/iscsi.h include/scsi-lowlevel.h
|
|
dist_noinst_HEADERS = include/iscsi-private.h include/md5.h include/slist.h \
|
|
include/iser-private.h include/utils.h
|
|
|